Started GET "/" for 127.0.0.1 at 2016-03-05 13:51:00 +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 (1.6ms)
Completed 200 OK in 38ms (Views: 38.2ms | ActiveRecord: 0.0ms)
Started GET "/" for 127.0.0.1 at 2016-03-05 13:51:01 +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.0ms)
Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms)
Started GET "/cart" for 127.0.0.1 at 2016-03-05 13:54:25 +0200
ActionController::RoutingError (No route matches [GET] "/cart"):
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.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/_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/routes/_route.html.erb (0.9ms)
Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/routes/_route.html.erb (0.3ms)
Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/routes/_table.html.erb (24.5ms)
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 (16.9ms)
Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/rescues/routing_error.html.erb within rescues/layout (327.1ms)
Started GET "/cart" for 127.0.0.1 at 2016-03-05 13:54:26 +0200
ActionController::RoutingError (No route matches [GET] "/cart"):
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.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/_trace.html.erb (1.3ms)
Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/routes/_route.html.erb (0.6ms)
Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/routes/_route.html.erb (0.4ms)
Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/routes/_table.html.erb (1.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 (1.1ms)
Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/rescues/routing_error.html.erb within rescues/layout (19.5ms)
Started GET "/simple_cart" for 127.0.0.1 at 2016-03-05 13:55:31 +0200
ActionController::RoutingError (No route matches [GET] "/simple_cart"):
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.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/_trace.html.erb (1.4ms)
Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/routes/_route.html.erb (0.7ms)
Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/routes/_route.html.erb (0.4ms)
Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/routes/_table.html.erb (1.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 (1.1ms)
Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/rescues/routing_error.html.erb within rescues/layout (29.3ms)
Started GET "/simple_cart/cart" for 127.0.0.1 at 2016-03-05 13:55:35 +0200
LoadError (Unable to autoload constant SimpleCart::CartsController, expected /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/controllers/simple_cart/carts_controller.rb to define it):
activesupport (4.2.5.2) lib/active_support/dependencies.rb:495:in `load_missing_constant'
activesupport (4.2.5.2) lib/active_support/dependencies.rb:184:in `const_missing'
activesupport (4.2.5.2) lib/active_support/inflector/methods.rb:263:in `const_get'
activesupport (4.2.5.2) lib/active_support/inflector/methods.rb:263:in `block in constantize'
activesupport (4.2.5.2) lib/active_support/inflector/methods.rb:259:in `each'
activesupport (4.2.5.2) lib/active_support/inflector/methods.rb:259:in `inject'
activesupport (4.2.5.2) lib/active_support/inflector/methods.rb:259:in `constantize'
activesupport (4.2.5.2) lib/active_support/dependencies.rb:566:in `get'
activesupport (4.2.5.2) lib/active_support/dependencies.rb:597:in `constantize'
actionpack (4.2.5.2) lib/action_dispatch/routing/route_set.rb:70:in `controller_reference'
actionpack (4.2.5.2) lib/action_dispatch/routing/route_set.rb:60:in `controller'
actionpack (4.2.5.2) lib/action_dispatch/routing/route_set.rb:39: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 (4.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.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.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 (29.6ms)
Started GET "/simple_cart/cart" for 127.0.0.1 at 2016-03-05 13:56:13 +0200
Processing by SimpleCart::CartsController#show as HTML
Completed 500 Internal Server Error in 4ms (ActiveRecord: 0.0ms)
ActionView::MissingTemplate (Missing template simple_cart/carts/show, application/show with {:locale=>[:en], :formats=>[:html], :variants=>[], :handlers=>[:erb, :builder, :raw, :ruby]}. Searched in:
* "/home/leksster/ror/Rubygarage/Amazon/simple_cart/test/dummy/app/views"
* "/home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views"
):
actionview (4.2.5.2) lib/action_view/path_set.rb:46:in `find'
actionview (4.2.5.2) lib/action_view/lookup_context.rb:121:in `find'
actionview (4.2.5.2) lib/action_view/renderer/abstract_renderer.rb:18:in `find_template'
actionview (4.2.5.2) lib/action_view/renderer/template_renderer.rb:40:in `determine_template'
actionview (4.2.5.2) lib/action_view/renderer/template_renderer.rb:8: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 (6.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.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/missing_template.html.erb within rescues/layout (19.2ms)
Started GET "/simple_cart/cart" for 127.0.0.1 at 2016-03-05 13:57:49 +0200
Processing by SimpleCart::CartsController#show as HTML
Completed 500 Internal Server Error in 2ms (ActiveRecord: 0.0ms)
ActionView::MissingTemplate (Missing template simple_cart/carts/show, application/show with {:locale=>[:en], :formats=>[:html], :variants=>[], :handlers=>[:erb, :builder, :raw, :ruby]}. Searched in:
* "/home/leksster/ror/Rubygarage/Amazon/simple_cart/test/dummy/app/views"
* "/home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views"
):
actionview (4.2.5.2) lib/action_view/path_set.rb:46:in `find'
actionview (4.2.5.2) lib/action_view/lookup_context.rb:121:in `find'
actionview (4.2.5.2) lib/action_view/renderer/abstract_renderer.rb:18:in `find_template'
actionview (4.2.5.2) lib/action_view/renderer/template_renderer.rb:40:in `determine_template'
actionview (4.2.5.2) lib/action_view/renderer/template_renderer.rb:8: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 (6.1ms)
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.5ms)
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.7ms)
Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/rescues/missing_template.html.erb within rescues/layout (17.4ms)
Started GET "/simple_cart/cart" for 127.0.0.1 at 2016-03-05 13:57:50 +0200
Processing by SimpleCart::CartsController#show as HTML
Completed 500 Internal Server Error in 1ms (ActiveRecord: 0.0ms)
ActionView::MissingTemplate (Missing template simple_cart/carts/show, application/show with {:locale=>[:en], :formats=>[:html], :variants=>[], :handlers=>[:erb, :builder, :raw, :ruby]}. Searched in:
* "/home/leksster/ror/Rubygarage/Amazon/simple_cart/test/dummy/app/views"
* "/home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views"
):
actionview (4.2.5.2) lib/action_view/path_set.rb:46:in `find'
actionview (4.2.5.2) lib/action_view/lookup_context.rb:121:in `find'
actionview (4.2.5.2) lib/action_view/renderer/abstract_renderer.rb:18:in `find_template'
actionview (4.2.5.2) lib/action_view/renderer/template_renderer.rb:40:in `determine_template'
actionview (4.2.5.2) lib/action_view/renderer/template_renderer.rb:8: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 (5.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 (3.2ms)
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/missing_template.html.erb within rescues/layout (17.4ms)
Started GET "/simple_cart/cart" for 127.0.0.1 at 2016-03-05 13:58:50 +0200
Processing by SimpleCart::CartsController#show as HTML
Completed 500 Internal Server Error in 17ms (ActiveRecord: 0.0ms)
ActionView::MissingTemplate (Missing template simple_cart/carts/show, application/show with {:locale=>[:en], :formats=>[:html], :variants=>[], :handlers=>[:erb, :builder, :raw, :ruby, :haml]}. Searched in:
* "/home/leksster/ror/Rubygarage/Amazon/simple_cart/test/dummy/app/views"
* "/home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views"
):
actionview (4.2.5.2) lib/action_view/path_set.rb:46:in `find'
actionview (4.2.5.2) lib/action_view/lookup_context.rb:121:in `find'
actionview (4.2.5.2) lib/action_view/renderer/abstract_renderer.rb:18:in `find_template'
actionview (4.2.5.2) lib/action_view/renderer/template_renderer.rb:40:in `determine_template'
actionview (4.2.5.2) lib/action_view/renderer/template_renderer.rb:8: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 (5.4ms)
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.5ms)
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/missing_template.html.erb within rescues/layout (19.0ms)
Started GET "/simple_cart/cart" for 127.0.0.1 at 2016-03-05 13:58:54 +0200
Processing by SimpleCart::CartsController#show as HTML
Completed 500 Internal Server Error in 3ms (ActiveRecord: 0.0ms)
ActionView::MissingTemplate (Missing template simple_cart/carts/show, application/show with {:locale=>[:en], :formats=>[:html], :variants=>[], :handlers=>[:erb, :builder, :raw, :ruby, :haml]}. Searched in:
* "/home/leksster/ror/Rubygarage/Amazon/simple_cart/test/dummy/app/views"
* "/home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views"
):
actionview (4.2.5.2) lib/action_view/path_set.rb:46:in `find'
actionview (4.2.5.2) lib/action_view/lookup_context.rb:121:in `find'
actionview (4.2.5.2) lib/action_view/renderer/abstract_renderer.rb:18:in `find_template'
actionview (4.2.5.2) lib/action_view/renderer/template_renderer.rb:40:in `determine_template'
actionview (4.2.5.2) lib/action_view/renderer/template_renderer.rb:8: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 (5.7ms)
Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (2.4ms)
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/missing_template.html.erb within rescues/layout (18.2ms)
Started GET "/simple_cart/cart" for 127.0.0.1 at 2016-03-05 13:59:38 +0200
Processing by SimpleCart::CartsController#show as HTML
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml within layouts/application (7.5ms)
Completed 500 Internal Server Error in 10ms (ActiveRecord: 0.0ms)
ActionView::Template::Error (uninitialized constant Cart::Book):
4: .thumbnail
5: .caption-full
6: = form_tag url_for(:controller => 'carts', :action => 'update'), method: :put do
7: - if @cart.books.empty?
8: empty
9: - else
10: %table.table.table-hover
/home/leksster/ror/Rubygarage/Amazon/simple_cart/app/models/cart.rb:22:in `books'
/home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml:7:in `block in __home_leksster_ror__ubygarage__mazon_simple_cart_app_views_simple_cart_carts_show_html_haml__2675743071926766276_39910380'
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/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml:6:in `__home_leksster_ror__ubygarage__mazon_simple_cart_app_views_simple_cart_carts_show_html_haml__2675743071926766276_39910380'
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.4ms)
Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (2.8ms)
Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (1.0ms)
Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/rescues/template_error.html.erb within rescues/layout (22.7ms)
Started GET "/simple_cart/cart" for 127.0.0.1 at 2016-03-05 13:59:55 +0200
Processing by SimpleCart::CartsController#show as HTML
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml within layouts/application (1.5ms)
Completed 500 Internal Server Error in 4ms (ActiveRecord: 0.0ms)
ActionView::Template::Error (uninitialized constant Cart::Book):
4: .thumbnail
5: .caption-full
6: = form_tag url_for(:controller => 'carts', :action => 'update'), method: :put do
7: - if @cart.books.empty?
8: empty
9: - else
10: %table.table.table-hover
/home/leksster/ror/Rubygarage/Amazon/simple_cart/app/models/cart.rb:22:in `books'
/home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml:7:in `block in __home_leksster_ror__ubygarage__mazon_simple_cart_app_views_simple_cart_carts_show_html_haml__2675743071926766276_39910380'
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/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml:6:in `__home_leksster_ror__ubygarage__mazon_simple_cart_app_views_simple_cart_carts_show_html_haml__2675743071926766276_39910380'
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 (6.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.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 (0.8ms)
Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/rescues/template_error.html.erb within rescues/layout (19.6ms)
Started GET "/simple_cart/cart" for 127.0.0.1 at 2016-03-05 14:00:48 +0200
Processing by SimpleCart::CartsController#show as HTML
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml within layouts/application (5.3ms)
Completed 200 OK in 243ms (Views: 242.2ms | ActiveRecord: 0.0ms)
Started GET "/assets/application.self-e80e8f2318043e8af94dddc2adad5a4f09739a8ebb323b3ab31cd71d45fd9113.css?body=1" for 127.0.0.1 at 2016-03-05 14:00:48 +0200
Started GET "/assets/application.self-8f06a73c35179188914ab50e057157639fce1401c1cdca640ac9cec33746fc5b.js?body=1" for 127.0.0.1 at 2016-03-05 14:00:48 +0200
Started GET "/simple_cart/" for 127.0.0.1 at 2016-03-05 14:00:52 +0200
ActionController::RoutingError (No route matches [GET] "/simple_cart"):
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.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/_trace.html.erb (1.4ms)
Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/routes/_route.html.erb (0.6ms)
Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/routes/_route.html.erb (0.5ms)
Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/routes/_table.html.erb (2.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 (1.1ms)
Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/rescues/routing_error.html.erb within rescues/layout (25.7ms)
Started GET "/simple_cart/cart" for 127.0.0.1 at 2016-03-05 14:00:57 +0200
Processing by SimpleCart::CartsController#show as HTML
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml within layouts/application (0.2ms)
Completed 200 OK in 7ms (Views: 6.6ms | ActiveRecord: 0.0ms)
Started GET "/simple_cart/cart" for 127.0.0.1 at 2016-03-05 14:02:19 +0200
Processing by SimpleCart::CartsController#show as HTML
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml within layouts/application (0.1ms)
Completed 200 OK in 8ms (Views: 7.7ms | ActiveRecord: 0.0ms)
Started GET "/simple_cart/cart" for 127.0.0.1 at 2016-03-05 14:10:40 +0200
Processing by SimpleCart::CartsController#show as HTML
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml within layouts/application (0.1ms)
Completed 200 OK in 10ms (Views: 9.1ms | ActiveRecord: 0.0ms)
Started GET "/simple_cart/cart" for 127.0.0.1 at 2016-03-05 14:23:30 +0200
Processing by SimpleCart::CartsController#show as HTML
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml (0.1ms)
Completed 200 OK in 6ms (Views: 4.4ms | ActiveRecord: 0.0ms)
Started GET "/simple_cart/cart" for 127.0.0.1 at 2016-03-05 14:45:00 +0200
Processing by SimpleCart::CartsController#show as HTML
Completed 500 Internal Server Error in 1ms (ActiveRecord: 0.0ms)
LoadError (Unable to autoload constant Cart, expected /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/models/cart.rb to define it):
activesupport (4.2.5.2) lib/active_support/dependencies.rb:495:in `load_missing_constant'
activesupport (4.2.5.2) lib/active_support/dependencies.rb:184:in `const_missing'
activesupport (4.2.5.2) lib/active_support/dependencies.rb:526:in `load_missing_constant'
activesupport (4.2.5.2) lib/active_support/dependencies.rb:184:in `const_missing'
activesupport (4.2.5.2) lib/active_support/dependencies.rb:526:in `load_missing_constant'
activesupport (4.2.5.2) lib/active_support/dependencies.rb:184:in `const_missing'
/home/leksster/ror/Rubygarage/Amazon/simple_cart/app/controllers/simple_cart/carts_controller.rb:45: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:145:in `call'
activesupport (4.2.5.2) lib/active_support/callbacks.rb:145:in `block in halting_and_conditional'
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: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 (17.7ms)
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 (1.0ms)
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 (29.7ms)
Started GET "/simple_cart/cart" for 127.0.0.1 at 2016-03-05 14:45:24 +0200
Processing by SimpleCart::CartsController#show as HTML
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml (6.6ms)
Completed 500 Internal Server Error in 10ms (ActiveRecord: 0.0ms)
ActionView::Template::Error (undefined method `empty?' for nil:NilClass):
4: .thumbnail
5: .caption-full
6: = form_tag url_for(:controller => 'carts', :action => 'update'), method: :put do
7: - if @cart.books.empty?
8: empty
9: - else
10: %table.table.table-hover
/home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml:7:in `block in __home_leksster_ror__ubygarage__mazon_simple_cart_app_views_simple_cart_carts_show_html_haml__2675743071926766276_70034011201340'
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/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml:6:in `__home_leksster_ror__ubygarage__mazon_simple_cart_app_views_simple_cart_carts_show_html_haml__2675743071926766276_70034011201340'
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 (6.3ms)
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.8ms)
Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/rescues/template_error.html.erb within rescues/layout (19.0ms)
Started GET "/simple_cart/cart" for 127.0.0.1 at 2016-03-05 14:45:57 +0200
Processing by SimpleCart::CartsController#show as HTML
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml (5.8ms)
Completed 500 Internal Server Error in 10ms (ActiveRecord: 0.0ms)
ActionView::Template::Error (undefined method `each_with_index' for nil:NilClass):
21: Total
22: %th.col-md-1
23: %tbody
24: - @cart.books.each_with_index do |book, index|
25: %tr
26: %td
27: = image_tag(book.cover.url)
/home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml:24:in `block in __home_leksster_ror__ubygarage__mazon_simple_cart_app_views_simple_cart_carts_show_html_haml__2675743071926766276_70034007285560'
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/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml:6:in `__home_leksster_ror__ubygarage__mazon_simple_cart_app_views_simple_cart_carts_show_html_haml__2675743071926766276_70034007285560'
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 (6.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.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 (0.8ms)
Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/rescues/template_error.html.erb within rescues/layout (19.9ms)
Started GET "/simple_cart/cart" for 127.0.0.1 at 2016-03-05 14:46:25 +0200
Processing by SimpleCart::CartsController#show as HTML
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml (5.6ms)
Completed 200 OK in 8ms (Views: 7.6ms | ActiveRecord: 0.0ms)
Started GET "/simple_cart/cart" for 127.0.0.1 at 2016-03-05 14:47:33 +0200
Processing by SimpleCart::CartsController#show as HTML
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml (7.3ms)
Completed 500 Internal Server Error in 10ms (ActiveRecord: 0.0ms)
ActionView::Template::Error (undefined method `empty' for nil:NilClass):
4: .thumbnail
5: .caption-full
6: = form_tag url_for(:controller => 'carts', :action => 'update'), method: :put do
7: - if @cart.books.empty.nil?
8: empty
9: - else
10: %table.table.table-hover
/home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml:7:in `block in __home_leksster_ror__ubygarage__mazon_simple_cart_app_views_simple_cart_carts_show_html_haml__2675743071926766276_70034008742800'
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/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml:6:in `__home_leksster_ror__ubygarage__mazon_simple_cart_app_views_simple_cart_carts_show_html_haml__2675743071926766276_70034008742800'
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 (6.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.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.7ms)
Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/rescues/template_error.html.erb within rescues/layout (19.1ms)
Started GET "/" for 127.0.0.1 at 2016-03-07 17:00:23 +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 (1.6ms)
Completed 200 OK in 60ms (Views: 59.9ms | ActiveRecord: 0.0ms)
Started GET "/" for 127.0.0.1 at 2016-03-07 17:00:23 +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.0ms)
Completed 200 OK in 1ms (Views: 1.0ms | ActiveRecord: 0.0ms)
Started GET "/simple_cart/cart" for 127.0.0.1 at 2016-03-07 17:01:02 +0200
Processing by SimpleCart::CartsController#show as HTML
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml (11.0ms)
Completed 200 OK in 79ms (Views: 35.1ms | ActiveRecord: 0.0ms)
[1m[36m (63.4ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar NOT NULL) [0m
[1m[35m (0.1ms)[0m select sqlite_version(*)
[1m[36m (50.8ms)[0m [1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
[1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
Migrating to CreateItems (20160307150139)
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
[1m[35m (0.5ms)[0m CREATE TABLE "items" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "price" decimal, "qty" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20160307150139"]]
[1m[35m (69.2ms)[0m commit transaction
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
Started GET "/simple_cart/cart" for 127.0.0.1 at 2016-03-07 17:02:03 +0200
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
Processing by SimpleCart::CartsController#show as HTML
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml (10.0ms)
Completed 200 OK in 28ms (Views: 17.9ms | ActiveRecord: 0.0ms)
Started GET "/" for 127.0.0.1 at 2016-03-07 17:02:06 +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 4ms (Views: 4.2ms | ActiveRecord: 0.0ms)
Started GET "/items" for 127.0.0.1 at 2016-03-07 17:02:09 +0200
Processing by ItemsController#index as HTML
[1m[35mItem Load (0.1ms)[0m SELECT "items".* FROM "items"
Rendered items/index.html.erb within layouts/application (2.8ms)
Completed 200 OK in 273ms (Views: 271.5ms | ActiveRecord: 0.2ms)
Started GET "/assets/scaffold.self-83b741db49389dc7cfdf85bf7537a0219cce48e085c4116afc83d55c9af47c78.css?body=1" for 127.0.0.1 at 2016-03-07 17:02:09 +0200
Started GET "/assets/items.self-b60acab5af8d245ed2b3012f77d11d8d207d8eada27756badaf4ef05770d60f6.css?body=1" for 127.0.0.1 at 2016-03-07 17:02:10 +0200
Started GET "/assets/application.self-e80e8f2318043e8af94dddc2adad5a4f09739a8ebb323b3ab31cd71d45fd9113.css?body=1" for 127.0.0.1 at 2016-03-07 17:02:10 +0200
Started GET "/assets/application.self-8f06a73c35179188914ab50e057157639fce1401c1cdca640ac9cec33746fc5b.js?body=1" for 127.0.0.1 at 2016-03-07 17:02:10 +0200
Started GET "/assets/items.self-19a187bec6cdb96d6de80a61c16c857c613536adf9138476bd367db38d282635.js?body=1" for 127.0.0.1 at 2016-03-07 17:02:10 +0200
Started GET "/items/new" for 127.0.0.1 at 2016-03-07 17:02:11 +0200
Processing by ItemsController#new as HTML
Rendered items/_form.html.erb (58.3ms)
Rendered items/new.html.erb within layouts/application (75.7ms)
Completed 200 OK in 91ms (Views: 82.7ms | ActiveRecord: 0.5ms)
Started POST "/items" for 127.0.0.1 at 2016-03-07 17:02:16 +0200
Processing by ItemsController#create as HTML
Parameters: {"utf8"=>"✓", "authenticity_token"=>"irm3kWO5VF6kxBe7kEqcxo/V9hlLR0x1amStvYc9n5ceCxCz7mxvJsn5SSfvcYg6XzsHOPbgJsBXlp7+e/2DIg==", "item"=>{"name"=>"111111", "price"=>"2", "qty"=>"4"}, "commit"=>"Create Item"}
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
[1m[35mSQL (0.3ms)[0m INSERT INTO "items" ("name", "price", "qty", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["name", "111111"], ["price", 2.0], ["qty", 4], ["created_at", "2016-03-07 15:02:16.932572"], ["updated_at", "2016-03-07 15:02:16.932572"]]
[1m[36m (66.6ms)[0m [1mcommit transaction[0m
Redirected to http://localhost:3000/items/1
Completed 302 Found in 72ms (ActiveRecord: 67.0ms)
Started GET "/items/1" for 127.0.0.1 at 2016-03-07 17:02:17 +0200
Processing by ItemsController#show as HTML
Parameters: {"id"=>"1"}
[1m[35mItem Load (0.2ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 1]]
Rendered items/show.html.erb within layouts/application (1.0ms)
Completed 200 OK in 45ms (Views: 7.9ms | ActiveRecord: 0.2ms)
Started GET "/items/1/edit" for 127.0.0.1 at 2016-03-07 17:02:19 +0200
Processing by ItemsController#edit as HTML
Parameters: {"id"=>"1"}
[1m[36mItem Load (0.2ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", 1]]
Rendered items/_form.html.erb (3.9ms)
Rendered items/edit.html.erb within layouts/application (5.5ms)
Completed 200 OK in 15ms (Views: 13.4ms | ActiveRecord: 0.2ms)
Started GET "/items" for 127.0.0.1 at 2016-03-07 17:02:20 +0200
Processing by ItemsController#index as HTML
[1m[35mItem Load (0.2ms)[0m SELECT "items".* FROM "items"
Rendered items/index.html.erb within layouts/application (1.9ms)
Completed 200 OK in 11ms (Views: 10.5ms | ActiveRecord: 0.2ms)
Started GET "/items/1" for 127.0.0.1 at 2016-03-07 17:03:26 +0200
Processing by ItemsController#show as HTML
Parameters: {"id"=>"1"}
[1m[36mItem Load (0.1ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", 1]]
Rendered items/show.html.erb within layouts/application (1.0ms)
Completed 200 OK in 12ms (Views: 11.6ms | ActiveRecord: 0.1ms)
Started GET "/items/1" for 127.0.0.1 at 2016-03-07 17:04:50 +0200
Processing by ItemsController#show as HTML
Parameters: {"id"=>"1"}
[1m[35mItem Load (0.1ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 1]]
Rendered items/show.html.erb within layouts/application (1.5ms)
Completed 200 OK in 46ms (Views: 44.8ms | ActiveRecord: 0.1ms)
Started GET "/assets/scaffold.self-83b741db49389dc7cfdf85bf7537a0219cce48e085c4116afc83d55c9af47c78.css?body=1" for 127.0.0.1 at 2016-03-07 17:04:50 +0200
Started GET "/assets/application.self-8f06a73c35179188914ab50e057157639fce1401c1cdca640ac9cec33746fc5b.js?body=1" for 127.0.0.1 at 2016-03-07 17:04:50 +0200
Started GET "/assets/application.self-e80e8f2318043e8af94dddc2adad5a4f09739a8ebb323b3ab31cd71d45fd9113.css?body=1" for 127.0.0.1 at 2016-03-07 17:04:50 +0200
Started GET "/assets/items.self-19a187bec6cdb96d6de80a61c16c857c613536adf9138476bd367db38d282635.js?body=1" for 127.0.0.1 at 2016-03-07 17:04:50 +0200
Started GET "/assets/items.self-b60acab5af8d245ed2b3012f77d11d8d207d8eada27756badaf4ef05770d60f6.css?body=1" for 127.0.0.1 at 2016-03-07 17:04:50 +0200
Started GET "/items/1" for 127.0.0.1 at 2016-03-07 17:06:56 +0200
Processing by ItemsController#show as HTML
Parameters: {"id"=>"1"}
[1m[36mItem Load (0.1ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", 1]]
Rendered items/show.html.erb within layouts/application (19.0ms)
Completed 500 Internal Server Error in 28ms (ActiveRecord: 0.5ms)
ActionView::Template::Error (uninitialized constant SimpleCart::Cartz):
19: JUST
20: <%= @item %>
21:
22: <%= SimpleCart::Cartz.new(@item) %>
23:
24:
25: <%= link_to 'Edit', edit_item_path(@item) %> |
app/views/items/show.html.erb:22:in `_app_views_items_show_html_erb___1074424798962814408_70117501730500'
Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/rescues/_source.erb (6.6ms)
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.8ms)
Started GET "/items/1" for 127.0.0.1 at 2016-03-07 17:07:25 +0200
Processing by ItemsController#show as HTML
Parameters: {"id"=>"1"}
[1m[35mItem Load (0.1ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 1]]
Rendered items/show.html.erb within layouts/application (1.3ms)
Completed 500 Internal Server Error in 11ms (ActiveRecord: 0.6ms)
ActionView::Template::Error (uninitialized constant SimpleCart::Cartz):
19: JUST
20: <%= @item %>
21:
22: <%= SimpleCart::Cartz.new(@item) %>
23:
24:
25: <%= link_to 'Edit', edit_item_path(@item) %> |
app/views/items/show.html.erb:22:in `_app_views_items_show_html_erb___1074424798962814408_70117501730500'
Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/rescues/_source.erb (5.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 (3.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 (1.0ms)
Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/rescues/template_error.html.erb within rescues/layout (19.6ms)
Started GET "/items/1" for 127.0.0.1 at 2016-03-07 17:08:52 +0200
Processing by ItemsController#show as HTML
Parameters: {"id"=>"1"}
[1m[36mItem Load (0.2ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", 1]]
Rendered items/show.html.erb within layouts/application (1.4ms)
Completed 500 Internal Server Error in 10ms (ActiveRecord: 0.6ms)
ActionView::Template::Error (uninitialized constant SimpleCart::Cartz):
19: JUST
20: <%= @item %>
21:
22: <%= SimpleCart::Cartz.new(@item) %>
23:
24:
25: <%= link_to 'Edit', edit_item_path(@item) %> |
app/views/items/show.html.erb:22:in `_app_views_items_show_html_erb___1074424798962814408_70117501730500'
Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/rescues/_source.erb (7.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.8ms)
Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/rescues/template_error.html.erb within rescues/layout (20.5ms)
Started GET "/items/1" for 127.0.0.1 at 2016-03-07 17:09:00 +0200
Processing by ItemsController#show as HTML
Parameters: {"id"=>"1"}
[1m[35mItem Load (0.2ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 1]]
Rendered items/show.html.erb within layouts/application (2.0ms)
Completed 500 Internal Server Error in 5ms (ActiveRecord: 0.2ms)
LoadError (Unable to autoload constant CartTest, expected /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/models/cart_test.rb to define it):
app/views/items/show.html.erb:22:in `_app_views_items_show_html_erb___1074424798962814408_70117499654940'
Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/rescues/_source.erb (5.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.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.7ms)
Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/rescues/diagnostics.html.erb within rescues/layout (17.9ms)
Started GET "/items/1" for 127.0.0.1 at 2016-03-07 17:09:27 +0200
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
Processing by ItemsController#show as HTML
Parameters: {"id"=>"1"}
[1m[35mItem Load (0.2ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 1]]
Rendered items/show.html.erb within layouts/application (9.0ms)
Completed 500 Internal Server Error in 33ms (ActiveRecord: 0.4ms)
LoadError (Unable to autoload constant CartTest, expected /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/models/cart_test.rb to define it):
app/views/items/show.html.erb:22:in `_app_views_items_show_html_erb___1718349461646018233_35564560'
Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/rescues/_source.erb (5.7ms)
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.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 (17.7ms)
Started GET "/items/1" for 127.0.0.1 at 2016-03-07 17:09:29 +0200
Processing by ItemsController#show as HTML
Parameters: {"id"=>"1"}
[1m[36mItem Load (0.1ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", 1]]
Rendered items/show.html.erb within layouts/application (2.2ms)
Completed 500 Internal Server Error in 5ms (ActiveRecord: 0.1ms)
ActionView::Template::Error (undefined local variable or method `name' for #):
19: JUST
20: <%= @item %>
21:
22: <%= SimpleCart::CartTest.new(@item) %>
23:
24:
25: <%= link_to 'Edit', edit_item_path(@item) %> |
app/views/items/show.html.erb:22:in `_app_views_items_show_html_erb___1718349461646018233_35564560'
Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/rescues/_source.erb (6.1ms)
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.5ms)
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.7ms)
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 (18.5ms)
Started GET "/items/1" for 127.0.0.1 at 2016-03-07 17:09:32 +0200
Processing by ItemsController#show as HTML
Parameters: {"id"=>"1"}
[1m[35mItem Load (0.1ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 1]]
Rendered items/show.html.erb within layouts/application (1.2ms)
Completed 500 Internal Server Error in 4ms (ActiveRecord: 0.1ms)
ActionView::Template::Error (undefined local variable or method `name' for #):
19: JUST
20: <%= @item %>
21:
22: <%= SimpleCart::CartTest.new(@item) %>
23:
24:
25: <%= link_to 'Edit', edit_item_path(@item) %> |
app/views/items/show.html.erb:22:in `_app_views_items_show_html_erb___1718349461646018233_35564560'
Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/rescues/_source.erb (5.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.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.7ms)
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 (18.4ms)
Started GET "/items/1" for 127.0.0.1 at 2016-03-07 17:09:50 +0200
Processing by ItemsController#show as HTML
Parameters: {"id"=>"1"}
[1m[36mItem Load (0.1ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", 1]]
Rendered items/show.html.erb within layouts/application (1.2ms)
Completed 500 Internal Server Error in 10ms (ActiveRecord: 0.5ms)
ActionView::Template::Error (undefined local variable or method `name' for #):
19: JUST
20: <%= @item %>
21:
22: <%= SimpleCart::CartTest.new(@item) %>
23:
24:
25: <%= link_to 'Edit', edit_item_path(@item) %> |
app/views/items/show.html.erb:22:in `_app_views_items_show_html_erb___1718349461646018233_35564560'
Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/rescues/_source.erb (5.5ms)
Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (2.4ms)
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/template_error.html.erb within rescues/layout (18.0ms)
Started GET "/items/1" for 127.0.0.1 at 2016-03-07 17:09:55 +0200
Processing by ItemsController#show as HTML
Parameters: {"id"=>"1"}
[1m[35mItem Load (0.2ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 1]]
Rendered items/show.html.erb within layouts/application (1.6ms)
Completed 500 Internal Server Error in 6ms (ActiveRecord: 0.2ms)
ActionView::Template::Error (undefined local variable or method `name' for #):
19: JUST
20: <%= @item %>
21:
22: <%= SimpleCart::CartTest.new(@item) %>
23:
24:
25: <%= link_to 'Edit', edit_item_path(@item) %> |
app/views/items/show.html.erb:22:in `_app_views_items_show_html_erb___1718349461646018233_35564560'
Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/rescues/_source.erb (6.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.5ms)
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/template_error.html.erb within rescues/layout (18.3ms)
Started GET "/items/1" for 127.0.0.1 at 2016-03-07 17:10:02 +0200
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
Processing by ItemsController#show as HTML
Parameters: {"id"=>"1"}
[1m[35mItem Load (0.2ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 1]]
Rendered items/show.html.erb within layouts/application (10.3ms)
Completed 500 Internal Server Error in 38ms (ActiveRecord: 0.5ms)
LoadError (Unable to autoload constant CartTest, expected /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/models/cart_test.rb to define it):
app/views/items/show.html.erb:22:in `_app_views_items_show_html_erb__168634636753189429_45244360'
Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/rescues/_source.erb (5.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.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 (1.2ms)
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.3ms)
Started GET "/items/1" for 127.0.0.1 at 2016-03-07 17:10:04 +0200
Processing by ItemsController#show as HTML
Parameters: {"id"=>"1"}
[1m[36mItem Load (0.1ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", 1]]
Rendered items/show.html.erb within layouts/application (1.5ms)
Completed 200 OK in 146ms (Views: 145.0ms | ActiveRecord: 0.1ms)
Started GET "/items/1" for 127.0.0.1 at 2016-03-07 17:10:10 +0200
Processing by ItemsController#show as HTML
Parameters: {"id"=>"1"}
[1m[35mItem Load (0.2ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 1]]
Rendered items/show.html.erb within layouts/application (0.9ms)
Completed 200 OK in 12ms (Views: 11.0ms | ActiveRecord: 0.2ms)
Started GET "/items/1" for 127.0.0.1 at 2016-03-07 17:10:26 +0200
Processing by ItemsController#show as HTML
Parameters: {"id"=>"1"}
[1m[36mItem Load (0.2ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", 1]]
Rendered items/show.html.erb within layouts/application (1.2ms)
Completed 200 OK in 19ms (Views: 11.2ms | ActiveRecord: 0.7ms)
Started GET "/items/1" for 127.0.0.1 at 2016-03-07 17:10:27 +0200
Processing by ItemsController#show as HTML
Parameters: {"id"=>"1"}
[1m[35mItem Load (0.2ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 1]]
Rendered items/show.html.erb within layouts/application (1.2ms)
Completed 200 OK in 12ms (Views: 10.6ms | ActiveRecord: 0.2ms)
Started GET "/items/1" for 127.0.0.1 at 2016-03-07 17:10:28 +0200
Processing by ItemsController#show as HTML
Parameters: {"id"=>"1"}
[1m[36mItem Load (0.2ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", 1]]
Rendered items/show.html.erb within layouts/application (1.3ms)
Completed 200 OK in 15ms (Views: 13.7ms | ActiveRecord: 0.2ms)
Started GET "/assets/items.self-b60acab5af8d245ed2b3012f77d11d8d207d8eada27756badaf4ef05770d60f6.css?body=1" for 127.0.0.1 at 2016-03-07 17:10:29 +0200
Started GET "/assets/scaffold.self-83b741db49389dc7cfdf85bf7537a0219cce48e085c4116afc83d55c9af47c78.css?body=1" for 127.0.0.1 at 2016-03-07 17:10:29 +0200
Started GET "/assets/application.self-e80e8f2318043e8af94dddc2adad5a4f09739a8ebb323b3ab31cd71d45fd9113.css?body=1" for 127.0.0.1 at 2016-03-07 17:10:29 +0200
Started GET "/assets/items.self-19a187bec6cdb96d6de80a61c16c857c613536adf9138476bd367db38d282635.js?body=1" for 127.0.0.1 at 2016-03-07 17:10:29 +0200
Started GET "/assets/application.self-8f06a73c35179188914ab50e057157639fce1401c1cdca640ac9cec33746fc5b.js?body=1" for 127.0.0.1 at 2016-03-07 17:10:29 +0200
Started GET "/items/1" for 127.0.0.1 at 2016-03-07 17:10:29 +0200
Processing by ItemsController#show as HTML
Parameters: {"id"=>"1"}
[1m[35mItem Load (0.1ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 1]]
Rendered items/show.html.erb within layouts/application (0.9ms)
Completed 200 OK in 8ms (Views: 7.3ms | ActiveRecord: 0.1ms)
Started GET "/assets/items.self-b60acab5af8d245ed2b3012f77d11d8d207d8eada27756badaf4ef05770d60f6.css?body=1" for 127.0.0.1 at 2016-03-07 17:10:29 +0200
Started GET "/assets/scaffold.self-83b741db49389dc7cfdf85bf7537a0219cce48e085c4116afc83d55c9af47c78.css?body=1" for 127.0.0.1 at 2016-03-07 17:10:29 +0200
Started GET "/assets/application.self-e80e8f2318043e8af94dddc2adad5a4f09739a8ebb323b3ab31cd71d45fd9113.css?body=1" for 127.0.0.1 at 2016-03-07 17:10:29 +0200
Started GET "/assets/items.self-19a187bec6cdb96d6de80a61c16c857c613536adf9138476bd367db38d282635.js?body=1" for 127.0.0.1 at 2016-03-07 17:10:29 +0200
Started GET "/assets/application.self-8f06a73c35179188914ab50e057157639fce1401c1cdca640ac9cec33746fc5b.js?body=1" for 127.0.0.1 at 2016-03-07 17:10:29 +0200
Started GET "/items/1" for 127.0.0.1 at 2016-03-07 17:10:34 +0200
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
Processing by ItemsController#show as HTML
Parameters: {"id"=>"1"}
[1m[35mItem Load (0.2ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 1]]
Rendered items/show.html.erb within layouts/application (9.2ms)
Completed 500 Internal Server Error in 33ms (ActiveRecord: 0.4ms)
LoadError (Unable to autoload constant CartTest, expected /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/models/cart_test.rb to define it):
app/views/items/show.html.erb:22:in `_app_views_items_show_html_erb__2983039470113521648_42517680'
Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/rescues/_source.erb (5.4ms)
Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (2.2ms)
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 (17.3ms)
Started GET "/items/1" for 127.0.0.1 at 2016-03-07 17:10:37 +0200
Processing by ItemsController#show as HTML
Parameters: {"id"=>"1"}
[1m[36mItem Load (0.1ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", 1]]
Rendered items/show.html.erb within layouts/application (1.9ms)
Completed 200 OK in 148ms (Views: 147.0ms | ActiveRecord: 0.1ms)
Started GET "/items/1" for 127.0.0.1 at 2016-03-07 17:10:39 +0200
Processing by ItemsController#show as HTML
Parameters: {"id"=>"1"}
[1m[35mItem Load (0.1ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 1]]
Rendered items/show.html.erb within layouts/application (1.1ms)
Completed 200 OK in 14ms (Views: 12.5ms | ActiveRecord: 0.1ms)
Started GET "/items/1" for 127.0.0.1 at 2016-03-07 17:10:40 +0200
Processing by ItemsController#show as HTML
Parameters: {"id"=>"1"}
[1m[36mItem Load (0.1ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", 1]]
Rendered items/show.html.erb within layouts/application (0.6ms)
Completed 200 OK in 9ms (Views: 8.6ms | ActiveRecord: 0.1ms)
Started GET "/items/1" for 127.0.0.1 at 2016-03-07 17:19:58 +0200
Processing by ItemsController#show as HTML
Parameters: {"id"=>"1"}
[1m[35mItem Load (0.2ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 1]]
Rendered items/show.html.erb within layouts/application (9.3ms)
Completed 500 Internal Server Error in 19ms (ActiveRecord: 0.6ms)
ActionView::Template::Error (undefined local variable or method `custom' for #<#:0x007efdfc1a0a80>):
18:
19: JUST
20: <%= @item %>
21: <%= custom %>
22: <%= SimpleCart::CartTest.new(@item) %>
23:
24:
app/views/items/show.html.erb:21:in `_app_views_items_show_html_erb__2983039470113521648_69814660734580'
Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/rescues/_source.erb (5.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.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.8ms)
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 (17.7ms)
Started GET "/items/1" for 127.0.0.1 at 2016-03-07 17:21:00 +0200
Processing by ItemsController#show as HTML
Parameters: {"id"=>"1"}
[1m[36mItem Load (0.1ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", 1]]
Rendered items/show.html.erb within layouts/application (10.2ms)
Completed 500 Internal Server Error in 13ms (ActiveRecord: 0.1ms)
ActionView::Template::Error (undefined local variable or method `custom' for #<#:0x007efdfc7defa0>):
18:
19: JUST
20: <%= @item %>
21: <%= custom %>
22: <%= SimpleCart::CartTest.new(@item) %>
23:
24:
app/views/items/show.html.erb:21:in `_app_views_items_show_html_erb__2983039470113521648_69814660734580'
Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/rescues/_source.erb (8.0ms)
Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (3.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 (21.9ms)
Started GET "/items/1" for 127.0.0.1 at 2016-03-07 17:21:03 +0200
Processing by ItemsController#show as HTML
Parameters: {"id"=>"1"}
[1m[35mItem Load (0.2ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 1]]
Rendered items/show.html.erb within layouts/application (14.7ms)
Completed 500 Internal Server Error in 20ms (ActiveRecord: 0.2ms)
ActionView::Template::Error (undefined local variable or method `custom' for #<#:0x007efdfc35d760>):
18:
19: JUST
20: <%= @item %>
21: <%= custom %>
22: <%= SimpleCart::CartTest.new(@item) %>
23:
24:
app/views/items/show.html.erb:21:in `_app_views_items_show_html_erb__2983039470113521648_69814660734580'
Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/rescues/_source.erb (5.7ms)
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/template_error.html.erb within rescues/layout (18.0ms)
Started GET "/items/1" for 127.0.0.1 at 2016-03-07 17:21:09 +0200
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
Processing by ItemsController#show as HTML
Parameters: {"id"=>"1"}
[1m[35mItem Load (0.2ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 1]]
Rendered items/show.html.erb within layouts/application (19.8ms)
Completed 500 Internal Server Error in 44ms (ActiveRecord: 0.5ms)
ActionView::Template::Error (undefined local variable or method `custom' for #<#:0x000000041b1e18>):
18:
19: JUST
20: <%= @item %>
21: <%= custom %>
22: <%= SimpleCart::CartTest.new(@item) %>
23:
24:
app/views/items/show.html.erb:21:in `_app_views_items_show_html_erb__4425753845228062860_34745700'
Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/rescues/_source.erb (5.4ms)
Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (2.4ms)
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/template_error.html.erb within rescues/layout (17.6ms)
Started GET "/items/1" for 127.0.0.1 at 2016-03-07 17:21:18 +0200
Processing by ItemsController#show as HTML
Parameters: {"id"=>"1"}
[1m[36mItem Load (0.1ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", 1]]
Rendered items/show.html.erb within layouts/application (8.5ms)
Completed 500 Internal Server Error in 19ms (ActiveRecord: 0.6ms)
ActionView::Template::Error (undefined local variable or method `custom' for #<#:0x00000002a7c338>):
18:
19: JUST
20: <%= @item %>
21: <%= custom %>
22: <%= SimpleCart::CartTest.new(@item) %>
23:
24:
app/views/items/show.html.erb:21:in `_app_views_items_show_html_erb__4425753845228062860_34745700'
Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/rescues/_source.erb (5.4ms)
Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (2.2ms)
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.7ms)
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 (17.3ms)
Started GET "/items/1" for 127.0.0.1 at 2016-03-07 17:21:19 +0200
Processing by ItemsController#show as HTML
Parameters: {"id"=>"1"}
[1m[35mItem Load (0.2ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 1]]
Rendered items/show.html.erb within layouts/application (13.3ms)
Completed 500 Internal Server Error in 17ms (ActiveRecord: 0.2ms)
ActionView::Template::Error (undefined local variable or method `custom' for #<#:0x00000003addc90>):
18:
19: JUST
20: <%= @item %>
21: <%= custom %>
22: <%= SimpleCart::CartTest.new(@item) %>
23:
24:
app/views/items/show.html.erb:21:in `_app_views_items_show_html_erb__4425753845228062860_34745700'
Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/rescues/_source.erb (5.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 (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.8ms)
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 (17.0ms)
Started GET "/items/1" for 127.0.0.1 at 2016-03-07 17:21:21 +0200
Processing by ItemsController#show as HTML
Parameters: {"id"=>"1"}
[1m[36mItem Load (0.1ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", 1]]
Rendered items/show.html.erb within layouts/application (11.9ms)
Completed 500 Internal Server Error in 14ms (ActiveRecord: 0.1ms)
ActionView::Template::Error (undefined local variable or method `custom' for #<#:0x00000003d8c658>):
18:
19: JUST
20: <%= @item %>
21: <%= custom %>
22: <%= SimpleCart::CartTest.new(@item) %>
23:
24:
app/views/items/show.html.erb:21:in `_app_views_items_show_html_erb__4425753845228062860_34745700'
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 (2.2ms)
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.7ms)
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 (18.3ms)
Started GET "/items/1" for 127.0.0.1 at 2016-03-07 17:21:24 +0200
Processing by ItemsController#show as HTML
Parameters: {"id"=>"1"}
[1m[35mItem Load (0.1ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 1]]
Rendered items/show.html.erb within layouts/application (10.4ms)
Completed 500 Internal Server Error in 13ms (ActiveRecord: 0.1ms)
ActionView::Template::Error (undefined local variable or method `custom' for #<#:0x00000003eb4418>):
18:
19: JUST
20: <%= @item %>
21: <%= custom %>
22: <%= SimpleCart::CartTest.new(@item) %>
23:
24:
app/views/items/show.html.erb:21:in `_app_views_items_show_html_erb__4425753845228062860_34745700'
Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/rescues/_source.erb (5.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.5ms)
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.7ms)
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 (18.1ms)
Started GET "/items/1" for 127.0.0.1 at 2016-03-07 17:21:38 +0200
Processing by ItemsController#show as HTML
Parameters: {"id"=>"1"}
[1m[36mItem Load (0.1ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", 1]]
Rendered items/show.html.erb within layouts/application (14.6ms)
Completed 500 Internal Server Error in 18ms (ActiveRecord: 0.1ms)
ActionView::Template::Error (undefined local variable or method `custom' for #<#:0x00000003fdb170>):
18:
19: JUST
20: <%= @item %>
21: <%= custom %>
22: <%= SimpleCart::CartTest.new(@item) %>
23:
24:
app/views/items/show.html.erb:21:in `_app_views_items_show_html_erb__4425753845228062860_34745700'
Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/rescues/_source.erb (6.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.4ms)
Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (1.0ms)
Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/rescues/template_error.html.erb within rescues/layout (20.3ms)
Started GET "/items/1" for 127.0.0.1 at 2016-03-07 17:23:06 +0200
Processing by ItemsController#show as HTML
Parameters: {"id"=>"1"}
[1m[35mItem Load (0.1ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 1]]
Rendered items/show.html.erb within layouts/application (11.5ms)
Completed 500 Internal Server Error in 14ms (ActiveRecord: 0.1ms)
ActionView::Template::Error (Missing partial carts/_buy with {:locale=>[:en], :formats=>[:html, :text, :js, :css, :ics, :csv, :vcf, :png, :jpeg, :gif, :bmp, :tiff, :mpeg, :xml, :rss, :atom, :yaml, :multipart_form, :url_encoded_form, :json, :pdf, :zip], :variants=>[], :handlers=>[:erb, :builder, :raw, :ruby, :haml]}. Searched in:
* "/home/leksster/ror/Rubygarage/Amazon/simple_cart/test/dummy/app/views"
* "/home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views"
):
18:
19: JUST
20: <%= @item %>
21: <%= ApplicationController.new.render_to_string(partial: 'carts/buy') %>
22: <%= SimpleCart::CartTest.new(@item) %>
23:
24:
app/views/items/show.html.erb:21:in `_app_views_items_show_html_erb__4425753845228062860_34143560'
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.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.8ms)
Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/rescues/template_error.html.erb within rescues/layout (19.6ms)
Started GET "/items/1" for 127.0.0.1 at 2016-03-07 17:23:16 +0200
Processing by ItemsController#show as HTML
Parameters: {"id"=>"1"}
[1m[36mItem Load (0.1ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", 1]]
Rendered items/show.html.erb within layouts/application (7.5ms)
Completed 500 Internal Server Error in 10ms (ActiveRecord: 0.1ms)
ActionView::Template::Error (Missing partial application/_buy with {:locale=>[:en], :formats=>[:html, :text, :js, :css, :ics, :csv, :vcf, :png, :jpeg, :gif, :bmp, :tiff, :mpeg, :xml, :rss, :atom, :yaml, :multipart_form, :url_encoded_form, :json, :pdf, :zip], :variants=>[], :handlers=>[:erb, :builder, :raw, :ruby, :haml]}. Searched in:
* "/home/leksster/ror/Rubygarage/Amazon/simple_cart/test/dummy/app/views"
* "/home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views"
):
18:
19: JUST
20: <%= @item %>
21: <%= ApplicationController.new.render_to_string(partial: 'buy') %>
22: <%= SimpleCart::CartTest.new(@item) %>
23:
24:
app/views/items/show.html.erb:21:in `_app_views_items_show_html_erb__4425753845228062860_33248900'
Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/rescues/_source.erb (6.1ms)
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.5ms)
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 (18.8ms)
Started GET "/" for 127.0.0.1 at 2016-03-09 13:15:35 +0200
[1m[36mActiveRecord::SchemaMigration Load (0.2ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
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 (7.7ms)
Completed 200 OK in 69ms (Views: 68.6ms | ActiveRecord: 0.0ms)
Started GET "/" for 127.0.0.1 at 2016-03-09 13:15:36 +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.1ms)
Completed 200 OK in 2ms (Views: 1.9ms | ActiveRecord: 0.0ms)
Started GET "/cart" for 127.0.0.1 at 2016-03-09 13:15:44 +0200
ActionController::RoutingError (No route matches [GET] "/cart"):
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.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/_trace.html.erb (1.7ms)
Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/routes/_route.html.erb (1.2ms)
Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/routes/_route.html.erb (0.6ms)
Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/routes/_table.html.erb (5.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 (14.1ms)
Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/rescues/routing_error.html.erb within rescues/layout (74.3ms)
Started GET "/simple_cart/cart" for 127.0.0.1 at 2016-03-09 13:15:49 +0200
ActionController::RoutingError (uninitialized constant SimpleCart::CartsController):
activesupport (4.2.5.2) lib/active_support/inflector/methods.rb:263:in `const_get'
activesupport (4.2.5.2) lib/active_support/inflector/methods.rb:263:in `block in constantize'
activesupport (4.2.5.2) lib/active_support/inflector/methods.rb:259:in `each'
activesupport (4.2.5.2) lib/active_support/inflector/methods.rb:259:in `inject'
activesupport (4.2.5.2) lib/active_support/inflector/methods.rb:259:in `constantize'
actionpack (4.2.5.2) lib/action_dispatch/routing/route_set.rb:70:in `controller_reference'
actionpack (4.2.5.2) lib/action_dispatch/routing/route_set.rb:60:in `controller'
actionpack (4.2.5.2) lib/action_dispatch/routing/route_set.rb:39: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/_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/routes/_route.html.erb (1.6ms)
Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/routes/_route.html.erb (0.4ms)
Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/routes/_table.html.erb (1.5ms)
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.3ms)
Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/rescues/routing_error.html.erb within rescues/layout (26.6ms)
Started GET "/simple_cart/" for 127.0.0.1 at 2016-03-09 13:15:52 +0200
ActionController::RoutingError (No route matches [GET] "/simple_cart"):
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.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/_trace.html.erb (1.6ms)
Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/routes/_route.html.erb (0.9ms)
Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/routes/_route.html.erb (0.3ms)
Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/routes/_table.html.erb (2.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 (1.4ms)
Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/rescues/routing_error.html.erb within rescues/layout (25.9ms)
Started GET "/simple_cart/cart" for 127.0.0.1 at 2016-03-09 13:15:55 +0200
ActionController::RoutingError (uninitialized constant SimpleCart::CartsController):
activesupport (4.2.5.2) lib/active_support/inflector/methods.rb:263:in `const_get'
activesupport (4.2.5.2) lib/active_support/inflector/methods.rb:263:in `block in constantize'
activesupport (4.2.5.2) lib/active_support/inflector/methods.rb:259:in `each'
activesupport (4.2.5.2) lib/active_support/inflector/methods.rb:259:in `inject'
activesupport (4.2.5.2) lib/active_support/inflector/methods.rb:259:in `constantize'
actionpack (4.2.5.2) lib/action_dispatch/routing/route_set.rb:70:in `controller_reference'
actionpack (4.2.5.2) lib/action_dispatch/routing/route_set.rb:60:in `controller'
actionpack (4.2.5.2) lib/action_dispatch/routing/route_set.rb:39: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/_trace.html.erb (3.5ms)
Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/routes/_route.html.erb (1.1ms)
Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/routes/_route.html.erb (4.7ms)
Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/routes/_table.html.erb (1.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 (1.1ms)
Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/rescues/routing_error.html.erb within rescues/layout (31.9ms)
Started GET "/items" for 127.0.0.1 at 2016-03-09 13:16:04 +0200
Processing by ItemsController#index as HTML
[1m[35mItem Load (0.2ms)[0m SELECT "items".* FROM "items"
Rendered items/index.html.erb within layouts/application (6.2ms)
Completed 200 OK in 565ms (Views: 528.1ms | ActiveRecord: 0.4ms)
Started GET "/assets/scaffold.self-83b741db49389dc7cfdf85bf7537a0219cce48e085c4116afc83d55c9af47c78.css?body=1" for 127.0.0.1 at 2016-03-09 13:16:05 +0200
Started GET "/assets/application.self-e80e8f2318043e8af94dddc2adad5a4f09739a8ebb323b3ab31cd71d45fd9113.css?body=1" for 127.0.0.1 at 2016-03-09 13:16:05 +0200
Started GET "/assets/items.self-b60acab5af8d245ed2b3012f77d11d8d207d8eada27756badaf4ef05770d60f6.css?body=1" for 127.0.0.1 at 2016-03-09 13:16:05 +0200
Started GET "/assets/application.self-8f06a73c35179188914ab50e057157639fce1401c1cdca640ac9cec33746fc5b.js?body=1" for 127.0.0.1 at 2016-03-09 13:16:05 +0200
Started GET "/assets/items.self-19a187bec6cdb96d6de80a61c16c857c613536adf9138476bd367db38d282635.js?body=1" for 127.0.0.1 at 2016-03-09 13:16:05 +0200
Started GET "/items/1" for 127.0.0.1 at 2016-03-09 13:16:07 +0200
Processing by ItemsController#show as HTML
Parameters: {"id"=>"1"}
[1m[36mItem Load (0.2ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", 1]]
Rendered items/show.html.erb within layouts/application (7.0ms)
Completed 500 Internal Server Error in 64ms (ActiveRecord: 0.2ms)
LoadError (Unable to autoload constant CartTest, expected /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/models/cart_test.rb to define it):
app/views/items/show.html.erb:21:in `_app_views_items_show_html_erb__3366056058670613319_33825700'
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 (2.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 (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 (23.9ms)
Started GET "/items/1" for 127.0.0.1 at 2016-03-09 13:19:15 +0200
Processing by ItemsController#show as HTML
Parameters: {"id"=>"1"}
[1m[35mItem Load (0.2ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 1]]
Rendered items/show.html.erb within layouts/application (1.8ms)
Completed 500 Internal Server Error in 5ms (ActiveRecord: 0.2ms)
LoadError (Unable to autoload constant CartTest, expected /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/models/cart_test.rb to define it):
app/views/items/show.html.erb:21:in `_app_views_items_show_html_erb__3366056058670613319_70230307234620'
Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/rescues/_source.erb (6.5ms)
Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (8.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/diagnostics.html.erb within rescues/layout (25.8ms)
Started GET "/items/1" for 127.0.0.1 at 2016-03-09 13:19:20 +0200
Processing by ItemsController#show as HTML
Parameters: {"id"=>"1"}
[1m[36mItem Load (0.1ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", 1]]
Rendered items/show.html.erb within layouts/application (1.4ms)
Completed 200 OK in 12ms (Views: 10.8ms | ActiveRecord: 0.1ms)
Started GET "/assets/items.self-b60acab5af8d245ed2b3012f77d11d8d207d8eada27756badaf4ef05770d60f6.css?body=1" for 127.0.0.1 at 2016-03-09 13:19:20 +0200
Started GET "/assets/scaffold.self-83b741db49389dc7cfdf85bf7537a0219cce48e085c4116afc83d55c9af47c78.css?body=1" for 127.0.0.1 at 2016-03-09 13:19:20 +0200
Started GET "/assets/items.self-19a187bec6cdb96d6de80a61c16c857c613536adf9138476bd367db38d282635.js?body=1" for 127.0.0.1 at 2016-03-09 13:19:20 +0200
Started GET "/assets/application.self-e80e8f2318043e8af94dddc2adad5a4f09739a8ebb323b3ab31cd71d45fd9113.css?body=1" for 127.0.0.1 at 2016-03-09 13:19:20 +0200
Started GET "/assets/application.self-8f06a73c35179188914ab50e057157639fce1401c1cdca640ac9cec33746fc5b.js?body=1" for 127.0.0.1 at 2016-03-09 13:19:20 +0200
Started GET "/items/1" for 127.0.0.1 at 2016-03-09 13:19:24 +0200
Processing by ItemsController#show as HTML
Parameters: {"id"=>"1"}
[1m[35mItem Load (0.1ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 1]]
Rendered items/show.html.erb within layouts/application (0.6ms)
Completed 200 OK in 10ms (Views: 9.1ms | ActiveRecord: 0.1ms)
Started GET "/assets/items.self-b60acab5af8d245ed2b3012f77d11d8d207d8eada27756badaf4ef05770d60f6.css?body=1" for 127.0.0.1 at 2016-03-09 13:19:24 +0200
Started GET "/assets/scaffold.self-83b741db49389dc7cfdf85bf7537a0219cce48e085c4116afc83d55c9af47c78.css?body=1" for 127.0.0.1 at 2016-03-09 13:19:24 +0200
Started GET "/assets/application.self-8f06a73c35179188914ab50e057157639fce1401c1cdca640ac9cec33746fc5b.js?body=1" for 127.0.0.1 at 2016-03-09 13:19:24 +0200
Started GET "/assets/items.self-19a187bec6cdb96d6de80a61c16c857c613536adf9138476bd367db38d282635.js?body=1" for 127.0.0.1 at 2016-03-09 13:19:24 +0200
Started GET "/assets/application.self-e80e8f2318043e8af94dddc2adad5a4f09739a8ebb323b3ab31cd71d45fd9113.css?body=1" for 127.0.0.1 at 2016-03-09 13:19:24 +0200
Started GET "/items/1" for 127.0.0.1 at 2016-03-09 13:19:27 +0200
Processing by ItemsController#show as HTML
Parameters: {"id"=>"1"}
[1m[36mItem Load (0.1ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", 1]]
Rendered items/show.html.erb within layouts/application (1.0ms)
Completed 200 OK in 11ms (Views: 10.6ms | ActiveRecord: 0.1ms)
Started GET "/items/1" for 127.0.0.1 at 2016-03-09 13:20:09 +0200
Processing by ItemsController#show as HTML
Parameters: {"id"=>"1"}
[1m[35mItem Load (0.1ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 1]]
Rendered items/show.html.erb within layouts/application (0.8ms)
Completed 200 OK in 12ms (Views: 10.7ms | ActiveRecord: 0.1ms)
Started GET "/assets/items.self-b60acab5af8d245ed2b3012f77d11d8d207d8eada27756badaf4ef05770d60f6.css?body=1" for 127.0.0.1 at 2016-03-09 13:20:10 +0200
Started GET "/assets/scaffold.self-83b741db49389dc7cfdf85bf7537a0219cce48e085c4116afc83d55c9af47c78.css?body=1" for 127.0.0.1 at 2016-03-09 13:20:10 +0200
Started GET "/assets/items.self-19a187bec6cdb96d6de80a61c16c857c613536adf9138476bd367db38d282635.js?body=1" for 127.0.0.1 at 2016-03-09 13:20:10 +0200
Started GET "/assets/application.self-e80e8f2318043e8af94dddc2adad5a4f09739a8ebb323b3ab31cd71d45fd9113.css?body=1" for 127.0.0.1 at 2016-03-09 13:20:10 +0200
Started GET "/assets/application.self-8f06a73c35179188914ab50e057157639fce1401c1cdca640ac9cec33746fc5b.js?body=1" for 127.0.0.1 at 2016-03-09 13:20:10 +0200
Started GET "/items/1" for 127.0.0.1 at 2016-03-09 13:23:42 +0200
Processing by ItemsController#show as HTML
Parameters: {"id"=>"1"}
[1m[36mItem Load (0.1ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", 1]]
Rendered items/show.html.erb within layouts/application (0.7ms)
Completed 200 OK in 10ms (Views: 8.4ms | ActiveRecord: 0.1ms)
Started GET "/assets/items.self-b60acab5af8d245ed2b3012f77d11d8d207d8eada27756badaf4ef05770d60f6.css?body=1" for 127.0.0.1 at 2016-03-09 13:23:42 +0200
Started GET "/assets/scaffold.self-83b741db49389dc7cfdf85bf7537a0219cce48e085c4116afc83d55c9af47c78.css?body=1" for 127.0.0.1 at 2016-03-09 13:23:42 +0200
Started GET "/assets/application.self-e80e8f2318043e8af94dddc2adad5a4f09739a8ebb323b3ab31cd71d45fd9113.css?body=1" for 127.0.0.1 at 2016-03-09 13:23:42 +0200
Started GET "/assets/items.self-19a187bec6cdb96d6de80a61c16c857c613536adf9138476bd367db38d282635.js?body=1" for 127.0.0.1 at 2016-03-09 13:23:42 +0200
Started GET "/assets/application.self-8f06a73c35179188914ab50e057157639fce1401c1cdca640ac9cec33746fc5b.js?body=1" for 127.0.0.1 at 2016-03-09 13:23:42 +0200
Started GET "/items/1" for 127.0.0.1 at 2016-03-09 13:23:43 +0200
Processing by ItemsController#show as HTML
Parameters: {"id"=>"1"}
[1m[35mItem Load (0.1ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 1]]
Rendered items/show.html.erb within layouts/application (0.7ms)
Completed 200 OK in 12ms (Views: 11.0ms | ActiveRecord: 0.1ms)
Started GET "/assets/items.self-b60acab5af8d245ed2b3012f77d11d8d207d8eada27756badaf4ef05770d60f6.css?body=1" for 127.0.0.1 at 2016-03-09 13:23:43 +0200
Started GET "/assets/scaffold.self-83b741db49389dc7cfdf85bf7537a0219cce48e085c4116afc83d55c9af47c78.css?body=1" for 127.0.0.1 at 2016-03-09 13:23:43 +0200
Started GET "/assets/application.self-e80e8f2318043e8af94dddc2adad5a4f09739a8ebb323b3ab31cd71d45fd9113.css?body=1" for 127.0.0.1 at 2016-03-09 13:23:43 +0200
Started GET "/assets/items.self-19a187bec6cdb96d6de80a61c16c857c613536adf9138476bd367db38d282635.js?body=1" for 127.0.0.1 at 2016-03-09 13:23:43 +0200
Started GET "/assets/application.self-8f06a73c35179188914ab50e057157639fce1401c1cdca640ac9cec33746fc5b.js?body=1" for 127.0.0.1 at 2016-03-09 13:23:44 +0200
Started GET "/items/1" for 127.0.0.1 at 2016-03-09 13:23:46 +0200
Processing by ItemsController#show as HTML
Parameters: {"id"=>"1"}
[1m[36mItem Load (0.3ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", 1]]
Rendered items/show.html.erb within layouts/application (0.8ms)
Completed 200 OK in 18ms (Views: 10.2ms | ActiveRecord: 0.9ms)
Started GET "/assets/items.self-b60acab5af8d245ed2b3012f77d11d8d207d8eada27756badaf4ef05770d60f6.css?body=1" for 127.0.0.1 at 2016-03-09 13:23:46 +0200
Started GET "/assets/scaffold.self-83b741db49389dc7cfdf85bf7537a0219cce48e085c4116afc83d55c9af47c78.css?body=1" for 127.0.0.1 at 2016-03-09 13:23:46 +0200
Started GET "/assets/application.self-e80e8f2318043e8af94dddc2adad5a4f09739a8ebb323b3ab31cd71d45fd9113.css?body=1" for 127.0.0.1 at 2016-03-09 13:23:46 +0200
Started GET "/assets/application.self-8f06a73c35179188914ab50e057157639fce1401c1cdca640ac9cec33746fc5b.js?body=1" for 127.0.0.1 at 2016-03-09 13:23:46 +0200
Started GET "/assets/items.self-19a187bec6cdb96d6de80a61c16c857c613536adf9138476bd367db38d282635.js?body=1" for 127.0.0.1 at 2016-03-09 13:23:46 +0200
Started GET "/items/1" for 127.0.0.1 at 2016-03-09 13:23:47 +0200
Processing by ItemsController#show as HTML
Parameters: {"id"=>"1"}
[1m[35mItem Load (0.1ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 1]]
Rendered items/show.html.erb within layouts/application (1.0ms)
Completed 200 OK in 10ms (Views: 9.5ms | ActiveRecord: 0.1ms)
Started GET "/assets/items.self-b60acab5af8d245ed2b3012f77d11d8d207d8eada27756badaf4ef05770d60f6.css?body=1" for 127.0.0.1 at 2016-03-09 13:23:47 +0200
Started GET "/assets/scaffold.self-83b741db49389dc7cfdf85bf7537a0219cce48e085c4116afc83d55c9af47c78.css?body=1" for 127.0.0.1 at 2016-03-09 13:23:47 +0200
Started GET "/assets/application.self-e80e8f2318043e8af94dddc2adad5a4f09739a8ebb323b3ab31cd71d45fd9113.css?body=1" for 127.0.0.1 at 2016-03-09 13:23:47 +0200
Started GET "/assets/items.self-19a187bec6cdb96d6de80a61c16c857c613536adf9138476bd367db38d282635.js?body=1" for 127.0.0.1 at 2016-03-09 13:23:47 +0200
Started GET "/assets/application.self-8f06a73c35179188914ab50e057157639fce1401c1cdca640ac9cec33746fc5b.js?body=1" for 127.0.0.1 at 2016-03-09 13:23:47 +0200
Started GET "/items/1" for 127.0.0.1 at 2016-03-09 13:23:48 +0200
Processing by ItemsController#show as HTML
Parameters: {"id"=>"1"}
[1m[36mItem Load (0.1ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", 1]]
Rendered items/show.html.erb within layouts/application (0.8ms)
Completed 200 OK in 18ms (Views: 17.0ms | ActiveRecord: 0.1ms)
Started GET "/assets/items.self-b60acab5af8d245ed2b3012f77d11d8d207d8eada27756badaf4ef05770d60f6.css?body=1" for 127.0.0.1 at 2016-03-09 13:23:48 +0200
Started GET "/assets/scaffold.self-83b741db49389dc7cfdf85bf7537a0219cce48e085c4116afc83d55c9af47c78.css?body=1" for 127.0.0.1 at 2016-03-09 13:23:48 +0200
Started GET "/assets/application.self-e80e8f2318043e8af94dddc2adad5a4f09739a8ebb323b3ab31cd71d45fd9113.css?body=1" for 127.0.0.1 at 2016-03-09 13:23:48 +0200
Started GET "/assets/items.self-19a187bec6cdb96d6de80a61c16c857c613536adf9138476bd367db38d282635.js?body=1" for 127.0.0.1 at 2016-03-09 13:23:48 +0200
Started GET "/assets/application.self-8f06a73c35179188914ab50e057157639fce1401c1cdca640ac9cec33746fc5b.js?body=1" for 127.0.0.1 at 2016-03-09 13:23:48 +0200
Started GET "/items/1" for 127.0.0.1 at 2016-03-09 13:23:49 +0200
Processing by ItemsController#show as HTML
Parameters: {"id"=>"1"}
[1m[35mItem Load (0.2ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 1]]
Rendered items/show.html.erb within layouts/application (1.4ms)
Completed 200 OK in 16ms (Views: 14.8ms | ActiveRecord: 0.2ms)
Started GET "/items/1" for 127.0.0.1 at 2016-03-09 13:23:53 +0200
Processing by ItemsController#show as HTML
Parameters: {"id"=>"1"}
[1m[36mItem Load (0.1ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", 1]]
Rendered items/show.html.erb within layouts/application (0.9ms)
Completed 200 OK in 14ms (Views: 13.5ms | ActiveRecord: 0.1ms)
Started GET "/assets/scaffold.self-83b741db49389dc7cfdf85bf7537a0219cce48e085c4116afc83d55c9af47c78.css?body=1" for 127.0.0.1 at 2016-03-09 13:23:53 +0200
Started GET "/assets/items.self-19a187bec6cdb96d6de80a61c16c857c613536adf9138476bd367db38d282635.js?body=1" for 127.0.0.1 at 2016-03-09 13:23:53 +0200
Started GET "/assets/application.self-e80e8f2318043e8af94dddc2adad5a4f09739a8ebb323b3ab31cd71d45fd9113.css?body=1" for 127.0.0.1 at 2016-03-09 13:23:53 +0200
Started GET "/assets/items.self-b60acab5af8d245ed2b3012f77d11d8d207d8eada27756badaf4ef05770d60f6.css?body=1" for 127.0.0.1 at 2016-03-09 13:23:53 +0200
Started GET "/assets/application.self-8f06a73c35179188914ab50e057157639fce1401c1cdca640ac9cec33746fc5b.js?body=1" for 127.0.0.1 at 2016-03-09 13:23:53 +0200
Started GET "/items/1" for 127.0.0.1 at 2016-03-09 13:23:55 +0200
Processing by ItemsController#show as HTML
Parameters: {"id"=>"1"}
[1m[35mItem Load (0.1ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 1]]
Rendered items/show.html.erb within layouts/application (1.0ms)
Completed 200 OK in 16ms (Views: 14.9ms | ActiveRecord: 0.1ms)
Started GET "/items/1" for 127.0.0.1 at 2016-03-09 13:23:56 +0200
Processing by ItemsController#show as HTML
Parameters: {"id"=>"1"}
[1m[36mItem Load (0.2ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", 1]]
Rendered items/show.html.erb within layouts/application (1.2ms)
Completed 200 OK in 12ms (Views: 10.8ms | ActiveRecord: 0.2ms)
Started GET "/assets/scaffold.self-83b741db49389dc7cfdf85bf7537a0219cce48e085c4116afc83d55c9af47c78.css?body=1" for 127.0.0.1 at 2016-03-09 13:23:56 +0200
Started GET "/assets/items.self-b60acab5af8d245ed2b3012f77d11d8d207d8eada27756badaf4ef05770d60f6.css?body=1" for 127.0.0.1 at 2016-03-09 13:23:56 +0200
Started GET "/assets/application.self-e80e8f2318043e8af94dddc2adad5a4f09739a8ebb323b3ab31cd71d45fd9113.css?body=1" for 127.0.0.1 at 2016-03-09 13:23:56 +0200
Started GET "/assets/application.self-8f06a73c35179188914ab50e057157639fce1401c1cdca640ac9cec33746fc5b.js?body=1" for 127.0.0.1 at 2016-03-09 13:23:56 +0200
Started GET "/assets/items.self-19a187bec6cdb96d6de80a61c16c857c613536adf9138476bd367db38d282635.js?body=1" for 127.0.0.1 at 2016-03-09 13:23:56 +0200
Started GET "/items/1" for 127.0.0.1 at 2016-03-09 13:24:04 +0200
[1m[36mActiveRecord::SchemaMigration Load (0.2ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
Processing by ItemsController#show as HTML
Parameters: {"id"=>"1"}
[1m[35mItem Load (0.2ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 1]]
Rendered items/show.html.erb within layouts/application (9.2ms)
Completed 500 Internal Server Error in 35ms (ActiveRecord: 0.8ms)
LoadError (Unable to autoload constant CartTest, expected /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/models/cart_test.rb to define it):
app/views/items/show.html.erb:21:in `_app_views_items_show_html_erb__2246030496135916429_45008820'
Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/rescues/_source.erb (5.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.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.7ms)
Started GET "/items/1" for 127.0.0.1 at 2016-03-09 13:24:13 +0200
Processing by ItemsController#show as HTML
Parameters: {"id"=>"1"}
[1m[36mItem Load (0.2ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", 1]]
Rendered items/show.html.erb within layouts/application (0.8ms)
Completed 200 OK in 148ms (Views: 147.2ms | ActiveRecord: 0.2ms)
Started GET "/items/1" for 127.0.0.1 at 2016-03-09 13:54:35 +0200
Processing by ItemsController#show as HTML
Parameters: {"id"=>"1"}
[1m[35mItem Load (0.1ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 1]]
Rendered items/show.html.erb within layouts/application (0.8ms)
Completed 200 OK in 16ms (Views: 9.9ms | ActiveRecord: 0.5ms)
Started GET "/items/1" for 127.0.0.1 at 2016-03-09 13:54:37 +0200
Processing by ItemsController#show as HTML
Parameters: {"id"=>"1"}
[1m[36mItem Load (0.2ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", 1]]
Rendered items/show.html.erb within layouts/application (0.7ms)
Completed 200 OK in 13ms (Views: 11.5ms | ActiveRecord: 0.2ms)
Started GET "/assets/scaffold.self-83b741db49389dc7cfdf85bf7537a0219cce48e085c4116afc83d55c9af47c78.css?body=1" for 127.0.0.1 at 2016-03-09 13:54:37 +0200
Started GET "/assets/items.self-b60acab5af8d245ed2b3012f77d11d8d207d8eada27756badaf4ef05770d60f6.css?body=1" for 127.0.0.1 at 2016-03-09 13:54:37 +0200
Started GET "/assets/application.self-e80e8f2318043e8af94dddc2adad5a4f09739a8ebb323b3ab31cd71d45fd9113.css?body=1" for 127.0.0.1 at 2016-03-09 13:54:37 +0200
Started GET "/assets/items.self-19a187bec6cdb96d6de80a61c16c857c613536adf9138476bd367db38d282635.js?body=1" for 127.0.0.1 at 2016-03-09 13:54:37 +0200
Started GET "/assets/application.self-8f06a73c35179188914ab50e057157639fce1401c1cdca640ac9cec33746fc5b.js?body=1" for 127.0.0.1 at 2016-03-09 13:54:37 +0200
Started GET "/items/1" for 127.0.0.1 at 2016-03-09 13:54:38 +0200
Processing by ItemsController#show as HTML
Parameters: {"id"=>"1"}
[1m[35mItem Load (0.1ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 1]]
Rendered items/show.html.erb within layouts/application (0.5ms)
Completed 200 OK in 7ms (Views: 6.7ms | ActiveRecord: 0.1ms)
Started GET "/assets/items.self-b60acab5af8d245ed2b3012f77d11d8d207d8eada27756badaf4ef05770d60f6.css?body=1" for 127.0.0.1 at 2016-03-09 13:54:38 +0200
Started GET "/assets/scaffold.self-83b741db49389dc7cfdf85bf7537a0219cce48e085c4116afc83d55c9af47c78.css?body=1" for 127.0.0.1 at 2016-03-09 13:54:38 +0200
Started GET "/assets/items.self-19a187bec6cdb96d6de80a61c16c857c613536adf9138476bd367db38d282635.js?body=1" for 127.0.0.1 at 2016-03-09 13:54:38 +0200
Started GET "/assets/application.self-e80e8f2318043e8af94dddc2adad5a4f09739a8ebb323b3ab31cd71d45fd9113.css?body=1" for 127.0.0.1 at 2016-03-09 13:54:38 +0200
Started GET "/assets/application.self-8f06a73c35179188914ab50e057157639fce1401c1cdca640ac9cec33746fc5b.js?body=1" for 127.0.0.1 at 2016-03-09 13:54:38 +0200
Started GET "/items/" for 127.0.0.1 at 2016-03-09 13:54:41 +0200
Processing by ItemsController#index as HTML
[1m[36mItem Load (0.2ms)[0m [1mSELECT "items".* FROM "items"[0m
Rendered items/index.html.erb within layouts/application (3.4ms)
Completed 200 OK in 13ms (Views: 12.6ms | ActiveRecord: 0.2ms)
Started GET "/items/new" for 127.0.0.1 at 2016-03-09 13:54:43 +0200
Processing by ItemsController#new as HTML
Rendered items/_form.html.erb (60.2ms)
Rendered items/new.html.erb within layouts/application (68.9ms)
Completed 200 OK in 102ms (Views: 101.3ms | ActiveRecord: 0.0ms)
Started POST "/items" for 127.0.0.1 at 2016-03-09 13:54:46 +0200
Processing by ItemsController#create as HTML
Parameters: {"utf8"=>"✓", "authenticity_token"=>"xfH+h9oqdxeldVNLT1mcMw+TG8z+GRlGSMG4vK77UttRQ1mlV/9Mb8hIDdcwYojP333q7UO+c/N1M4v/UjtObg==", "item"=>{"name"=>"11", "price"=>"25412", "qty"=>"25"}, "commit"=>"Create Item"}
[1m[35m (0.1ms)[0m begin transaction
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "items" ("name", "price", "qty", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["name", "11"], ["price", 25412.0], ["qty", 25], ["created_at", "2016-03-09 11:54:46.645018"], ["updated_at", "2016-03-09 11:54:46.645018"]]
[1m[35m (94.4ms)[0m commit transaction
Redirected to http://localhost:3000/items/2
Completed 302 Found in 97ms (ActiveRecord: 94.7ms)
Started GET "/items/2" for 127.0.0.1 at 2016-03-09 13:54:46 +0200
Processing by ItemsController#show as HTML
Parameters: {"id"=>"2"}
[1m[36mItem Load (0.1ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", 2]]
Rendered items/show.html.erb within layouts/application (0.8ms)
Completed 200 OK in 8ms (Views: 7.7ms | ActiveRecord: 0.1ms)
Started GET "/items/2" for 127.0.0.1 at 2016-03-09 13:54:59 +0200
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
Processing by ItemsController#show as HTML
Parameters: {"id"=>"2"}
[1m[35mItem Load (0.2ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 2]]
Rendered items/show.html.erb within layouts/application (8.6ms)
Completed 500 Internal Server Error in 33ms (ActiveRecord: 0.4ms)
LoadError (Unable to autoload constant CartTest, expected /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/models/cart_test.rb to define it):
app/views/items/show.html.erb:21:in `_app_views_items_show_html_erb___432711206184292407_34068900'
Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/rescues/_source.erb (5.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.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/diagnostics.html.erb within rescues/layout (18.5ms)
Started GET "/items/2" for 127.0.0.1 at 2016-03-09 13:55:01 +0200
Processing by ItemsController#show as HTML
Parameters: {"id"=>"2"}
[1m[36mItem Load (0.2ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", 2]]
Rendered items/show.html.erb within layouts/application (1.0ms)
Completed 200 OK in 152ms (Views: 150.6ms | ActiveRecord: 0.2ms)
Started GET "/items/2" for 127.0.0.1 at 2016-03-09 13:55:55 +0200
Processing by ItemsController#show as HTML
Parameters: {"id"=>"2"}
[1m[35mItem Load (0.1ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 2]]
Rendered items/show.html.erb within layouts/application (0.8ms)
Completed 200 OK in 16ms (Views: 10.9ms | ActiveRecord: 0.5ms)
Started GET "/assets/scaffold.self-83b741db49389dc7cfdf85bf7537a0219cce48e085c4116afc83d55c9af47c78.css?body=1" for 127.0.0.1 at 2016-03-09 13:55:55 +0200
Started GET "/assets/application.self-e80e8f2318043e8af94dddc2adad5a4f09739a8ebb323b3ab31cd71d45fd9113.css?body=1" for 127.0.0.1 at 2016-03-09 13:55:55 +0200
Started GET "/assets/items.self-b60acab5af8d245ed2b3012f77d11d8d207d8eada27756badaf4ef05770d60f6.css?body=1" for 127.0.0.1 at 2016-03-09 13:55:55 +0200
Started GET "/assets/items.self-19a187bec6cdb96d6de80a61c16c857c613536adf9138476bd367db38d282635.js?body=1" for 127.0.0.1 at 2016-03-09 13:55:55 +0200
Started GET "/assets/application.self-8f06a73c35179188914ab50e057157639fce1401c1cdca640ac9cec33746fc5b.js?body=1" for 127.0.0.1 at 2016-03-09 13:55:55 +0200
Started GET "/items/2" for 127.0.0.1 at 2016-03-09 13:55:57 +0200
Processing by ItemsController#show as HTML
Parameters: {"id"=>"2"}
[1m[36mItem Load (0.1ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", 2]]
Rendered items/show.html.erb within layouts/application (0.5ms)
Completed 200 OK in 12ms (Views: 11.3ms | ActiveRecord: 0.1ms)
Started GET "/items/2" for 127.0.0.1 at 2016-03-09 13:56:01 +0200
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
Processing by ItemsController#show as HTML
Parameters: {"id"=>"2"}
[1m[35mItem Load (0.2ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 2]]
Rendered items/show.html.erb within layouts/application (9.2ms)
Completed 500 Internal Server Error in 32ms (ActiveRecord: 0.5ms)
LoadError (Unable to autoload constant CartTest, expected /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/models/cart_test.rb to define it):
app/views/items/show.html.erb:21:in `_app_views_items_show_html_erb__1858853278760293019_36212140'
Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/rescues/_source.erb (5.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.4ms)
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.5ms)
Started GET "/items/2" for 127.0.0.1 at 2016-03-09 13:56:03 +0200
Processing by ItemsController#show as HTML
Parameters: {"id"=>"2"}
[1m[36mItem Load (0.1ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", 2]]
Rendered items/show.html.erb within layouts/application (0.7ms)
Completed 200 OK in 144ms (Views: 142.4ms | ActiveRecord: 0.1ms)
Started GET "/items/2" for 127.0.0.1 at 2016-03-09 13:56:05 +0200
Processing by ItemsController#show as HTML
Parameters: {"id"=>"2"}
[1m[35mItem Load (0.1ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 2]]
Rendered items/show.html.erb within layouts/application (1.0ms)
Completed 200 OK in 14ms (Views: 12.8ms | ActiveRecord: 0.1ms)
Started GET "/items/2" for 127.0.0.1 at 2016-03-09 14:01:42 +0200
Processing by ItemsController#show as HTML
Parameters: {"id"=>"2"}
[1m[36mItem Load (0.2ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", 2]]
Rendered items/show.html.erb within layouts/application (5.7ms)
Completed 500 Internal Server Error in 16ms (ActiveRecord: 0.7ms)
ActionView::Template::Error (undefined method `simple_cart' for SimpleCart::FormHelper:Module):
18:
19: JUST
20: <%= @item %>
21: <%= SimpleCart::FormHelper.simple_cart(@item) %>
22:
23:
24: <%= link_to 'Edit', edit_item_path(@item) %> |
app/views/items/show.html.erb:21:in `_app_views_items_show_html_erb__1858853278760293019_32404080'
Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/rescues/_source.erb (6.1ms)
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.8ms)
Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/rescues/template_error.html.erb within rescues/layout (19.6ms)
Started GET "/items/2" for 127.0.0.1 at 2016-03-09 14:02:05 +0200
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
Processing by ItemsController#show as HTML
Parameters: {"id"=>"2"}
[1m[35mItem Load (0.2ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 2]]
Rendered items/show.html.erb within layouts/application (10.9ms)
Completed 500 Internal Server Error in 36ms (ActiveRecord: 0.5ms)
ActionView::Template::Error (undefined method `simple_cart' for SimpleCart::FormHelper:Module):
18:
19: JUST
20: <%= @item %>
21: <%= SimpleCart::FormHelper.simple_cart(@item) %>
22:
23:
24: <%= link_to 'Edit', edit_item_path(@item) %> |
app/views/items/show.html.erb:21:in `_app_views_items_show_html_erb___822657062994077393_47119680'
Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/rescues/_source.erb (5.4ms)
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.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 (18.3ms)
Started GET "/items/2" for 127.0.0.1 at 2016-03-09 14:02:15 +0200
Processing by ItemsController#show as HTML
Parameters: {"id"=>"2"}
[1m[36mItem Load (0.2ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", 2]]
Rendered items/show.html.erb within layouts/application (2.2ms)
Completed 500 Internal Server Error in 6ms (ActiveRecord: 0.2ms)
ActionView::Template::Error (wrong number of arguments (1 for 0)):
18:
19: JUST
20: <%= @item %>
21: <%= simple_cart(@item) %>
22:
23:
24: <%= link_to 'Edit', edit_item_path(@item) %> |
app/views/items/show.html.erb:21:in `_app_views_items_show_html_erb___822657062994077393_43881540'
Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/rescues/_source.erb (5.5ms)
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.8ms)
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 (18.6ms)
Started GET "/items/2" for 127.0.0.1 at 2016-03-09 14:02:34 +0200
Processing by ItemsController#show as HTML
Parameters: {"id"=>"2"}
[1m[35mItem Load (0.2ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 2]]
Rendered items/show.html.erb within layouts/application (10.3ms)
Completed 500 Internal Server Error in 21ms (ActiveRecord: 0.8ms)
ActionView::Template::Error (undefined method `simple_help' for #<#:0x0000000531baa0>):
18:
19: JUST
20: <%= @item %>
21: <%= simple_help(@item) %>
22:
23:
24: <%= link_to 'Edit', edit_item_path(@item) %> |
app/views/items/show.html.erb:21:in `_app_views_items_show_html_erb___822657062994077393_43568840'
Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/rescues/_source.erb (5.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.2ms)
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.7ms)
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 (17.5ms)
Started GET "/items/2" for 127.0.0.1 at 2016-03-09 14:02:42 +0200
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
Processing by ItemsController#show as HTML
Parameters: {"id"=>"2"}
[1m[35mItem Load (0.2ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 2]]
Rendered items/show.html.erb within layouts/application (21.5ms)
Completed 500 Internal Server Error in 46ms (ActiveRecord: 0.5ms)
ActionView::Template::Error (undefined method `simple_help' for #<#:0x000000052eadd8>):
18:
19: JUST
20: <%= @item %>
21: <%= simple_help(@item) %>
22:
23:
24: <%= link_to 'Edit', edit_item_path(@item) %> |
app/views/items/show.html.erb:21:in `_app_views_items_show_html_erb__3747422088618103624_43705920'
Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/rescues/_source.erb (5.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.2ms)
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.7ms)
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 (18.6ms)
Started GET "/items/new" for 127.0.0.1 at 2016-03-09 14:04:51 +0200
Processing by ItemsController#new as HTML
Rendered items/_form.html.erb (9.4ms)
Rendered items/new.html.erb within layouts/application (11.9ms)
Completed 200 OK in 153ms (Views: 153.2ms | ActiveRecord: 0.0ms)
Started GET "/assets/items.self-b60acab5af8d245ed2b3012f77d11d8d207d8eada27756badaf4ef05770d60f6.css?body=1" for 127.0.0.1 at 2016-03-09 14:04:52 +0200
Started GET "/assets/scaffold.self-83b741db49389dc7cfdf85bf7537a0219cce48e085c4116afc83d55c9af47c78.css?body=1" for 127.0.0.1 at 2016-03-09 14:04:52 +0200
Started GET "/assets/application.self-e80e8f2318043e8af94dddc2adad5a4f09739a8ebb323b3ab31cd71d45fd9113.css?body=1" for 127.0.0.1 at 2016-03-09 14:04:52 +0200
Started GET "/assets/items.self-19a187bec6cdb96d6de80a61c16c857c613536adf9138476bd367db38d282635.js?body=1" for 127.0.0.1 at 2016-03-09 14:04:52 +0200
Started GET "/assets/application.self-8f06a73c35179188914ab50e057157639fce1401c1cdca640ac9cec33746fc5b.js?body=1" for 127.0.0.1 at 2016-03-09 14:04:52 +0200
Started GET "/items/2" for 127.0.0.1 at 2016-03-09 14:07:58 +0200
Processing by ItemsController#show as HTML
Parameters: {"id"=>"2"}
[1m[36mItem Load (0.2ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", 2]]
Rendered items/show.html.erb within layouts/application (9.3ms)
Completed 500 Internal Server Error in 20ms (ActiveRecord: 0.8ms)
ActionView::Template::Error (undefined method `simple_help' for #<#:0x007f68fc1f4ed0>):
18:
19: JUST
20: <%= @item %>
21: <%= simple_help(@item) %>
22:
23:
24: <%= link_to 'Edit', edit_item_path(@item) %> |
app/views/items/show.html.erb:21:in `_app_views_items_show_html_erb__3747422088618103624_43705920'
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 (3.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/template_error.html.erb within rescues/layout (19.5ms)
Started GET "/items/2" for 127.0.0.1 at 2016-03-09 14:08:03 +0200
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
Processing by ItemsController#show as HTML
Parameters: {"id"=>"2"}
[1m[35mItem Load (0.2ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 2]]
Rendered items/show.html.erb within layouts/application (24.2ms)
Completed 500 Internal Server Error in 49ms (ActiveRecord: 0.5ms)
ActionView::Template::Error (undefined method `simple_help' for #<#:0x000000058d8358>):
18:
19: JUST
20: <%= @item %>
21: <%= simple_help(@item) %>
22:
23:
24: <%= link_to 'Edit', edit_item_path(@item) %> |
app/views/items/show.html.erb:21:in `_app_views_items_show_html_erb__4312536288662565974_47028060'
Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/rescues/_source.erb (5.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.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.7ms)
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 (17.5ms)
Started GET "/items/2" for 127.0.0.1 at 2016-03-09 14:09:09 +0200
Processing by ItemsController#show as HTML
Parameters: {"id"=>"2"}
[1m[36mItem Load (0.1ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", 2]]
Rendered items/show.html.erb within layouts/application (0.8ms)
Completed 200 OK in 151ms (Views: 144.2ms | ActiveRecord: 0.5ms)
Started GET "/assets/items.self-b60acab5af8d245ed2b3012f77d11d8d207d8eada27756badaf4ef05770d60f6.css?body=1" for 127.0.0.1 at 2016-03-09 14:09:09 +0200
Started GET "/assets/scaffold.self-83b741db49389dc7cfdf85bf7537a0219cce48e085c4116afc83d55c9af47c78.css?body=1" for 127.0.0.1 at 2016-03-09 14:09:09 +0200
Started GET "/assets/application.self-e80e8f2318043e8af94dddc2adad5a4f09739a8ebb323b3ab31cd71d45fd9113.css?body=1" for 127.0.0.1 at 2016-03-09 14:09:09 +0200
Started GET "/assets/items.self-19a187bec6cdb96d6de80a61c16c857c613536adf9138476bd367db38d282635.js?body=1" for 127.0.0.1 at 2016-03-09 14:09:09 +0200
Started GET "/assets/application.self-8f06a73c35179188914ab50e057157639fce1401c1cdca640ac9cec33746fc5b.js?body=1" for 127.0.0.1 at 2016-03-09 14:09:09 +0200
Started GET "/items/2" for 127.0.0.1 at 2016-03-09 14:11:43 +0200
Processing by ItemsController#show as HTML
Parameters: {"id"=>"2"}
[1m[35mItem Load (0.2ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 2]]
Rendered items/show.html.erb within layouts/application (0.8ms)
Completed 200 OK in 16ms (Views: 10.9ms | ActiveRecord: 0.5ms)
Started GET "/assets/items.self-b60acab5af8d245ed2b3012f77d11d8d207d8eada27756badaf4ef05770d60f6.css?body=1" for 127.0.0.1 at 2016-03-09 14:11:43 +0200
Started GET "/assets/application.self-e80e8f2318043e8af94dddc2adad5a4f09739a8ebb323b3ab31cd71d45fd9113.css?body=1" for 127.0.0.1 at 2016-03-09 14:11:43 +0200
Started GET "/assets/application.self-8f06a73c35179188914ab50e057157639fce1401c1cdca640ac9cec33746fc5b.js?body=1" for 127.0.0.1 at 2016-03-09 14:11:43 +0200
Started GET "/assets/scaffold.self-83b741db49389dc7cfdf85bf7537a0219cce48e085c4116afc83d55c9af47c78.css?body=1" for 127.0.0.1 at 2016-03-09 14:11:43 +0200
Started GET "/assets/items.self-19a187bec6cdb96d6de80a61c16c857c613536adf9138476bd367db38d282635.js?body=1" for 127.0.0.1 at 2016-03-09 14:11:43 +0200
Started GET "/items/2" for 127.0.0.1 at 2016-03-09 14:11:45 +0200
Processing by ItemsController#show as HTML
Parameters: {"id"=>"2"}
[1m[36mItem Load (0.1ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", 2]]
Rendered items/show.html.erb within layouts/application (0.6ms)
Completed 200 OK in 8ms (Views: 7.1ms | ActiveRecord: 0.1ms)
Started GET "/assets/items.self-b60acab5af8d245ed2b3012f77d11d8d207d8eada27756badaf4ef05770d60f6.css?body=1" for 127.0.0.1 at 2016-03-09 14:11:45 +0200
Started GET "/assets/scaffold.self-83b741db49389dc7cfdf85bf7537a0219cce48e085c4116afc83d55c9af47c78.css?body=1" for 127.0.0.1 at 2016-03-09 14:11:45 +0200
Started GET "/assets/items.self-19a187bec6cdb96d6de80a61c16c857c613536adf9138476bd367db38d282635.js?body=1" for 127.0.0.1 at 2016-03-09 14:11:45 +0200
Started GET "/assets/application.self-e80e8f2318043e8af94dddc2adad5a4f09739a8ebb323b3ab31cd71d45fd9113.css?body=1" for 127.0.0.1 at 2016-03-09 14:11:45 +0200
Started GET "/assets/application.self-8f06a73c35179188914ab50e057157639fce1401c1cdca640ac9cec33746fc5b.js?body=1" for 127.0.0.1 at 2016-03-09 14:11:45 +0200
Started GET "/items/2" for 127.0.0.1 at 2016-03-09 14:11:47 +0200
Processing by ItemsController#show as HTML
Parameters: {"id"=>"2"}
[1m[35mItem Load (0.1ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 2]]
Rendered items/show.html.erb within layouts/application (0.6ms)
Completed 200 OK in 8ms (Views: 7.7ms | ActiveRecord: 0.1ms)
Started GET "/assets/items.self-b60acab5af8d245ed2b3012f77d11d8d207d8eada27756badaf4ef05770d60f6.css?body=1" for 127.0.0.1 at 2016-03-09 14:11:47 +0200
Started GET "/assets/scaffold.self-83b741db49389dc7cfdf85bf7537a0219cce48e085c4116afc83d55c9af47c78.css?body=1" for 127.0.0.1 at 2016-03-09 14:11:47 +0200
Started GET "/assets/application.self-e80e8f2318043e8af94dddc2adad5a4f09739a8ebb323b3ab31cd71d45fd9113.css?body=1" for 127.0.0.1 at 2016-03-09 14:11:47 +0200
Started GET "/assets/application.self-8f06a73c35179188914ab50e057157639fce1401c1cdca640ac9cec33746fc5b.js?body=1" for 127.0.0.1 at 2016-03-09 14:11:47 +0200
Started GET "/assets/items.self-19a187bec6cdb96d6de80a61c16c857c613536adf9138476bd367db38d282635.js?body=1" for 127.0.0.1 at 2016-03-09 14:11:47 +0200
Started GET "/items/2" for 127.0.0.1 at 2016-03-09 14:11:48 +0200
Processing by ItemsController#show as HTML
Parameters: {"id"=>"2"}
[1m[36mItem Load (0.1ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", 2]]
Rendered items/show.html.erb within layouts/application (0.6ms)
Completed 200 OK in 9ms (Views: 7.8ms | ActiveRecord: 0.1ms)
Started GET "/assets/items.self-b60acab5af8d245ed2b3012f77d11d8d207d8eada27756badaf4ef05770d60f6.css?body=1" for 127.0.0.1 at 2016-03-09 14:11:48 +0200
Started GET "/assets/scaffold.self-83b741db49389dc7cfdf85bf7537a0219cce48e085c4116afc83d55c9af47c78.css?body=1" for 127.0.0.1 at 2016-03-09 14:11:48 +0200
Started GET "/assets/items.self-19a187bec6cdb96d6de80a61c16c857c613536adf9138476bd367db38d282635.js?body=1" for 127.0.0.1 at 2016-03-09 14:11:48 +0200
Started GET "/assets/application.self-8f06a73c35179188914ab50e057157639fce1401c1cdca640ac9cec33746fc5b.js?body=1" for 127.0.0.1 at 2016-03-09 14:11:48 +0200
Started GET "/assets/application.self-e80e8f2318043e8af94dddc2adad5a4f09739a8ebb323b3ab31cd71d45fd9113.css?body=1" for 127.0.0.1 at 2016-03-09 14:11:48 +0200
Started GET "/items/2" for 127.0.0.1 at 2016-03-09 14:12:23 +0200
Processing by ItemsController#show as HTML
Parameters: {"id"=>"2"}
[1m[35mItem Load (0.2ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 2]]
Rendered items/show.html.erb within layouts/application (1.1ms)
Completed 200 OK in 36ms (Views: 24.6ms | ActiveRecord: 0.8ms)
Started GET "/assets/items.self-b60acab5af8d245ed2b3012f77d11d8d207d8eada27756badaf4ef05770d60f6.css?body=1" for 127.0.0.1 at 2016-03-09 14:12:23 +0200
Started GET "/assets/scaffold.self-83b741db49389dc7cfdf85bf7537a0219cce48e085c4116afc83d55c9af47c78.css?body=1" for 127.0.0.1 at 2016-03-09 14:12:23 +0200
Started GET "/assets/items.self-19a187bec6cdb96d6de80a61c16c857c613536adf9138476bd367db38d282635.js?body=1" for 127.0.0.1 at 2016-03-09 14:12:23 +0200
Started GET "/assets/application.self-8f06a73c35179188914ab50e057157639fce1401c1cdca640ac9cec33746fc5b.js?body=1" for 127.0.0.1 at 2016-03-09 14:12:23 +0200
Started GET "/assets/application.self-e80e8f2318043e8af94dddc2adad5a4f09739a8ebb323b3ab31cd71d45fd9113.css?body=1" for 127.0.0.1 at 2016-03-09 14:12:23 +0200
Started GET "/items/2" for 127.0.0.1 at 2016-03-09 14:12:24 +0200
Processing by ItemsController#show as HTML
Parameters: {"id"=>"2"}
[1m[36mItem Load (0.1ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", 2]]
Rendered items/show.html.erb within layouts/application (1.4ms)
Completed 200 OK in 19ms (Views: 17.9ms | ActiveRecord: 0.1ms)
Started GET "/assets/items.self-b60acab5af8d245ed2b3012f77d11d8d207d8eada27756badaf4ef05770d60f6.css?body=1" for 127.0.0.1 at 2016-03-09 14:12:24 +0200
Started GET "/assets/scaffold.self-83b741db49389dc7cfdf85bf7537a0219cce48e085c4116afc83d55c9af47c78.css?body=1" for 127.0.0.1 at 2016-03-09 14:12:24 +0200
Started GET "/assets/items.self-19a187bec6cdb96d6de80a61c16c857c613536adf9138476bd367db38d282635.js?body=1" for 127.0.0.1 at 2016-03-09 14:12:24 +0200
Started GET "/assets/application.self-8f06a73c35179188914ab50e057157639fce1401c1cdca640ac9cec33746fc5b.js?body=1" for 127.0.0.1 at 2016-03-09 14:12:24 +0200
Started GET "/assets/application.self-e80e8f2318043e8af94dddc2adad5a4f09739a8ebb323b3ab31cd71d45fd9113.css?body=1" for 127.0.0.1 at 2016-03-09 14:12:24 +0200
Started GET "/items/2" for 127.0.0.1 at 2016-03-09 14:12:26 +0200
Processing by ItemsController#show as HTML
Parameters: {"id"=>"2"}
[1m[35mItem Load (0.2ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 2]]
Rendered items/show.html.erb within layouts/application (0.8ms)
Completed 200 OK in 16ms (Views: 15.3ms | ActiveRecord: 0.2ms)
Started GET "/assets/items.self-b60acab5af8d245ed2b3012f77d11d8d207d8eada27756badaf4ef05770d60f6.css?body=1" for 127.0.0.1 at 2016-03-09 14:12:26 +0200
Started GET "/assets/scaffold.self-83b741db49389dc7cfdf85bf7537a0219cce48e085c4116afc83d55c9af47c78.css?body=1" for 127.0.0.1 at 2016-03-09 14:12:26 +0200
Started GET "/assets/application.self-e80e8f2318043e8af94dddc2adad5a4f09739a8ebb323b3ab31cd71d45fd9113.css?body=1" for 127.0.0.1 at 2016-03-09 14:12:26 +0200
Started GET "/assets/application.self-8f06a73c35179188914ab50e057157639fce1401c1cdca640ac9cec33746fc5b.js?body=1" for 127.0.0.1 at 2016-03-09 14:12:26 +0200
Started GET "/assets/items.self-19a187bec6cdb96d6de80a61c16c857c613536adf9138476bd367db38d282635.js?body=1" for 127.0.0.1 at 2016-03-09 14:12:26 +0200
Started GET "/items/2" for 127.0.0.1 at 2016-03-09 14:12:39 +0200
Processing by ItemsController#show as HTML
Parameters: {"id"=>"2"}
[1m[36mItem Load (0.2ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", 2]]
Rendered items/show.html.erb within layouts/application (0.7ms)
Completed 200 OK in 19ms (Views: 11.3ms | ActiveRecord: 0.6ms)
Started GET "/assets/scaffold.self-83b741db49389dc7cfdf85bf7537a0219cce48e085c4116afc83d55c9af47c78.css?body=1" for 127.0.0.1 at 2016-03-09 14:12:39 +0200
Started GET "/assets/application.self-e80e8f2318043e8af94dddc2adad5a4f09739a8ebb323b3ab31cd71d45fd9113.css?body=1" for 127.0.0.1 at 2016-03-09 14:12:39 +0200
Started GET "/assets/items.self-19a187bec6cdb96d6de80a61c16c857c613536adf9138476bd367db38d282635.js?body=1" for 127.0.0.1 at 2016-03-09 14:12:39 +0200
Started GET "/assets/application.self-8f06a73c35179188914ab50e057157639fce1401c1cdca640ac9cec33746fc5b.js?body=1" for 127.0.0.1 at 2016-03-09 14:12:39 +0200
Started GET "/assets/items.self-b60acab5af8d245ed2b3012f77d11d8d207d8eada27756badaf4ef05770d60f6.css?body=1" for 127.0.0.1 at 2016-03-09 14:12:39 +0200
Started GET "/items/2" for 127.0.0.1 at 2016-03-09 14:12:40 +0200
Processing by ItemsController#show as HTML
Parameters: {"id"=>"2"}
[1m[35mItem Load (0.2ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 2]]
Rendered items/show.html.erb within layouts/application (1.1ms)
Completed 200 OK in 18ms (Views: 16.5ms | ActiveRecord: 0.2ms)
Started GET "/assets/items.self-b60acab5af8d245ed2b3012f77d11d8d207d8eada27756badaf4ef05770d60f6.css?body=1" for 127.0.0.1 at 2016-03-09 14:12:40 +0200
Started GET "/assets/scaffold.self-83b741db49389dc7cfdf85bf7537a0219cce48e085c4116afc83d55c9af47c78.css?body=1" for 127.0.0.1 at 2016-03-09 14:12:40 +0200
Started GET "/assets/items.self-19a187bec6cdb96d6de80a61c16c857c613536adf9138476bd367db38d282635.js?body=1" for 127.0.0.1 at 2016-03-09 14:12:40 +0200
Started GET "/assets/application.self-8f06a73c35179188914ab50e057157639fce1401c1cdca640ac9cec33746fc5b.js?body=1" for 127.0.0.1 at 2016-03-09 14:12:40 +0200
Started GET "/assets/application.self-e80e8f2318043e8af94dddc2adad5a4f09739a8ebb323b3ab31cd71d45fd9113.css?body=1" for 127.0.0.1 at 2016-03-09 14:12:40 +0200
Started GET "/items/2" for 127.0.0.1 at 2016-03-09 14:16:11 +0200
Processing by ItemsController#show as HTML
Parameters: {"id"=>"2"}
[1m[36mItem Load (0.2ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", 2]]
Rendered items/show.html.erb within layouts/application (1.0ms)
Completed 500 Internal Server Error in 11ms (ActiveRecord: 0.6ms)
ActionView::Template::Error (undefined method `each_pair' for #):
18:
19: JUST
20: <%= @item %>
21: <%= simple_help(@item) %>
22:
23:
24: <%= link_to 'Edit', edit_item_path(@item) %> |
app/views/items/show.html.erb:21:in `_app_views_items_show_html_erb__4312536288662565974_47028060'
Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/rescues/_source.erb (7.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.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.3ms)
Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/rescues/template_error.html.erb within rescues/layout (22.1ms)
Started GET "/items/2" for 127.0.0.1 at 2016-03-09 14:16:38 +0200
Processing by ItemsController#show as HTML
Parameters: {"id"=>"2"}
[1m[35mItem Load (0.3ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 2]]
Rendered items/show.html.erb within layouts/application (2.1ms)
Completed 500 Internal Server Error in 17ms (ActiveRecord: 0.9ms)
ActionView::Template::Error (undefined method `each_pair' for #):
18:
19: JUST
20: <%= @item %>
21: <%= simple_help(@item) %>
22:
23:
24: <%= link_to 'Edit', edit_item_path(@item) %> |
app/views/items/show.html.erb:21:in `_app_views_items_show_html_erb__4312536288662565974_47028060'
Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/rescues/_source.erb (6.7ms)
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.8ms)
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 (18.8ms)
Started GET "/items/2" for 127.0.0.1 at 2016-03-09 14:16:47 +0200
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
Processing by ItemsController#show as HTML
Parameters: {"id"=>"2"}
[1m[35mItem Load (0.2ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 2]]
Rendered items/show.html.erb within layouts/application (11.2ms)
Completed 500 Internal Server Error in 35ms (ActiveRecord: 0.4ms)
ActionView::Template::Error (undefined method `each_pair' for #):
18:
19: JUST
20: <%= @item %>
21: <%= simple_help(@item) %>
22:
23:
24: <%= link_to 'Edit', edit_item_path(@item) %> |
app/views/items/show.html.erb:21:in `_app_views_items_show_html_erb___4188945523411890517_42662860'
Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/rescues/_source.erb (5.5ms)
Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (2.2ms)
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.7ms)
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 (17.4ms)
Started GET "/items/2" for 127.0.0.1 at 2016-03-09 14:16:54 +0200
Processing by ItemsController#show as HTML
Parameters: {"id"=>"2"}
[1m[36mItem Load (0.2ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", 2]]
Rendered items/show.html.erb within layouts/application (0.9ms)
Completed 500 Internal Server Error in 10ms (ActiveRecord: 0.6ms)
ActionView::Template::Error (undefined method `each_pair' for "object":String):
18:
19: JUST
20: <%= @item %>
21: <%= simple_help(@item) %>
22:
23:
24: <%= link_to 'Edit', edit_item_path(@item) %> |
app/views/items/show.html.erb:21:in `_app_views_items_show_html_erb___4188945523411890517_42662860'
Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/rescues/_source.erb (5.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.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.8ms)
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 (18.2ms)
Started GET "/items/2" for 127.0.0.1 at 2016-03-09 14:17:28 +0200
Processing by ItemsController#show as HTML
Parameters: {"id"=>"2"}
[1m[35mItem Load (0.1ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 2]]
Rendered items/show.html.erb within layouts/application (0.9ms)
Completed 500 Internal Server Error in 11ms (ActiveRecord: 0.5ms)
ActionView::Template::Error (undefined method `each_pair' for "assa":String):
18:
19: JUST
20: <%= @item %>
21: <%= simple_help(@item) %>
22:
23:
24: <%= link_to 'Edit', edit_item_path(@item) %> |
app/views/items/show.html.erb:21:in `_app_views_items_show_html_erb___4188945523411890517_42662860'
Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/rescues/_source.erb (5.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.5ms)
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 (18.4ms)
Started GET "/items/2" for 127.0.0.1 at 2016-03-09 14:17:33 +0200
Processing by ItemsController#show as HTML
Parameters: {"id"=>"2"}
[1m[36mItem Load (0.2ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", 2]]
Rendered items/show.html.erb within layouts/application (1.4ms)
Completed 500 Internal Server Error in 5ms (ActiveRecord: 0.2ms)
ActionView::Template::Error (undefined method `each_pair' for "assa":String):
18:
19: JUST
20: <%= @item %>
21: <%= simple_help(@item) %>
22:
23:
24: <%= link_to 'Edit', edit_item_path(@item) %> |
app/views/items/show.html.erb:21:in `_app_views_items_show_html_erb___4188945523411890517_42662860'
Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/rescues/_source.erb (5.4ms)
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.8ms)
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 (17.8ms)
Started GET "/items/2" for 127.0.0.1 at 2016-03-09 14:17:36 +0200
Processing by ItemsController#show as HTML
Parameters: {"id"=>"2"}
[1m[35mItem Load (0.1ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 2]]
Rendered items/show.html.erb within layouts/application (1.5ms)
Completed 500 Internal Server Error in 4ms (ActiveRecord: 0.1ms)
ActionView::Template::Error (undefined method `each_pair' for "assa":String):
18:
19: JUST
20: <%= @item %>
21: <%= simple_help(@item) %>
22:
23:
24: <%= link_to 'Edit', edit_item_path(@item) %> |
app/views/items/show.html.erb:21:in `_app_views_items_show_html_erb___4188945523411890517_42662860'
Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/rescues/_source.erb (6.4ms)
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.5ms)
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.7ms)
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 (18.7ms)
Started GET "/items/2" for 127.0.0.1 at 2016-03-09 14:17:43 +0200
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
Processing by ItemsController#show as HTML
Parameters: {"id"=>"2"}
[1m[35mItem Load (0.3ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 2]]
Rendered items/show.html.erb within layouts/application (9.7ms)
Completed 500 Internal Server Error in 34ms (ActiveRecord: 0.6ms)
ActionView::Template::Error (undefined method `each_pair' for "assa":String):
18:
19: JUST
20: <%= @item %>
21: <%= simple_help(@item) %>
22:
23:
24: <%= link_to 'Edit', edit_item_path(@item) %> |
app/views/items/show.html.erb:21:in `_app_views_items_show_html_erb___862231978536533492_41923380'
Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/rescues/_source.erb (5.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.2ms)
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.7ms)
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 (17.4ms)
Started GET "/items/2" for 127.0.0.1 at 2016-03-09 14:18:10 +0200
Processing by ItemsController#show as HTML
Parameters: {"id"=>"2"}
[1m[36mItem Load (0.1ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", 2]]
Rendered items/show.html.erb within layouts/application (0.9ms)
Completed 200 OK in 163ms (Views: 156.9ms | ActiveRecord: 0.5ms)
Started GET "/items/2" for 127.0.0.1 at 2016-03-09 14:20:28 +0200
SyntaxError (/home/leksster/ror/Rubygarage/Amazon/simple_cart/app/helpers/simple_cart/application_helper.rb:10: syntax error, unexpected end-of-input, expecting keyword_end):
app/controllers/application_controller.rb:6:in `'
app/controllers/application_controller.rb:1:in `'
app/controllers/items_controller.rb:1:in `'
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 (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.0ms)
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 "/items/2" for 127.0.0.1 at 2016-03-09 14:20:39 +0200
Processing by ItemsController#show as HTML
Parameters: {"id"=>"2"}
[1m[35mItem Load (0.1ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 2]]
Rendered items/show.html.erb within layouts/application (29.8ms)
Completed 500 Internal Server Error in 39ms (ActiveRecord: 0.5ms)
ActionView::Template::Error (undefined method `add_to_cart_path' for #<#:0x007f75f6b89138>):
18:
19: JUST
20: <%= @item %>
21: <%= simple_help(@item) %>
22:
23:
24: <%= link_to 'Edit', edit_item_path(@item) %> |
app/views/items/show.html.erb:21:in `_app_views_items_show_html_erb___862231978536533492_41923380'
Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/rescues/_source.erb (10.5ms)
Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (3.2ms)
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.3ms)
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 (24.7ms)
Started GET "/items/2" for 127.0.0.1 at 2016-03-09 14:20:53 +0200
Processing by ItemsController#show as HTML
Parameters: {"id"=>"2"}
[1m[36mItem Load (0.2ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", 2]]
Rendered items/show.html.erb within layouts/application (39.4ms)
Completed 200 OK in 62ms (Views: 53.3ms | ActiveRecord: 0.6ms)
Started GET "/assets/items.self-b60acab5af8d245ed2b3012f77d11d8d207d8eada27756badaf4ef05770d60f6.css?body=1" for 127.0.0.1 at 2016-03-09 14:20:53 +0200
Started GET "/assets/application.self-e80e8f2318043e8af94dddc2adad5a4f09739a8ebb323b3ab31cd71d45fd9113.css?body=1" for 127.0.0.1 at 2016-03-09 14:20:53 +0200
Started GET "/assets/scaffold.self-83b741db49389dc7cfdf85bf7537a0219cce48e085c4116afc83d55c9af47c78.css?body=1" for 127.0.0.1 at 2016-03-09 14:20:53 +0200
Started GET "/assets/application.self-8f06a73c35179188914ab50e057157639fce1401c1cdca640ac9cec33746fc5b.js?body=1" for 127.0.0.1 at 2016-03-09 14:20:53 +0200
Started GET "/assets/items.self-19a187bec6cdb96d6de80a61c16c857c613536adf9138476bd367db38d282635.js?body=1" for 127.0.0.1 at 2016-03-09 14:20:53 +0200
Started POST "/items/2" for 127.0.0.1 at 2016-03-09 14:21:00 +0200
ActionController::RoutingError (No route matches [POST] "/items/2"):
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.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/_trace.html.erb (1.2ms)
Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/routes/_route.html.erb (0.9ms)
Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/routes/_route.html.erb (0.3ms)
Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/routes/_table.html.erb (16.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 (1.6ms)
Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/rescues/routing_error.html.erb within rescues/layout (41.0ms)
Started GET "/items/2" for 127.0.0.1 at 2016-03-09 14:21:16 +0200
Processing by ItemsController#show as HTML
Parameters: {"id"=>"2"}
[1m[35mItem Load (0.1ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 2]]
Rendered items/show.html.erb within layouts/application (10.7ms)
Completed 500 Internal Server Error in 20ms (ActiveRecord: 0.5ms)
ActionView::Template::Error (undefined method `number_field_tag' for #):
18:
19: JUST
20: <%= @item %>
21: <%= simple_help(@item) %>
22:
23:
24: <%= link_to 'Edit', edit_item_path(@item) %> |
app/views/items/show.html.erb:21:in `_app_views_items_show_html_erb___862231978536533492_41923380'
Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/rescues/_source.erb (6.7ms)
Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (2.8ms)
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 (20.6ms)
Started GET "/items/2" for 127.0.0.1 at 2016-03-09 14:21:26 +0200
Processing by ItemsController#show as HTML
Parameters: {"id"=>"2"}
[1m[36mItem Load (0.2ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", 2]]
Rendered items/show.html.erb within layouts/application (2.3ms)
Completed 200 OK in 26ms (Views: 12.1ms | ActiveRecord: 0.6ms)
Started GET "/assets/items.self-b60acab5af8d245ed2b3012f77d11d8d207d8eada27756badaf4ef05770d60f6.css?body=1" for 127.0.0.1 at 2016-03-09 14:21:27 +0200
Started GET "/assets/scaffold.self-83b741db49389dc7cfdf85bf7537a0219cce48e085c4116afc83d55c9af47c78.css?body=1" for 127.0.0.1 at 2016-03-09 14:21:27 +0200
Started GET "/assets/application.self-e80e8f2318043e8af94dddc2adad5a4f09739a8ebb323b3ab31cd71d45fd9113.css?body=1" for 127.0.0.1 at 2016-03-09 14:21:27 +0200
Started GET "/assets/items.self-19a187bec6cdb96d6de80a61c16c857c613536adf9138476bd367db38d282635.js?body=1" for 127.0.0.1 at 2016-03-09 14:21:27 +0200
Started GET "/assets/application.self-8f06a73c35179188914ab50e057157639fce1401c1cdca640ac9cec33746fc5b.js?body=1" for 127.0.0.1 at 2016-03-09 14:21:27 +0200
Started GET "/items/2" for 127.0.0.1 at 2016-03-09 14:21:56 +0200
SyntaxError (/home/leksster/ror/Rubygarage/Amazon/simple_cart/app/helpers/simple_cart/application_helper.rb:6: syntax error, unexpected ',', expecting :: or '[' or '.'
f.number_field, :qty, '1', class: 'form-control on...
^
/home/leksster/ror/Rubygarage/Amazon/simple_cart/app/helpers/simple_cart/application_helper.rb:6: syntax error, unexpected ',', expecting keyword_end
... f.number_field, :qty, '1', class: 'form-control one-lin...
... ^
/home/leksster/ror/Rubygarage/Amazon/simple_cart/app/helpers/simple_cart/application_helper.rb:6: syntax error, unexpected ',', expecting keyword_end
...class: 'form-control one-line', value: '1', min: '1', max: '...
... ^
/home/leksster/ror/Rubygarage/Amazon/simple_cart/app/helpers/simple_cart/application_helper.rb:6: syntax error, unexpected ',', expecting keyword_end
...-control one-line', value: '1', min: '1', max: '99'
... ^
/home/leksster/ror/Rubygarage/Amazon/simple_cart/app/helpers/simple_cart/application_helper.rb:6: syntax error, unexpected ',', expecting keyword_end
...ne-line', value: '1', min: '1', max: '99'
... ^):
app/controllers/application_controller.rb:6:in `'
app/controllers/application_controller.rb:1:in `'
app/controllers/items_controller.rb:1:in `'
Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/rescues/_source.erb (4.5ms)
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 (1.0ms)
Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/rescues/diagnostics.html.erb within rescues/layout (17.2ms)
Started GET "/items/2" for 127.0.0.1 at 2016-03-09 14:22:04 +0200
Processing by ItemsController#show as HTML
Parameters: {"id"=>"2"}
[1m[35mItem Load (0.2ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 2]]
Rendered items/show.html.erb within layouts/application (2.8ms)
Completed 500 Internal Server Error in 14ms (ActiveRecord: 0.7ms)
ActionView::Template::Error (wrong number of arguments (3 for 1..2)):
18:
19: JUST
20: <%= @item %>
21: <%= simple_help(@item) %>
22:
23:
24: <%= link_to 'Edit', edit_item_path(@item) %> |
app/views/items/show.html.erb:21:in `_app_views_items_show_html_erb___862231978536533492_41923380'
Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/rescues/_source.erb (6.1ms)
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.5ms)
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/template_error.html.erb within rescues/layout (18.7ms)
Started GET "/items/2" for 127.0.0.1 at 2016-03-09 14:22:43 +0200
Processing by ItemsController#show as HTML
Parameters: {"id"=>"2"}
[1m[36mItem Load (0.2ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", 2]]
Rendered items/show.html.erb within layouts/application (1.4ms)
Completed 200 OK in 17ms (Views: 10.7ms | ActiveRecord: 0.7ms)
Started GET "/assets/items.self-b60acab5af8d245ed2b3012f77d11d8d207d8eada27756badaf4ef05770d60f6.css?body=1" for 127.0.0.1 at 2016-03-09 14:22:43 +0200
Started GET "/assets/items.self-19a187bec6cdb96d6de80a61c16c857c613536adf9138476bd367db38d282635.js?body=1" for 127.0.0.1 at 2016-03-09 14:22:43 +0200
Started GET "/assets/scaffold.self-83b741db49389dc7cfdf85bf7537a0219cce48e085c4116afc83d55c9af47c78.css?body=1" for 127.0.0.1 at 2016-03-09 14:22:43 +0200
Started GET "/assets/application.self-8f06a73c35179188914ab50e057157639fce1401c1cdca640ac9cec33746fc5b.js?body=1" for 127.0.0.1 at 2016-03-09 14:22:43 +0200
Started GET "/assets/application.self-e80e8f2318043e8af94dddc2adad5a4f09739a8ebb323b3ab31cd71d45fd9113.css?body=1" for 127.0.0.1 at 2016-03-09 14:22:43 +0200
Started GET "/items/2" for 127.0.0.1 at 2016-03-09 14:23:37 +0200
Processing by ItemsController#show as HTML
Parameters: {"id"=>"2"}
[1m[35mItem Load (0.1ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 2]]
Rendered items/show.html.erb within layouts/application (1.9ms)
Completed 200 OK in 17ms (Views: 11.5ms | ActiveRecord: 0.5ms)
Started GET "/assets/items.self-b60acab5af8d245ed2b3012f77d11d8d207d8eada27756badaf4ef05770d60f6.css?body=1" for 127.0.0.1 at 2016-03-09 14:23:37 +0200
Started GET "/assets/scaffold.self-83b741db49389dc7cfdf85bf7537a0219cce48e085c4116afc83d55c9af47c78.css?body=1" for 127.0.0.1 at 2016-03-09 14:23:37 +0200
Started GET "/assets/application.self-e80e8f2318043e8af94dddc2adad5a4f09739a8ebb323b3ab31cd71d45fd9113.css?body=1" for 127.0.0.1 at 2016-03-09 14:23:37 +0200
Started GET "/assets/items.self-19a187bec6cdb96d6de80a61c16c857c613536adf9138476bd367db38d282635.js?body=1" for 127.0.0.1 at 2016-03-09 14:23:37 +0200
Started GET "/assets/application.self-8f06a73c35179188914ab50e057157639fce1401c1cdca640ac9cec33746fc5b.js?body=1" for 127.0.0.1 at 2016-03-09 14:23:37 +0200
Started GET "/items/2" for 127.0.0.1 at 2016-03-09 14:25:10 +0200
Processing by ItemsController#show as HTML
Parameters: {"id"=>"2"}
[1m[36mItem Load (0.1ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", 2]]
Rendered items/show.html.erb within layouts/application (1.6ms)
Completed 200 OK in 17ms (Views: 12.0ms | ActiveRecord: 0.5ms)
Started GET "/assets/items.self-b60acab5af8d245ed2b3012f77d11d8d207d8eada27756badaf4ef05770d60f6.css?body=1" for 127.0.0.1 at 2016-03-09 14:25:10 +0200
Started GET "/assets/scaffold.self-83b741db49389dc7cfdf85bf7537a0219cce48e085c4116afc83d55c9af47c78.css?body=1" for 127.0.0.1 at 2016-03-09 14:25:10 +0200
Started GET "/assets/items.self-19a187bec6cdb96d6de80a61c16c857c613536adf9138476bd367db38d282635.js?body=1" for 127.0.0.1 at 2016-03-09 14:25:10 +0200
Started GET "/assets/application.self-8f06a73c35179188914ab50e057157639fce1401c1cdca640ac9cec33746fc5b.js?body=1" for 127.0.0.1 at 2016-03-09 14:25:10 +0200
Started GET "/assets/application.self-e80e8f2318043e8af94dddc2adad5a4f09739a8ebb323b3ab31cd71d45fd9113.css?body=1" for 127.0.0.1 at 2016-03-09 14:25:10 +0200
Started GET "/items/2" for 127.0.0.1 at 2016-03-09 14:28:19 +0200
SyntaxError (/home/leksster/ror/Rubygarage/Amazon/simple_cart/app/helpers/simple_cart/application_helper.rb:7: syntax error, unexpected tSTRING_DEND, expecting keyword_end
...n btn-default btn btn-primary'}"
... ^
/home/leksster/ror/Rubygarage/Amazon/simple_cart/app/helpers/simple_cart/application_helper.rb:7: unterminated string meets end of file):
app/controllers/application_controller.rb:6:in `'
app/controllers/application_controller.rb:1:in `'
app/controllers/items_controller.rb:1:in `'
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 (3.2ms)
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 (18.4ms)
Started GET "/items/2" for 127.0.0.1 at 2016-03-09 14:44:14 +0200
Processing by ItemsController#show as HTML
Parameters: {"id"=>"2"}
[1m[35mItem Load (0.1ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 2]]
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/_buy.html.haml (2.8ms)
Rendered items/show.html.erb within layouts/application (4.2ms)
Completed 200 OK in 20ms (Views: 14.0ms | ActiveRecord: 0.6ms)
Started GET "/assets/items.self-b60acab5af8d245ed2b3012f77d11d8d207d8eada27756badaf4ef05770d60f6.css?body=1" for 127.0.0.1 at 2016-03-09 14:44:15 +0200
Started GET "/assets/scaffold.self-83b741db49389dc7cfdf85bf7537a0219cce48e085c4116afc83d55c9af47c78.css?body=1" for 127.0.0.1 at 2016-03-09 14:44:15 +0200
Started GET "/assets/application.self-e80e8f2318043e8af94dddc2adad5a4f09739a8ebb323b3ab31cd71d45fd9113.css?body=1" for 127.0.0.1 at 2016-03-09 14:44:15 +0200
Started GET "/assets/items.self-19a187bec6cdb96d6de80a61c16c857c613536adf9138476bd367db38d282635.js?body=1" for 127.0.0.1 at 2016-03-09 14:44:15 +0200
Started GET "/assets/application.self-8f06a73c35179188914ab50e057157639fce1401c1cdca640ac9cec33746fc5b.js?body=1" for 127.0.0.1 at 2016-03-09 14:44:15 +0200
Started POST "/items/2" for 127.0.0.1 at 2016-03-09 14:44:59 +0200
ActionController::RoutingError (No route matches [POST] "/items/2"):
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.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/_trace.html.erb (1.2ms)
Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/routes/_route.html.erb (1.3ms)
Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/routes/_route.html.erb (0.4ms)
Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/routes/_table.html.erb (1.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 (1.4ms)
Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/rescues/routing_error.html.erb within rescues/layout (26.5ms)
Started GET "/items/2" for 127.0.0.1 at 2016-03-09 14:45:10 +0200
Processing by ItemsController#show as HTML
Parameters: {"id"=>"2"}
[1m[36mItem Load (0.2ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", 2]]
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/_buy.html.haml (13.7ms)
Rendered items/show.html.erb within layouts/application (15.3ms)
Completed 500 Internal Server Error in 20ms (ActiveRecord: 0.2ms)
ActionView::Template::Error (undefined method `add_to_cart_path' for #<#:0x007f75f6567ae8>):
1: = form_for @item, :url => 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/items/show.html.erb:21:in `_app_views_items_show_html_erb___862231978536533492_41923380'
Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/rescues/_source.erb (6.5ms)
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/template_error.html.erb within rescues/layout (19.0ms)
Started GET "/items/2" for 127.0.0.1 at 2016-03-09 14:45:33 +0200
Processing by ItemsController#show as HTML
Parameters: {"id"=>"2"}
[1m[35mItem Load (0.1ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 2]]
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/_buy.html.haml (3.1ms)
Rendered items/show.html.erb within layouts/application (4.2ms)
Completed 200 OK in 12ms (Views: 11.9ms | ActiveRecord: 0.1ms)
Started GET "/assets/items.self-b60acab5af8d245ed2b3012f77d11d8d207d8eada27756badaf4ef05770d60f6.css?body=1" for 127.0.0.1 at 2016-03-09 14:45:34 +0200
Started GET "/assets/scaffold.self-83b741db49389dc7cfdf85bf7537a0219cce48e085c4116afc83d55c9af47c78.css?body=1" for 127.0.0.1 at 2016-03-09 14:45:34 +0200
Started GET "/assets/application.self-e80e8f2318043e8af94dddc2adad5a4f09739a8ebb323b3ab31cd71d45fd9113.css?body=1" for 127.0.0.1 at 2016-03-09 14:45:34 +0200
Started GET "/assets/items.self-19a187bec6cdb96d6de80a61c16c857c613536adf9138476bd367db38d282635.js?body=1" for 127.0.0.1 at 2016-03-09 14:45:34 +0200
Started GET "/assets/application.self-8f06a73c35179188914ab50e057157639fce1401c1cdca640ac9cec33746fc5b.js?body=1" for 127.0.0.1 at 2016-03-09 14:45:34 +0200
Started GET "/items/2" for 127.0.0.1 at 2016-03-09 14:47:48 +0200
Processing by ItemsController#show as HTML
Parameters: {"id"=>"2"}
[1m[36mItem Load (0.2ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", 2]]
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/_buy.html.haml (1.8ms)
Rendered items/show.html.erb within layouts/application (2.8ms)
Completed 500 Internal Server Error in 13ms (ActiveRecord: 0.5ms)
ActionView::Template::Error (First argument in form cannot contain nil or be empty):
1: = form_for @itemz, :html => {:class => 'form-inline one-line text-center'}, method: :post do |f|
2: %h2
3: = number_to_currency(@itemz.price)
4: .form-group.integer.required.one-line
app/views/items/show.html.erb:21:in `_app_views_items_show_html_erb___862231978536533492_41923380'
Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/rescues/_source.erb (9.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 (3.4ms)
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/template_error.html.erb within rescues/layout (23.2ms)
Started GET "/items/2" for 127.0.0.1 at 2016-03-09 14:49:29 +0200
Processing by ItemsController#show as HTML
Parameters: {"id"=>"2"}
[1m[35mItem Load (0.1ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 2]]
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/_buy.html.haml (0.6ms)
Rendered items/show.html.erb within layouts/application (1.7ms)
Completed 500 Internal Server Error in 16ms (ActiveRecord: 0.4ms)
ActionView::Template::Error (First argument in form cannot contain nil or be empty):
1: = form_for @itemz, :html => {:class => 'form-inline one-line text-center'}, method: :post do |f|
2: %h2
3: = number_to_currency(@itemz.price)
4: .form-group.integer.required.one-line
app/views/items/show.html.erb:21:in `_app_views_items_show_html_erb___862231978536533492_41923380'
Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/rescues/_source.erb (6.4ms)
Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (2.8ms)
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 (19.5ms)
Started GET "/items/2" for 127.0.0.1 at 2016-03-09 14:49:32 +0200
Processing by ItemsController#show as HTML
Parameters: {"id"=>"2"}
[1m[36mItem Load (0.2ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", 2]]
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/_buy.html.haml (0.8ms)
Rendered items/show.html.erb within layouts/application (2.0ms)
Completed 500 Internal Server Error in 5ms (ActiveRecord: 0.2ms)
ActionView::Template::Error (First argument in form cannot contain nil or be empty):
1: = form_for @itemz, :html => {:class => 'form-inline one-line text-center'}, method: :post do |f|
2: %h2
3: = number_to_currency(@itemz.price)
4: .form-group.integer.required.one-line
app/views/items/show.html.erb:21:in `_app_views_items_show_html_erb___862231978536533492_41923380'
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 (2.4ms)
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.7ms)
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 (18.1ms)
Started GET "/items/2" for 127.0.0.1 at 2016-03-09 14:50:00 +0200
Processing by ItemsController#show as HTML
Parameters: {"id"=>"2"}
[1m[35mItem Load (0.1ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 2]]
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/_buy.html.haml (17.9ms)
Rendered items/show.html.erb within layouts/application (20.1ms)
Completed 500 Internal Server Error in 23ms (ActiveRecord: 0.1ms)
ActionView::Template::Error (undefined local variable or method `object' for #<#:0x007f75f5dbf4d0>):
1: = form_for object, :html => {:class => 'form-inline one-line text-center'}, method: :post do |f|
2: %h2
3: = number_to_currency(object.price)
4: .form-group.integer.required.one-line
app/views/items/show.html.erb:21:in `_app_views_items_show_html_erb___862231978536533492_41923380'
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 (2.4ms)
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.7ms)
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 (18.0ms)
Started GET "/items/2" for 127.0.0.1 at 2016-03-09 14:50:03 +0200
Processing by ItemsController#show as HTML
Parameters: {"id"=>"2"}
[1m[36mItem Load (0.1ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", 2]]
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/_buy.html.haml (10.6ms)
Rendered items/show.html.erb within layouts/application (12.9ms)
Completed 500 Internal Server Error in 16ms (ActiveRecord: 0.1ms)
ActionView::Template::Error (undefined local variable or method `object' for #<#:0x007f75f67e9a28>):
1: = form_for object, :html => {:class => 'form-inline one-line text-center'}, method: :post do |f|
2: %h2
3: = number_to_currency(object.price)
4: .form-group.integer.required.one-line
app/views/items/show.html.erb:21:in `_app_views_items_show_html_erb___862231978536533492_41923380'
Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/rescues/_source.erb (6.3ms)
Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (2.4ms)
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.7ms)
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 (18.2ms)
Started GET "/items/2" for 127.0.0.1 at 2016-03-09 14:51:32 +0200
Processing by ItemsController#show as HTML
Parameters: {"id"=>"2"}
[1m[35mItem Load (0.1ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 2]]
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/_buy.html.haml (8.0ms)
Rendered items/show.html.erb within layouts/application (9.0ms)
Completed 500 Internal Server Error in 18ms (ActiveRecord: 0.5ms)
ActionView::Template::Error (undefined local variable or method `object' for #<#:0x007f75f6af5d70>):
1: = form_for object, :html => {:class => 'form-inline one-line text-center'}, method: :post do |f|
2: %h2
3: = number_to_currency(object.price)
4: .form-group.integer.required.one-line
app/views/items/show.html.erb:21:in `_app_views_items_show_html_erb___862231978536533492_41923380'
Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/rescues/_source.erb (6.4ms)
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.5ms)
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.7ms)
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 (18.4ms)
Started GET "/items/2" for 127.0.0.1 at 2016-03-09 14:51:35 +0200
Processing by ItemsController#show as HTML
Parameters: {"id"=>"2"}
[1m[36mItem Load (0.1ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", 2]]
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/_buy.html.haml (8.2ms)
Rendered items/show.html.erb within layouts/application (9.7ms)
Completed 500 Internal Server Error in 13ms (ActiveRecord: 0.1ms)
ActionView::Template::Error (undefined local variable or method `object' for #<#:0x007f75f6793718>):
1: = form_for object, :html => {:class => 'form-inline one-line text-center'}, method: :post do |f|
2: %h2
3: = number_to_currency(object.price)
4: .form-group.integer.required.one-line
app/views/items/show.html.erb:21:in `_app_views_items_show_html_erb___862231978536533492_41923380'
Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/rescues/_source.erb (6.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 (8.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.8ms)
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 (24.9ms)
Started GET "/items/2" for 127.0.0.1 at 2016-03-09 14:53:34 +0200
Processing by ItemsController#show as HTML
Parameters: {"id"=>"2"}
[1m[35mItem Load (0.2ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 2]]
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/_buy.html.haml (8.1ms)
Rendered items/show.html.erb within layouts/application (9.3ms)
Completed 500 Internal Server Error in 19ms (ActiveRecord: 0.6ms)
ActionView::Template::Error (undefined local variable or method `object' for #<#:0x007f75f67508f0>):
1: = form_for object, :html => {:class => 'form-inline one-line text-center'}, method: :post do |f|
2: %h2
3: = number_to_currency(object.price)
4: .form-group.integer.required.one-line
app/views/items/show.html.erb:21:in `_app_views_items_show_html_erb___862231978536533492_41923380'
Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/rescues/_source.erb (6.6ms)
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.8ms)
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 (18.9ms)
Started GET "/items/2" for 127.0.0.1 at 2016-03-09 14:53:36 +0200
Processing by ItemsController#show as HTML
Parameters: {"id"=>"2"}
[1m[36mItem Load (0.2ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", 2]]
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/_buy.html.haml (9.8ms)
Rendered items/show.html.erb within layouts/application (11.5ms)
Completed 500 Internal Server Error in 15ms (ActiveRecord: 0.2ms)
ActionView::Template::Error (undefined local variable or method `object' for #<#:0x000000039c6e10>):
1: = form_for object, :html => {:class => 'form-inline one-line text-center'}, method: :post do |f|
2: %h2
3: = number_to_currency(object.price)
4: .form-group.integer.required.one-line
app/views/items/show.html.erb:21:in `_app_views_items_show_html_erb___862231978536533492_41923380'
Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/rescues/_source.erb (6.5ms)
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.8ms)
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 (18.9ms)
Started GET "/items/2" for 127.0.0.1 at 2016-03-09 14:54:05 +0200
Processing by ItemsController#show as HTML
Parameters: {"id"=>"2"}
[1m[35mItem Load (0.2ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 2]]
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/_buy.html.haml (9.3ms)
Rendered items/show.html.erb within layouts/application (11.0ms)
Completed 500 Internal Server Error in 20ms (ActiveRecord: 0.6ms)
ActionView::Template::Error (undefined local variable or method `item' for #<#:0x00000004c4f960>):
1: = form_for 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/items/show.html.erb:21:in `_app_views_items_show_html_erb___862231978536533492_39983320'
Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/rescues/_source.erb (6.4ms)
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.7ms)
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 (18.6ms)
Started GET "/items/2" for 127.0.0.1 at 2016-03-09 14:54:07 +0200
Processing by ItemsController#show as HTML
Parameters: {"id"=>"2"}
[1m[36mItem Load (0.1ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", 2]]
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/_buy.html.haml (9.3ms)
Rendered items/show.html.erb within layouts/application (10.7ms)
Completed 500 Internal Server Error in 13ms (ActiveRecord: 0.1ms)
ActionView::Template::Error (undefined local variable or method `item' for #<#:0x007f75f57feaf0>):
1: = form_for 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/items/show.html.erb:21:in `_app_views_items_show_html_erb___862231978536533492_39983320'
Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/rescues/_source.erb (6.5ms)
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 (1.2ms)
Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/rescues/template_error.html.erb within rescues/layout (19.9ms)
Started GET "/items/2" for 127.0.0.1 at 2016-03-09 14:54:11 +0200
Processing by ItemsController#show as HTML
Parameters: {"id"=>"2"}
[1m[35mItem Load (0.2ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 2]]
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/_buy.html.haml (9.2ms)
Rendered items/show.html.erb within layouts/application (10.9ms)
Completed 500 Internal Server Error in 14ms (ActiveRecord: 0.2ms)
ActionView::Template::Error (undefined local variable or method `item' for #<#:0x007f75f611daa0>):
1: = form_for 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/items/show.html.erb:21:in `_app_views_items_show_html_erb___862231978536533492_39983320'
Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/rescues/_source.erb (6.3ms)
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.5ms)
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/template_error.html.erb within rescues/layout (18.6ms)
Started GET "/items/2" for 127.0.0.1 at 2016-03-09 14:54:35 +0200
Processing by ItemsController#show as HTML
Parameters: {"id"=>"2"}
[1m[36mItem Load (0.1ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", 2]]
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/_buy.html.haml (3.8ms)
Rendered items/show.html.erb within layouts/application (5.3ms)
Completed 200 OK in 14ms (Views: 13.0ms | ActiveRecord: 0.1ms)
Started GET "/assets/items.self-b60acab5af8d245ed2b3012f77d11d8d207d8eada27756badaf4ef05770d60f6.css?body=1" for 127.0.0.1 at 2016-03-09 14:54:35 +0200
Started GET "/assets/scaffold.self-83b741db49389dc7cfdf85bf7537a0219cce48e085c4116afc83d55c9af47c78.css?body=1" for 127.0.0.1 at 2016-03-09 14:54:35 +0200
Started GET "/assets/application.self-8f06a73c35179188914ab50e057157639fce1401c1cdca640ac9cec33746fc5b.js?body=1" for 127.0.0.1 at 2016-03-09 14:54:35 +0200
Started GET "/assets/application.self-e80e8f2318043e8af94dddc2adad5a4f09739a8ebb323b3ab31cd71d45fd9113.css?body=1" for 127.0.0.1 at 2016-03-09 14:54:35 +0200
Started GET "/assets/items.self-19a187bec6cdb96d6de80a61c16c857c613536adf9138476bd367db38d282635.js?body=1" for 127.0.0.1 at 2016-03-09 14:54:35 +0200
Started GET "/items/2" for 127.0.0.1 at 2016-03-09 14:59:27 +0200
Processing by ItemsController#show as HTML
Parameters: {"id"=>"2"}
[1m[35mItem Load (0.1ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 2]]
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/_buy.html.haml (10.1ms)
Rendered items/show.html.erb within layouts/application (11.2ms)
Completed 500 Internal Server Error in 20ms (ActiveRecord: 0.5ms)
ActionView::Template::Error (undefined local variable or method `object' for #<#:0x007f75f5b5c2d8>):
1: = form_for object, :html => {:class => 'form-inline one-line text-center'}, method: :post do |f|
2: %h2
3: = number_to_currency(object.price)
4: .form-group.integer.required.one-line
app/views/items/show.html.erb:21:in `_app_views_items_show_html_erb___862231978536533492_39983320'
Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/rescues/_source.erb (8.7ms)
Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (3.1ms)
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 (22.5ms)
Started GET "/items/2" for 127.0.0.1 at 2016-03-09 15:00:39 +0200
Processing by ItemsController#show as HTML
Parameters: {"id"=>"2"}
[1m[36mItem Load (0.1ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", 2]]
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/_buy.html.haml (0.0ms)
Rendered items/show.html.erb within layouts/application (1.5ms)
Completed 200 OK in 15ms (Views: 10.3ms | ActiveRecord: 0.5ms)
Started GET "/assets/items.self-b60acab5af8d245ed2b3012f77d11d8d207d8eada27756badaf4ef05770d60f6.css?body=1" for 127.0.0.1 at 2016-03-09 15:00:39 +0200
Started GET "/assets/application.self-e80e8f2318043e8af94dddc2adad5a4f09739a8ebb323b3ab31cd71d45fd9113.css?body=1" for 127.0.0.1 at 2016-03-09 15:00:39 +0200
Started GET "/assets/application.self-8f06a73c35179188914ab50e057157639fce1401c1cdca640ac9cec33746fc5b.js?body=1" for 127.0.0.1 at 2016-03-09 15:00:39 +0200
Started GET "/assets/scaffold.self-83b741db49389dc7cfdf85bf7537a0219cce48e085c4116afc83d55c9af47c78.css?body=1" for 127.0.0.1 at 2016-03-09 15:00:39 +0200
Started GET "/assets/items.self-19a187bec6cdb96d6de80a61c16c857c613536adf9138476bd367db38d282635.js?body=1" for 127.0.0.1 at 2016-03-09 15:00:39 +0200
Started GET "/items/2" for 127.0.0.1 at 2016-03-09 15:00:41 +0200
Processing by ItemsController#show as HTML
Parameters: {"id"=>"2"}
[1m[35mItem Load (0.1ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 2]]
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/_buy.html.haml (0.0ms)
Rendered items/show.html.erb within layouts/application (1.4ms)
Completed 200 OK in 10ms (Views: 9.9ms | ActiveRecord: 0.1ms)
Started GET "/items/2" for 127.0.0.1 at 2016-03-09 15:00:44 +0200
Processing by ItemsController#show as HTML
Parameters: {"id"=>"2"}
[1m[36mItem Load (0.2ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", 2]]
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/_buy.html.haml (0.0ms)
Rendered items/show.html.erb within layouts/application (1.6ms)
Completed 200 OK in 12ms (Views: 10.6ms | ActiveRecord: 0.2ms)
Started GET "/items/2" for 127.0.0.1 at 2016-03-09 15:00:54 +0200
Processing by ItemsController#show as HTML
Parameters: {"id"=>"2"}
[1m[35mItem Load (0.1ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 2]]
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/_buy.html.haml (0.0ms)
Rendered items/show.html.erb within layouts/application (1.3ms)
Completed 200 OK in 22ms (Views: 9.5ms | ActiveRecord: 0.5ms)
Started GET "/assets/scaffold.self-83b741db49389dc7cfdf85bf7537a0219cce48e085c4116afc83d55c9af47c78.css?body=1" for 127.0.0.1 at 2016-03-09 15:00:54 +0200
Started GET "/assets/items.self-b60acab5af8d245ed2b3012f77d11d8d207d8eada27756badaf4ef05770d60f6.css?body=1" for 127.0.0.1 at 2016-03-09 15:00:54 +0200
Started GET "/assets/application.self-e80e8f2318043e8af94dddc2adad5a4f09739a8ebb323b3ab31cd71d45fd9113.css?body=1" for 127.0.0.1 at 2016-03-09 15:00:54 +0200
Started GET "/assets/application.self-8f06a73c35179188914ab50e057157639fce1401c1cdca640ac9cec33746fc5b.js?body=1" for 127.0.0.1 at 2016-03-09 15:00:54 +0200
Started GET "/assets/items.self-19a187bec6cdb96d6de80a61c16c857c613536adf9138476bd367db38d282635.js?body=1" for 127.0.0.1 at 2016-03-09 15:00:54 +0200
Started GET "/items/2" for 127.0.0.1 at 2016-03-09 15:00:56 +0200
Processing by ItemsController#show as HTML
Parameters: {"id"=>"2"}
[1m[36mItem Load (0.1ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", 2]]
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/_buy.html.haml (0.0ms)
Rendered items/show.html.erb within layouts/application (2.7ms)
Completed 200 OK in 14ms (Views: 13.2ms | ActiveRecord: 0.1ms)
Started GET "/items/2" for 127.0.0.1 at 2016-03-09 15:01:07 +0200
Processing by ItemsController#show as HTML
Parameters: {"id"=>"2"}
[1m[35mItem Load (0.2ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 2]]
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/_buy.html.haml (0.0ms)
Rendered items/show.html.erb within layouts/application (1.5ms)
Completed 200 OK in 12ms (Views: 10.4ms | ActiveRecord: 0.2ms)
Started GET "/items/2" for 127.0.0.1 at 2016-03-09 15:01:09 +0200
Processing by ItemsController#show as HTML
Parameters: {"id"=>"2"}
[1m[36mItem Load (0.1ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", 2]]
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/_buy.html.haml (0.0ms)
Rendered items/show.html.erb within layouts/application (1.0ms)
Completed 200 OK in 9ms (Views: 8.1ms | ActiveRecord: 0.1ms)
Started GET "/items/2" for 127.0.0.1 at 2016-03-09 15:01:17 +0200
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
Processing by ItemsController#show as HTML
Parameters: {"id"=>"2"}
[1m[35mItem Load (0.2ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 2]]
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/_buy.html.haml (0.0ms)
Rendered items/show.html.erb within layouts/application (11.2ms)
Completed 200 OK in 172ms (Views: 155.3ms | ActiveRecord: 0.5ms)
Started GET "/items/2" for 127.0.0.1 at 2016-03-09 15:01:19 +0200
Processing by ItemsController#show as HTML
Parameters: {"id"=>"2"}
[1m[36mItem Load (0.1ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", 2]]
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/_buy.html.haml (0.0ms)
Rendered items/show.html.erb within layouts/application (1.1ms)
Completed 200 OK in 10ms (Views: 9.3ms | ActiveRecord: 0.1ms)
Started GET "/items/2" for 127.0.0.1 at 2016-03-09 15:01:20 +0200
Processing by ItemsController#show as HTML
Parameters: {"id"=>"2"}
[1m[35mItem Load (0.1ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 2]]
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/_buy.html.haml (0.0ms)
Rendered items/show.html.erb within layouts/application (1.5ms)
Completed 200 OK in 12ms (Views: 11.3ms | ActiveRecord: 0.1ms)
Started GET "/items/2" for 127.0.0.1 at 2016-03-09 15:01:28 +0200
Processing by ItemsController#show as HTML
Parameters: {"id"=>"2"}
[1m[36mItem Load (0.1ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", 2]]
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/_buy.html.haml (11.5ms)
Rendered items/show.html.erb within layouts/application (12.6ms)
Completed 500 Internal Server Error in 22ms (ActiveRecord: 0.5ms)
ActionView::Template::Error (undefined local variable or method `item' for #<#:0x007f26ce46fcc0>):
1: = form_for 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/items/show.html.erb:21:in `_app_views_items_show_html_erb__740254891603702621_37237260'
Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/rescues/_source.erb (10.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 (4.5ms)
Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (1.2ms)
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 (26.1ms)
Started GET "/items/2" for 127.0.0.1 at 2016-03-09 15:02:30 +0200
Processing by ItemsController#show as HTML
Parameters: {"id"=>"2"}
[1m[35mItem Load (0.1ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 2]]
[1m[36mItem Load (0.4ms)[0m [1mSELECT "items".* FROM "items"[0m
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/_buy.html.haml (12.6ms)
Rendered items/show.html.erb within layouts/application (15.0ms)
Completed 500 Internal Server Error in 26ms (ActiveRecord: 1.0ms)
ActionView::Template::Error (undefined local variable or method `item' for #<#:0x007f26ce1476b0>):
1: = form_for 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/items/show.html.erb:21:in `_app_views_items_show_html_erb__740254891603702621_69902321463800'
Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/rescues/_source.erb (6.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.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 (19.8ms)
Started GET "/items/2" for 127.0.0.1 at 2016-03-09 15:02:46 +0200
Processing by ItemsController#show as HTML
Parameters: {"id"=>"2"}
[1m[35mItem Load (0.1ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 2]]
[1m[36mItem Load (0.2ms)[0m [1mSELECT "items".* FROM "items"[0m
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/_buy.html.haml (9.9ms)
Rendered items/show.html.erb within layouts/application (11.6ms)
Completed 500 Internal Server Error in 20ms (ActiveRecord: 0.7ms)
ActionView::Template::Error (undefined local variable or method `item' for #<#:0x007f26cd9305a8>):
1: = form_for 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/items/show.html.erb:21:in `_app_views_items_show_html_erb__740254891603702621_69902321463800'
Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/rescues/_source.erb (6.6ms)
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.8ms)
Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/rescues/template_error.html.erb within rescues/layout (19.0ms)
Started GET "/items/2" for 127.0.0.1 at 2016-03-09 15:07:38 +0200
Processing by ItemsController#show as HTML
Parameters: {"id"=>"2"}
[1m[35mItem Load (0.2ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 2]]
[1m[36mItem Load (0.2ms)[0m [1mSELECT "items".* FROM "items"[0m
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/_buy.html.haml (12.1ms)
Rendered items/show.html.erb within layouts/application (13.4ms)
Completed 500 Internal Server Error in 24ms (ActiveRecord: 0.8ms)
ActionView::Template::Error (undefined local variable or method `item' for #<#:0x007f26cd3a1498>):
1: = form_for 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/items/show.html.erb:21:in `_app_views_items_show_html_erb__740254891603702621_69902321463800'
Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/rescues/_source.erb (7.3ms)
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 (1.0ms)
Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/rescues/template_error.html.erb within rescues/layout (20.5ms)
Started GET "/items/2" for 127.0.0.1 at 2016-03-09 15:07:44 +0200
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
Processing by ItemsController#show as HTML
Parameters: {"id"=>"2"}
[1m[35mItem Load (0.2ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 2]]
[1m[36mItem Load (0.1ms)[0m [1mSELECT "items".* FROM "items"[0m
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/_buy.html.haml (15.3ms)
Rendered items/show.html.erb within layouts/application (26.6ms)
Completed 500 Internal Server Error in 50ms (ActiveRecord: 0.6ms)
ActionView::Template::Error (undefined local variable or method `item' for #<#:0x000000051eb248>):
1: = form_for 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/items/show.html.erb:21:in `_app_views_items_show_html_erb__1310422391536251602_43239600'
Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/rescues/_source.erb (6.7ms)
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 (1.0ms)
Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/rescues/template_error.html.erb within rescues/layout (19.6ms)
Started GET "/items/2" for 127.0.0.1 at 2016-03-09 15:07:46 +0200
Processing by ItemsController#show as HTML
Parameters: {"id"=>"2"}
[1m[35mItem Load (0.1ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 2]]
[1m[36mItem Load (0.2ms)[0m [1mSELECT "items".* FROM "items"[0m
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/_buy.html.haml (14.8ms)
Rendered items/show.html.erb within layouts/application (16.3ms)
Completed 500 Internal Server Error in 19ms (ActiveRecord: 0.3ms)
ActionView::Template::Error (undefined local variable or method `item' for #<#:0x00000001fd90e8>):
1: = form_for 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/items/show.html.erb:21:in `_app_views_items_show_html_erb__1310422391536251602_43239600'
Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/rescues/_source.erb (10.3ms)
Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (2.8ms)
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/template_error.html.erb within rescues/layout (23.6ms)
Started GET "/items/2" for 127.0.0.1 at 2016-03-09 15:09:38 +0200
Processing by ItemsController#show as HTML
Parameters: {"id"=>"2"}
[1m[35mItem Load (0.1ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 2]]
[1m[36mItem Load (0.1ms)[0m [1mSELECT "items".* FROM "items"[0m
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/_buy.html.haml (4.2ms)
Rendered items/show.html.erb within layouts/application (5.4ms)
Completed 500 Internal Server Error in 14ms (ActiveRecord: 0.6ms)
ActionView::Template::Error (undefined method `to_key' for #):
1: = form_for 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/items/show.html.erb:21:in `_app_views_items_show_html_erb__1310422391536251602_43239600'
Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/rescues/_source.erb (6.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.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 (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 (19.9ms)
Started GET "/items/2" for 127.0.0.1 at 2016-03-09 15:10:09 +0200
Processing by ItemsController#show as HTML
Parameters: {"id"=>"2"}
[1m[35mItem Load (0.2ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 2]]
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/_buy.html.haml (7.3ms)
Rendered items/show.html.erb within layouts/application (10.2ms)
Completed 200 OK in 205ms (Views: 203.9ms | ActiveRecord: 0.2ms)
Started GET "/items/2" for 127.0.0.1 at 2016-03-09 15:10:11 +0200
Processing by ItemsController#show as HTML
Parameters: {"id"=>"2"}
[1m[36mItem Load (0.2ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", 2]]
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/_buy.html.haml (1.5ms)
Rendered items/show.html.erb within layouts/application (3.2ms)
Completed 200 OK in 13ms (Views: 11.2ms | ActiveRecord: 0.2ms)
Started GET "/items/2" for 127.0.0.1 at 2016-03-09 15:10:26 +0200
Processing by ItemsController#show as HTML
Parameters: {"id"=>"2"}
[1m[35mItem Load (0.2ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 2]]
[1m[36mItem Load (0.2ms)[0m [1mSELECT "items".* FROM "items"[0m
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/_buy.html.haml (10.8ms)
Rendered items/show.html.erb within layouts/application (11.8ms)
Completed 500 Internal Server Error in 20ms (ActiveRecord: 0.7ms)
ActionView::Template::Error (undefined local variable or method `item' for #<#:0x00000004dec1d8>):
1: = form_for 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/items/show.html.erb:21:in `_app_views_items_show_html_erb__1310422391536251602_41950280'
Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/rescues/_source.erb (6.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.5ms)
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.7ms)
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 (18.1ms)
Started GET "/items/2" for 127.0.0.1 at 2016-03-09 15:10:30 +0200
Processing by ItemsController#show as HTML
Parameters: {"id"=>"2"}
[1m[35mItem Load (0.1ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 2]]
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/_buy.html.haml (1.6ms)
Rendered items/show.html.erb within layouts/application (3.1ms)
Completed 200 OK in 19ms (Views: 13.0ms | ActiveRecord: 0.5ms)
Started GET "/items" for 127.0.0.1 at 2016-03-09 15:10:35 +0200
Processing by ItemsController#index as HTML
[1m[36mItem Load (0.2ms)[0m [1mSELECT "items".* FROM "items"[0m
Rendered items/index.html.erb within layouts/application (2.6ms)
Completed 200 OK in 11ms (Views: 10.7ms | ActiveRecord: 0.2ms)
Started GET "/items/1" for 127.0.0.1 at 2016-03-09 15:10:37 +0200
Processing by ItemsController#show as HTML
Parameters: {"id"=>"1"}
[1m[35mItem Load (0.1ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 1]]
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/_buy.html.haml (1.5ms)
Rendered items/show.html.erb within layouts/application (3.3ms)
Completed 200 OK in 13ms (Views: 12.4ms | ActiveRecord: 0.1ms)
Started GET "/items" for 127.0.0.1 at 2016-03-09 19:13:34 +0200
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
Processing by ItemsController#index as HTML
[1m[35mItem Load (0.2ms)[0m SELECT "items".* FROM "items"
Rendered items/index.html.erb within layouts/application (47.2ms)
Completed 200 OK in 567ms (Views: 561.1ms | ActiveRecord: 0.5ms)
Started GET "/items/2" for 127.0.0.1 at 2016-03-09 19:13:37 +0200
Processing by ItemsController#show as HTML
Parameters: {"id"=>"2"}
[1m[36mItem Load (0.2ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", 2]]
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/_buy.html.haml (53.3ms)
Rendered items/show.html.erb within layouts/application (59.1ms)
Completed 200 OK in 100ms (Views: 66.4ms | ActiveRecord: 0.2ms)
Started GET "/items" for 127.0.0.1 at 2016-03-09 19:13:40 +0200
Processing by ItemsController#index as HTML
[1m[35mItem Load (0.2ms)[0m SELECT "items".* FROM "items"
Rendered items/index.html.erb within layouts/application (1.6ms)
Completed 200 OK in 11ms (Views: 10.6ms | ActiveRecord: 0.2ms)
Started GET "/items/1" for 127.0.0.1 at 2016-03-09 19:13:41 +0200
Processing by ItemsController#show as HTML
Parameters: {"id"=>"1"}
[1m[36mItem Load (0.1ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", 1]]
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/_buy.html.haml (1.5ms)
Rendered items/show.html.erb within layouts/application (2.9ms)
Completed 200 OK in 10ms (Views: 9.7ms | ActiveRecord: 0.1ms)
Started POST "/items/1" for 127.0.0.1 at 2016-03-09 19:13:44 +0200
ActionController::RoutingError (No route matches [POST] "/items/1"):
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.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/_trace.html.erb (1.3ms)
Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/routes/_route.html.erb (1.0ms)
Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/routes/_route.html.erb (0.3ms)
Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/routes/_table.html.erb (4.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 (1.1ms)
Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/rescues/routing_error.html.erb within rescues/layout (44.8ms)
Started GET "/items/1" for 127.0.0.1 at 2016-03-09 19:15:57 +0200
Processing by ItemsController#show as HTML
Parameters: {"id"=>"1"}
[1m[35mItem Load (0.1ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mItem Load (0.2ms)[0m [1mSELECT "items".* FROM "items"[0m
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/_buy.html.haml (26.6ms)
Rendered items/show.html.erb within layouts/application (27.8ms)
Completed 500 Internal Server Error in 38ms (ActiveRecord: 0.6ms)
ActionView::Template::Error (undefined method `add_to_cart_path' for #<#:0x007f12560b4400>):
1: = form_for item, :url => 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/items/show.html.erb:21:in `_app_views_items_show_html_erb___1481990022774388871_69858365451080'
Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/rescues/_source.erb (7.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 (4.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/template_error.html.erb within rescues/layout (23.6ms)
Started GET "/items/1" for 127.0.0.1 at 2016-03-09 19:17:07 +0200
Processing by ItemsController#show as HTML
Parameters: {"id"=>"1"}
[1m[35mItem Load (0.1ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mItem Load (0.2ms)[0m [1mSELECT "items".* FROM "items"[0m
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/_buy.html.haml (10.9ms)
Rendered items/show.html.erb within layouts/application (12.1ms)
Completed 500 Internal Server Error in 14ms (ActiveRecord: 0.3ms)
ActionView::Template::Error (undefined method `add_to_cart_path' for #<#:0x007f12564946b0>):
1: = form_for item, :url => 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/items/show.html.erb:21:in `_app_views_items_show_html_erb___1481990022774388871_69858365451080'
Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/rescues/_source.erb (6.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.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/template_error.html.erb within rescues/layout (19.8ms)
Started GET "/items/1" for 127.0.0.1 at 2016-03-09 19:17:09 +0200
Processing by ItemsController#show as HTML
Parameters: {"id"=>"1"}
[1m[35mItem Load (0.1ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mItem Load (0.2ms)[0m [1mSELECT "items".* FROM "items"[0m
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/_buy.html.haml (11.7ms)
Rendered items/show.html.erb within layouts/application (13.9ms)
Completed 500 Internal Server Error in 17ms (ActiveRecord: 0.3ms)
ActionView::Template::Error (undefined method `add_to_cart_path' for #<#:0x000000038ac5e8>):
1: = form_for item, :url => 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/items/show.html.erb:21:in `_app_views_items_show_html_erb___1481990022774388871_69858365451080'
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 (3.2ms)
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.7ms)
Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/rescues/template_error.html.erb within rescues/layout (19.9ms)
Started GET "/items/1" for 127.0.0.1 at 2016-03-09 19:17:11 +0200
Processing by ItemsController#show as HTML
Parameters: {"id"=>"1"}
[1m[35mItem Load (0.1ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mItem Load (0.1ms)[0m [1mSELECT "items".* FROM "items"[0m
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/_buy.html.haml (9.8ms)
Rendered items/show.html.erb within layouts/application (11.1ms)
Completed 500 Internal Server Error in 13ms (ActiveRecord: 0.2ms)
ActionView::Template::Error (undefined method `add_to_cart_path' for #<#:0x007f1256659ef0>):
1: = form_for item, :url => 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/items/show.html.erb:21:in `_app_views_items_show_html_erb___1481990022774388871_69858365451080'
Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/rescues/_source.erb (6.3ms)
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.5ms)
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/template_error.html.erb within rescues/layout (19.2ms)
Started GET "/items/1" for 127.0.0.1 at 2016-03-09 19:17:39 +0200
Processing by ItemsController#show as HTML
Parameters: {"id"=>"1"}
[1m[35mItem Load (0.2ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mItem Load (0.2ms)[0m [1mSELECT "items".* FROM "items"[0m
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/_buy.html.haml (13.2ms)
Rendered items/show.html.erb within layouts/application (14.7ms)
Completed 500 Internal Server Error in 17ms (ActiveRecord: 0.4ms)
ActionView::Template::Error (undefined local variable or method `clear_cart_path' for #<#:0x007f1256051648>):
1: = form_for item, :url => clear_cart_path, :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/items/show.html.erb:21:in `_app_views_items_show_html_erb___1481990022774388871_69858365451080'
Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/rescues/_source.erb (6.7ms)
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.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 (19.7ms)
Started GET "/items/1" for 127.0.0.1 at 2016-03-09 19:17:43 +0200
Processing by ItemsController#show as HTML
Parameters: {"id"=>"1"}
[1m[35mItem Load (0.2ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mItem Load (0.2ms)[0m [1mSELECT "items".* FROM "items"[0m
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/_buy.html.haml (10.7ms)
Rendered items/show.html.erb within layouts/application (11.9ms)
Completed 500 Internal Server Error in 14ms (ActiveRecord: 0.3ms)
ActionView::Template::Error (undefined local variable or method `clear_cart_path' for #<#:0x007f1244d96450>):
1: = form_for item, :url => clear_cart_path, :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/items/show.html.erb:21:in `_app_views_items_show_html_erb___1481990022774388871_69858365451080'
Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/rescues/_source.erb (6.6ms)
Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (3.2ms)
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.7ms)
Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/rescues/template_error.html.erb within rescues/layout (19.6ms)
Started GET "/items/1" for 127.0.0.1 at 2016-03-09 19:18:56 +0200
Processing by ItemsController#show as HTML
Parameters: {"id"=>"1"}
[1m[35mItem Load (0.2ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 1]]
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/_buy.html.haml (26.9ms)
Rendered items/show.html.erb within layouts/application (29.1ms)
Completed 200 OK in 39ms (Views: 38.1ms | ActiveRecord: 0.2ms)
Started POST "/simple_cart/cart/1" for 127.0.0.1 at 2016-03-09 19:18:58 +0200
ActionController::RoutingError (uninitialized constant SimpleCart::CartsController):
activesupport (4.2.5.2) lib/active_support/inflector/methods.rb:263:in `const_get'
activesupport (4.2.5.2) lib/active_support/inflector/methods.rb:263:in `block in constantize'
activesupport (4.2.5.2) lib/active_support/inflector/methods.rb:259:in `each'
activesupport (4.2.5.2) lib/active_support/inflector/methods.rb:259:in `inject'
activesupport (4.2.5.2) lib/active_support/inflector/methods.rb:259:in `constantize'
actionpack (4.2.5.2) lib/action_dispatch/routing/route_set.rb:70:in `controller_reference'
actionpack (4.2.5.2) lib/action_dispatch/routing/route_set.rb:60:in `controller'
actionpack (4.2.5.2) lib/action_dispatch/routing/route_set.rb:39: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/_trace.html.erb (1.7ms)
Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/routes/_route.html.erb (1.0ms)
Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/routes/_route.html.erb (0.4ms)
Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/routes/_table.html.erb (1.2ms)
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/routing_error.html.erb within rescues/layout (25.3ms)
Started GET "/items/1" for 127.0.0.1 at 2016-03-09 19:19:03 +0200
Processing by ItemsController#show as HTML
Parameters: {"id"=>"1"}
[1m[36mItem Load (0.1ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", 1]]
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/_buy.html.haml (6.4ms)
Rendered items/show.html.erb within layouts/application (7.5ms)
Completed 200 OK in 15ms (Views: 14.3ms | ActiveRecord: 0.1ms)
Started GET "/assets/items.self-b60acab5af8d245ed2b3012f77d11d8d207d8eada27756badaf4ef05770d60f6.css?body=1" for 127.0.0.1 at 2016-03-09 19:19:03 +0200
Started GET "/assets/application.self-e80e8f2318043e8af94dddc2adad5a4f09739a8ebb323b3ab31cd71d45fd9113.css?body=1" for 127.0.0.1 at 2016-03-09 19:19:03 +0200
Started GET "/assets/items.self-19a187bec6cdb96d6de80a61c16c857c613536adf9138476bd367db38d282635.js?body=1" for 127.0.0.1 at 2016-03-09 19:19:03 +0200
Started GET "/assets/scaffold.self-83b741db49389dc7cfdf85bf7537a0219cce48e085c4116afc83d55c9af47c78.css?body=1" for 127.0.0.1 at 2016-03-09 19:19:03 +0200
Started GET "/assets/application.self-8f06a73c35179188914ab50e057157639fce1401c1cdca640ac9cec33746fc5b.js?body=1" for 127.0.0.1 at 2016-03-09 19:19:03 +0200
Started GET "/items/1" for 127.0.0.1 at 2016-03-09 19:19:04 +0200
Processing by ItemsController#show as HTML
Parameters: {"id"=>"1"}
[1m[35mItem Load (0.1ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 1]]
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/_buy.html.haml (7.9ms)
Rendered items/show.html.erb within layouts/application (9.7ms)
Completed 200 OK in 21ms (Views: 20.0ms | ActiveRecord: 0.1ms)
Started GET "/assets/items.self-b60acab5af8d245ed2b3012f77d11d8d207d8eada27756badaf4ef05770d60f6.css?body=1" for 127.0.0.1 at 2016-03-09 19:19:04 +0200
Started GET "/assets/application.self-e80e8f2318043e8af94dddc2adad5a4f09739a8ebb323b3ab31cd71d45fd9113.css?body=1" for 127.0.0.1 at 2016-03-09 19:19:04 +0200
Started GET "/assets/application.self-8f06a73c35179188914ab50e057157639fce1401c1cdca640ac9cec33746fc5b.js?body=1" for 127.0.0.1 at 2016-03-09 19:19:04 +0200
Started GET "/assets/scaffold.self-83b741db49389dc7cfdf85bf7537a0219cce48e085c4116afc83d55c9af47c78.css?body=1" for 127.0.0.1 at 2016-03-09 19:19:04 +0200
Started GET "/assets/items.self-19a187bec6cdb96d6de80a61c16c857c613536adf9138476bd367db38d282635.js?body=1" for 127.0.0.1 at 2016-03-09 19:19:04 +0200
Started GET "/items/1" for 127.0.0.1 at 2016-03-09 19:19:05 +0200
Processing by ItemsController#show as HTML
Parameters: {"id"=>"1"}
[1m[36mItem Load (0.1ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", 1]]
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/_buy.html.haml (6.2ms)
Rendered items/show.html.erb within layouts/application (7.6ms)
Completed 200 OK in 15ms (Views: 14.3ms | ActiveRecord: 0.1ms)
Started GET "/assets/application.self-e80e8f2318043e8af94dddc2adad5a4f09739a8ebb323b3ab31cd71d45fd9113.css?body=1" for 127.0.0.1 at 2016-03-09 19:19:05 +0200
Started GET "/assets/items.self-19a187bec6cdb96d6de80a61c16c857c613536adf9138476bd367db38d282635.js?body=1" for 127.0.0.1 at 2016-03-09 19:19:05 +0200
Started GET "/assets/application.self-8f06a73c35179188914ab50e057157639fce1401c1cdca640ac9cec33746fc5b.js?body=1" for 127.0.0.1 at 2016-03-09 19:19:05 +0200
Started GET "/assets/items.self-b60acab5af8d245ed2b3012f77d11d8d207d8eada27756badaf4ef05770d60f6.css?body=1" for 127.0.0.1 at 2016-03-09 19:19:05 +0200
Started GET "/assets/scaffold.self-83b741db49389dc7cfdf85bf7537a0219cce48e085c4116afc83d55c9af47c78.css?body=1" for 127.0.0.1 at 2016-03-09 19:19:05 +0200
Started GET "/items/1" for 127.0.0.1 at 2016-03-09 19:19:06 +0200
Processing by ItemsController#show as HTML
Parameters: {"id"=>"1"}
[1m[35mItem Load (0.1ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 1]]
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/_buy.html.haml (6.0ms)
Rendered items/show.html.erb within layouts/application (7.6ms)
Completed 200 OK in 16ms (Views: 15.0ms | ActiveRecord: 0.1ms)
Started GET "/assets/scaffold.self-83b741db49389dc7cfdf85bf7537a0219cce48e085c4116afc83d55c9af47c78.css?body=1" for 127.0.0.1 at 2016-03-09 19:19:06 +0200
Started GET "/assets/items.self-b60acab5af8d245ed2b3012f77d11d8d207d8eada27756badaf4ef05770d60f6.css?body=1" for 127.0.0.1 at 2016-03-09 19:19:06 +0200
Started GET "/assets/items.self-19a187bec6cdb96d6de80a61c16c857c613536adf9138476bd367db38d282635.js?body=1" for 127.0.0.1 at 2016-03-09 19:19:06 +0200
Started GET "/assets/application.self-8f06a73c35179188914ab50e057157639fce1401c1cdca640ac9cec33746fc5b.js?body=1" for 127.0.0.1 at 2016-03-09 19:19:06 +0200
Started GET "/assets/application.self-e80e8f2318043e8af94dddc2adad5a4f09739a8ebb323b3ab31cd71d45fd9113.css?body=1" for 127.0.0.1 at 2016-03-09 19:19:06 +0200
Started GET "/items/1" for 127.0.0.1 at 2016-03-09 19:19:06 +0200
Processing by ItemsController#show as HTML
Parameters: {"id"=>"1"}
[1m[36mItem Load (0.1ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", 1]]
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/_buy.html.haml (3.8ms)
Rendered items/show.html.erb within layouts/application (5.0ms)
Completed 200 OK in 14ms (Views: 13.8ms | ActiveRecord: 0.1ms)
Started GET "/assets/items.self-b60acab5af8d245ed2b3012f77d11d8d207d8eada27756badaf4ef05770d60f6.css?body=1" for 127.0.0.1 at 2016-03-09 19:19:07 +0200
Started GET "/assets/scaffold.self-83b741db49389dc7cfdf85bf7537a0219cce48e085c4116afc83d55c9af47c78.css?body=1" for 127.0.0.1 at 2016-03-09 19:19:07 +0200
Started GET "/assets/application.self-e80e8f2318043e8af94dddc2adad5a4f09739a8ebb323b3ab31cd71d45fd9113.css?body=1" for 127.0.0.1 at 2016-03-09 19:19:07 +0200
Started GET "/assets/application.self-8f06a73c35179188914ab50e057157639fce1401c1cdca640ac9cec33746fc5b.js?body=1" for 127.0.0.1 at 2016-03-09 19:19:07 +0200
Started GET "/assets/items.self-19a187bec6cdb96d6de80a61c16c857c613536adf9138476bd367db38d282635.js?body=1" for 127.0.0.1 at 2016-03-09 19:19:07 +0200
Started GET "/items/1" for 127.0.0.1 at 2016-03-09 19:19:07 +0200
Processing by ItemsController#show as HTML
Parameters: {"id"=>"1"}
[1m[35mItem Load (0.2ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 1]]
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/_buy.html.haml (5.7ms)
Rendered items/show.html.erb within layouts/application (7.7ms)
Completed 200 OK in 19ms (Views: 17.7ms | ActiveRecord: 0.2ms)
Started GET "/assets/scaffold.self-83b741db49389dc7cfdf85bf7537a0219cce48e085c4116afc83d55c9af47c78.css?body=1" for 127.0.0.1 at 2016-03-09 19:19:07 +0200
Started GET "/assets/application.self-e80e8f2318043e8af94dddc2adad5a4f09739a8ebb323b3ab31cd71d45fd9113.css?body=1" for 127.0.0.1 at 2016-03-09 19:19:07 +0200
Started GET "/assets/items.self-b60acab5af8d245ed2b3012f77d11d8d207d8eada27756badaf4ef05770d60f6.css?body=1" for 127.0.0.1 at 2016-03-09 19:19:07 +0200
Started GET "/assets/items.self-19a187bec6cdb96d6de80a61c16c857c613536adf9138476bd367db38d282635.js?body=1" for 127.0.0.1 at 2016-03-09 19:19:07 +0200
Started GET "/assets/application.self-8f06a73c35179188914ab50e057157639fce1401c1cdca640ac9cec33746fc5b.js?body=1" for 127.0.0.1 at 2016-03-09 19:19:07 +0200
Started GET "/items/1" for 127.0.0.1 at 2016-03-09 19:19:44 +0200
Processing by ItemsController#show as HTML
Parameters: {"id"=>"1"}
[1m[36mItem Load (0.2ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", 1]]
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/_buy.html.haml (7.3ms)
Rendered items/show.html.erb within layouts/application (9.2ms)
Completed 200 OK in 26ms (Views: 24.9ms | ActiveRecord: 0.2ms)
Started GET "/items/1" for 127.0.0.1 at 2016-03-09 19:43:14 +0200
Processing by ItemsController#show as HTML
Parameters: {"id"=>"1"}
[1m[35mItem Load (0.1ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 1]]
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/_buy.html.haml (5.7ms)
Rendered items/show.html.erb within layouts/application (7.0ms)
Completed 200 OK in 21ms (Views: 15.7ms | ActiveRecord: 0.5ms)
Started GET "/assets/items.self-b60acab5af8d245ed2b3012f77d11d8d207d8eada27756badaf4ef05770d60f6.css?body=1" for 127.0.0.1 at 2016-03-09 19:43:14 +0200
Started GET "/assets/scaffold.self-83b741db49389dc7cfdf85bf7537a0219cce48e085c4116afc83d55c9af47c78.css?body=1" for 127.0.0.1 at 2016-03-09 19:43:14 +0200
Started GET "/assets/application.self-8f06a73c35179188914ab50e057157639fce1401c1cdca640ac9cec33746fc5b.js?body=1" for 127.0.0.1 at 2016-03-09 19:43:14 +0200
Started GET "/assets/items.self-19a187bec6cdb96d6de80a61c16c857c613536adf9138476bd367db38d282635.js?body=1" for 127.0.0.1 at 2016-03-09 19:43:14 +0200
Started GET "/assets/application.self-e80e8f2318043e8af94dddc2adad5a4f09739a8ebb323b3ab31cd71d45fd9113.css?body=1" for 127.0.0.1 at 2016-03-09 19:43:14 +0200
Started GET "/items/1" for 127.0.0.1 at 2016-03-09 19:43:16 +0200
Processing by ItemsController#show as HTML
Parameters: {"id"=>"1"}
[1m[36mItem Load (0.1ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", 1]]
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/_buy.html.haml (6.4ms)
Rendered items/show.html.erb within layouts/application (8.1ms)
Completed 200 OK in 18ms (Views: 17.4ms | ActiveRecord: 0.1ms)
Started GET "/assets/items.self-b60acab5af8d245ed2b3012f77d11d8d207d8eada27756badaf4ef05770d60f6.css?body=1" for 127.0.0.1 at 2016-03-09 19:43:16 +0200
Started GET "/assets/scaffold.self-83b741db49389dc7cfdf85bf7537a0219cce48e085c4116afc83d55c9af47c78.css?body=1" for 127.0.0.1 at 2016-03-09 19:43:16 +0200
Started GET "/assets/application.self-8f06a73c35179188914ab50e057157639fce1401c1cdca640ac9cec33746fc5b.js?body=1" for 127.0.0.1 at 2016-03-09 19:43:16 +0200
Started GET "/assets/application.self-e80e8f2318043e8af94dddc2adad5a4f09739a8ebb323b3ab31cd71d45fd9113.css?body=1" for 127.0.0.1 at 2016-03-09 19:43:16 +0200
Started GET "/assets/items.self-19a187bec6cdb96d6de80a61c16c857c613536adf9138476bd367db38d282635.js?body=1" for 127.0.0.1 at 2016-03-09 19:43:16 +0200
Started POST "/simple_cart/cart/1" for 127.0.0.1 at 2016-03-09 19:44:18 +0200
ActionController::RoutingError (uninitialized constant SimpleCart::CartsController):
activesupport (4.2.5.2) lib/active_support/inflector/methods.rb:263:in `const_get'
activesupport (4.2.5.2) lib/active_support/inflector/methods.rb:263:in `block in constantize'
activesupport (4.2.5.2) lib/active_support/inflector/methods.rb:259:in `each'
activesupport (4.2.5.2) lib/active_support/inflector/methods.rb:259:in `inject'
activesupport (4.2.5.2) lib/active_support/inflector/methods.rb:259:in `constantize'
actionpack (4.2.5.2) lib/action_dispatch/routing/route_set.rb:70:in `controller_reference'
actionpack (4.2.5.2) lib/action_dispatch/routing/route_set.rb:60:in `controller'
actionpack (4.2.5.2) lib/action_dispatch/routing/route_set.rb:39: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/_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/routes/_route.html.erb (1.1ms)
Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/routes/_route.html.erb (0.4ms)
Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/routes/_table.html.erb (1.2ms)
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.5ms)
Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/rescues/routing_error.html.erb within rescues/layout (27.7ms)
Started POST "/simple_cart/cart/1" for 127.0.0.1 at 2016-03-09 19:46:20 +0200
ActionController::RoutingError (uninitialized constant SimpleCart::CartsController):
activesupport (4.2.5.2) lib/active_support/inflector/methods.rb:263:in `const_get'
activesupport (4.2.5.2) lib/active_support/inflector/methods.rb:263:in `block in constantize'
activesupport (4.2.5.2) lib/active_support/inflector/methods.rb:259:in `each'
activesupport (4.2.5.2) lib/active_support/inflector/methods.rb:259:in `inject'
activesupport (4.2.5.2) lib/active_support/inflector/methods.rb:259:in `constantize'
actionpack (4.2.5.2) lib/action_dispatch/routing/route_set.rb:70:in `controller_reference'
actionpack (4.2.5.2) lib/action_dispatch/routing/route_set.rb:60:in `controller'
actionpack (4.2.5.2) lib/action_dispatch/routing/route_set.rb:39: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/_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/routes/_route.html.erb (0.9ms)
Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/routes/_route.html.erb (0.4ms)
Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/routes/_table.html.erb (1.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 (1.1ms)
Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/rescues/routing_error.html.erb within rescues/layout (25.2ms)
Started POST "/simple_cart/cart/1" for 127.0.0.1 at 2016-03-09 19:46:34 +0200
ActionController::RoutingError (uninitialized constant SimpleCart::CartsController):
activesupport (4.2.5.2) lib/active_support/inflector/methods.rb:263:in `const_get'
activesupport (4.2.5.2) lib/active_support/inflector/methods.rb:263:in `block in constantize'
activesupport (4.2.5.2) lib/active_support/inflector/methods.rb:259:in `each'
activesupport (4.2.5.2) lib/active_support/inflector/methods.rb:259:in `inject'
activesupport (4.2.5.2) lib/active_support/inflector/methods.rb:259:in `constantize'
actionpack (4.2.5.2) lib/action_dispatch/routing/route_set.rb:70:in `controller_reference'
actionpack (4.2.5.2) lib/action_dispatch/routing/route_set.rb:60:in `controller'
actionpack (4.2.5.2) lib/action_dispatch/routing/route_set.rb:39: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/_trace.html.erb (1.6ms)
Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/routes/_route.html.erb (1.0ms)
Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/routes/_route.html.erb (0.3ms)
Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/routes/_table.html.erb (1.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 (1.2ms)
Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/rescues/routing_error.html.erb within rescues/layout (24.7ms)
Started POST "/simple_cart/cart/1" for 127.0.0.1 at 2016-03-09 19:47:00 +0200
ActionController::RoutingError (uninitialized constant SimpleCart::CartsController):
activesupport (4.2.5.2) lib/active_support/inflector/methods.rb:263:in `const_get'
activesupport (4.2.5.2) lib/active_support/inflector/methods.rb:263:in `block in constantize'
activesupport (4.2.5.2) lib/active_support/inflector/methods.rb:259:in `each'
activesupport (4.2.5.2) lib/active_support/inflector/methods.rb:259:in `inject'
activesupport (4.2.5.2) lib/active_support/inflector/methods.rb:259:in `constantize'
actionpack (4.2.5.2) lib/action_dispatch/routing/route_set.rb:70:in `controller_reference'
actionpack (4.2.5.2) lib/action_dispatch/routing/route_set.rb:60:in `controller'
actionpack (4.2.5.2) lib/action_dispatch/routing/route_set.rb:39: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/_trace.html.erb (1.7ms)
Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/routes/_route.html.erb (0.8ms)
Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/routes/_route.html.erb (0.3ms)
Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/routes/_table.html.erb (1.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 (1.3ms)
Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/rescues/routing_error.html.erb within rescues/layout (24.9ms)
Started GET "/items/1" for 127.0.0.1 at 2016-03-09 19:47:04 +0200
Processing by ItemsController#show as HTML
Parameters: {"id"=>"1"}
[1m[35mItem Load (0.2ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 1]]
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/_buy.html.haml (4.6ms)
Rendered items/show.html.erb within layouts/application (5.8ms)
Completed 200 OK in 22ms (Views: 16.0ms | ActiveRecord: 0.6ms)
Started GET "/assets/items.self-b60acab5af8d245ed2b3012f77d11d8d207d8eada27756badaf4ef05770d60f6.css?body=1" for 127.0.0.1 at 2016-03-09 19:47:04 +0200
Started GET "/assets/application.self-e80e8f2318043e8af94dddc2adad5a4f09739a8ebb323b3ab31cd71d45fd9113.css?body=1" for 127.0.0.1 at 2016-03-09 19:47:04 +0200
Started GET "/assets/items.self-19a187bec6cdb96d6de80a61c16c857c613536adf9138476bd367db38d282635.js?body=1" for 127.0.0.1 at 2016-03-09 19:47:04 +0200
Started GET "/assets/application.self-8f06a73c35179188914ab50e057157639fce1401c1cdca640ac9cec33746fc5b.js?body=1" for 127.0.0.1 at 2016-03-09 19:47:04 +0200
Started GET "/assets/scaffold.self-83b741db49389dc7cfdf85bf7537a0219cce48e085c4116afc83d55c9af47c78.css?body=1" for 127.0.0.1 at 2016-03-09 19:47:04 +0200
Started POST "/simple_cart/cart/1" for 127.0.0.1 at 2016-03-09 19:47:05 +0200
ActionController::RoutingError (uninitialized constant SimpleCart::CartsController):
activesupport (4.2.5.2) lib/active_support/inflector/methods.rb:263:in `const_get'
activesupport (4.2.5.2) lib/active_support/inflector/methods.rb:263:in `block in constantize'
activesupport (4.2.5.2) lib/active_support/inflector/methods.rb:259:in `each'
activesupport (4.2.5.2) lib/active_support/inflector/methods.rb:259:in `inject'
activesupport (4.2.5.2) lib/active_support/inflector/methods.rb:259:in `constantize'
actionpack (4.2.5.2) lib/action_dispatch/routing/route_set.rb:70:in `controller_reference'
actionpack (4.2.5.2) lib/action_dispatch/routing/route_set.rb:60:in `controller'
actionpack (4.2.5.2) lib/action_dispatch/routing/route_set.rb:39: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/_trace.html.erb (2.2ms)
Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/routes/_route.html.erb (1.1ms)
Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/routes/_route.html.erb (0.4ms)
Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/routes/_table.html.erb (1.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 (1.0ms)
Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/rescues/routing_error.html.erb within rescues/layout (26.1ms)
Started POST "/simple_cart/cart/1" for 127.0.0.1 at 2016-03-09 19:47:35 +0200
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
ActionController::RoutingError (uninitialized constant SimpleCart::CartsController):
activesupport (4.2.5.2) lib/active_support/inflector/methods.rb:263:in `const_get'
activesupport (4.2.5.2) lib/active_support/inflector/methods.rb:263:in `block in constantize'
activesupport (4.2.5.2) lib/active_support/inflector/methods.rb:259:in `each'
activesupport (4.2.5.2) lib/active_support/inflector/methods.rb:259:in `inject'
activesupport (4.2.5.2) lib/active_support/inflector/methods.rb:259:in `constantize'
actionpack (4.2.5.2) lib/action_dispatch/routing/route_set.rb:70:in `controller_reference'
actionpack (4.2.5.2) lib/action_dispatch/routing/route_set.rb:60:in `controller'
actionpack (4.2.5.2) lib/action_dispatch/routing/route_set.rb:39: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/_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/routes/_route.html.erb (1.2ms)
Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/routes/_route.html.erb (0.4ms)
Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/routes/_table.html.erb (11.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 (7.5ms)
Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/rescues/routing_error.html.erb within rescues/layout (47.6ms)
Started GET "/simple_cart/cart" for 127.0.0.1 at 2016-03-09 19:48:20 +0200
LoadError (Unable to autoload constant SimpleCart::CartsController, expected /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/controllers/simple_cart/carts_controller.rb to define it):
activesupport (4.2.5.2) lib/active_support/dependencies.rb:495:in `load_missing_constant'
activesupport (4.2.5.2) lib/active_support/dependencies.rb:184:in `const_missing'
activesupport (4.2.5.2) lib/active_support/inflector/methods.rb:263:in `const_get'
activesupport (4.2.5.2) lib/active_support/inflector/methods.rb:263:in `block in constantize'
activesupport (4.2.5.2) lib/active_support/inflector/methods.rb:259:in `each'
activesupport (4.2.5.2) lib/active_support/inflector/methods.rb:259:in `inject'
activesupport (4.2.5.2) lib/active_support/inflector/methods.rb:259:in `constantize'
activesupport (4.2.5.2) lib/active_support/dependencies.rb:566:in `get'
activesupport (4.2.5.2) lib/active_support/dependencies.rb:597:in `constantize'
actionpack (4.2.5.2) lib/action_dispatch/routing/route_set.rb:70:in `controller_reference'
actionpack (4.2.5.2) lib/action_dispatch/routing/route_set.rb:60:in `controller'
actionpack (4.2.5.2) lib/action_dispatch/routing/route_set.rb:39: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 (3.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 (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 (1.2ms)
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.5ms)
Started GET "/simple_cart" for 127.0.0.1 at 2016-03-09 19:48:21 +0200
ActionController::RoutingError (No route matches [GET] "/simple_cart"):
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.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/_trace.html.erb (1.4ms)
Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/routes/_route.html.erb (1.1ms)
Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/routes/_route.html.erb (0.4ms)
Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/routes/_table.html.erb (1.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 (1.1ms)
Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/rescues/routing_error.html.erb within rescues/layout (24.8ms)
Started GET "/" for 127.0.0.1 at 2016-03-09 19:48:22 +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.9ms)
Completed 200 OK in 120ms (Views: 120.1ms | ActiveRecord: 0.0ms)
Started GET "/items" for 127.0.0.1 at 2016-03-09 19:48:26 +0200
Processing by ItemsController#index as HTML
[1m[35mItem Load (0.3ms)[0m SELECT "items".* FROM "items"
Rendered items/index.html.erb within layouts/application (8.1ms)
Completed 200 OK in 151ms (Views: 149.5ms | ActiveRecord: 0.6ms)
Started GET "/items" for 127.0.0.1 at 2016-03-09 19:48:26 +0200
Processing by ItemsController#index as HTML
[1m[36mItem Load (0.2ms)[0m [1mSELECT "items".* FROM "items"[0m
Rendered items/index.html.erb within layouts/application (2.5ms)
Completed 200 OK in 12ms (Views: 12.0ms | ActiveRecord: 0.2ms)
Started GET "/items/1" for 127.0.0.1 at 2016-03-09 19:48:28 +0200
Processing by ItemsController#show as HTML
Parameters: {"id"=>"1"}
[1m[35mItem Load (0.2ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 1]]
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/_buy.html.haml (21.2ms)
Rendered items/show.html.erb within layouts/application (23.3ms)
Completed 200 OK in 42ms (Views: 35.1ms | ActiveRecord: 0.2ms)
Started POST "/simple_cart/cart/1" for 127.0.0.1 at 2016-03-09 19:48:29 +0200
LoadError (Unable to autoload constant SimpleCart::CartsController, expected /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/controllers/simple_cart/carts_controller.rb to define it):
activesupport (4.2.5.2) lib/active_support/dependencies.rb:495:in `load_missing_constant'
activesupport (4.2.5.2) lib/active_support/dependencies.rb:184:in `const_missing'
activesupport (4.2.5.2) lib/active_support/inflector/methods.rb:263:in `const_get'
activesupport (4.2.5.2) lib/active_support/inflector/methods.rb:263:in `block in constantize'
activesupport (4.2.5.2) lib/active_support/inflector/methods.rb:259:in `each'
activesupport (4.2.5.2) lib/active_support/inflector/methods.rb:259:in `inject'
activesupport (4.2.5.2) lib/active_support/inflector/methods.rb:259:in `constantize'
activesupport (4.2.5.2) lib/active_support/dependencies.rb:566:in `get'
activesupport (4.2.5.2) lib/active_support/dependencies.rb:597:in `constantize'
actionpack (4.2.5.2) lib/action_dispatch/routing/route_set.rb:70:in `controller_reference'
actionpack (4.2.5.2) lib/action_dispatch/routing/route_set.rb:60:in `controller'
actionpack (4.2.5.2) lib/action_dispatch/routing/route_set.rb:39: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 (3.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 (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 (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 "/items" for 127.0.0.1 at 2016-03-09 19:49:05 +0200
Processing by ItemsController#index as HTML
[1m[36mItem Load (0.3ms)[0m [1mSELECT "items".* FROM "items"[0m
Rendered items/index.html.erb within layouts/application (6.4ms)
Completed 200 OK in 41ms (Views: 39.5ms | ActiveRecord: 0.6ms)
Started GET "/items/2" for 127.0.0.1 at 2016-03-09 19:49:06 +0200
Processing by ItemsController#show as HTML
Parameters: {"id"=>"2"}
[1m[35mItem Load (0.2ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 2]]
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/_buy.html.haml (6.9ms)
Rendered items/show.html.erb within layouts/application (8.2ms)
Completed 200 OK in 19ms (Views: 18.2ms | ActiveRecord: 0.2ms)
Started POST "/simple_cart/cart/2" for 127.0.0.1 at 2016-03-09 19:49:07 +0200
Processing by SimpleCart::CartsController#add as HTML
Parameters: {"utf8"=>"✓", "authenticity_token"=>"KpC6csFCKGwqtZGEe/tuW9kmDA87SBDzhjwBkjllGb2+Ih1QTJcTFEeIzxgEwHqnCcj9Lobveka7zjLRxaUFCA==", "qty"=>"1", "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-09 19:49:08 +0200
Processing by SimpleCart::CartsController#show as HTML
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml within layouts/application (6.8ms)
Completed 200 OK in 32ms (Views: 31.9ms | ActiveRecord: 0.0ms)
Started POST "/simple_cart/cart/2" for 127.0.0.1 at 2016-03-09 19:49:11 +0200
Processing by SimpleCart::CartsController#add as HTML
Parameters: {"utf8"=>"✓", "authenticity_token"=>"KpC6csFCKGwqtZGEe/tuW9kmDA87SBDzhjwBkjllGb2+Ih1QTJcTFEeIzxgEwHqnCcj9Lobveka7zjLRxaUFCA==", "qty"=>"1", "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-09 19:49:11 +0200
Processing by SimpleCart::CartsController#show as HTML
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml within layouts/application (0.7ms)
Completed 200 OK in 10ms (Views: 9.1ms | ActiveRecord: 0.0ms)
Started GET "/items/2" for 127.0.0.1 at 2016-03-09 20:59:16 +0200
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
Processing by ItemsController#show as HTML
Parameters: {"id"=>"2"}
[1m[35mItem Load (0.2ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 2]]
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/_buy.html.haml (24.0ms)
Rendered items/show.html.erb within layouts/application (40.4ms)
Completed 200 OK in 219ms (Views: 199.2ms | ActiveRecord: 0.5ms)
Started GET "/items" for 127.0.0.1 at 2016-03-09 20:59:18 +0200
Processing by ItemsController#index as HTML
[1m[36mItem Load (0.2ms)[0m [1mSELECT "items".* FROM "items"[0m
Rendered items/index.html.erb within layouts/application (3.6ms)
Completed 200 OK in 18ms (Views: 17.6ms | ActiveRecord: 0.2ms)
Started GET "/items/new" for 127.0.0.1 at 2016-03-09 20:59:19 +0200
Processing by ItemsController#new as HTML
Rendered items/_form.html.erb (30.1ms)
Rendered items/new.html.erb within layouts/application (39.0ms)
Completed 200 OK in 70ms (Views: 69.8ms | ActiveRecord: 0.0ms)
Started POST "/items" for 127.0.0.1 at 2016-03-09 20:59:24 +0200
Processing by ItemsController#create as HTML
Parameters: {"utf8"=>"✓", "authenticity_token"=>"Iimhyh1yZiBNwQdvvRFJ4A7K/ajpTuaIwAkssQVUE+81c1Mr9OlZycNHVPjlgBLvH/OdvuiiExnsfg7nC6oS7Q==", "item"=>{"name"=>"215", "price"=>"25", "qty"=>"12"}, "commit"=>"Create Item"}
[1m[35m (0.1ms)[0m begin transaction
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "items" ("name", "price", "qty", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["name", "215"], ["price", 25.0], ["qty", 12], ["created_at", "2016-03-09 18:59:24.255881"], ["updated_at", "2016-03-09 18:59:24.255881"]]
[1m[35m (79.9ms)[0m commit transaction
Redirected to http://localhost:3000/items/3
Completed 302 Found in 83ms (ActiveRecord: 80.2ms)
Started GET "/items/3" for 127.0.0.1 at 2016-03-09 20:59:24 +0200
Processing by ItemsController#show as HTML
Parameters: {"id"=>"3"}
[1m[36mItem Load (0.1ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", 3]]
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/_buy.html.haml (4.4ms)
Rendered items/show.html.erb within layouts/application (5.7ms)
Completed 200 OK in 16ms (Views: 15.6ms | ActiveRecord: 0.1ms)
Started GET "/items" for 127.0.0.1 at 2016-03-09 20:59:26 +0200
Processing by ItemsController#index as HTML
[1m[35mItem Load (0.3ms)[0m SELECT "items".* FROM "items"
Rendered items/index.html.erb within layouts/application (2.9ms)
Completed 200 OK in 11ms (Views: 11.0ms | ActiveRecord: 0.3ms)
Started GET "/items/3" for 127.0.0.1 at 2016-03-09 20:59:27 +0200
Processing by ItemsController#show as HTML
Parameters: {"id"=>"3"}
[1m[36mItem Load (0.1ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", 3]]
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/_buy.html.haml (7.1ms)
Rendered items/show.html.erb within layouts/application (8.8ms)
Completed 200 OK in 19ms (Views: 18.1ms | ActiveRecord: 0.1ms)
Started POST "/simple_cart/cart/3" for 127.0.0.1 at 2016-03-09 21:00:23 +0200
Processing by SimpleCart::CartsController#add as HTML
Parameters: {"utf8"=>"✓", "authenticity_token"=>"rLedJpXU1wLZQQC284KO26GmAnbrpgR1j+W8dD6w13677W/HfE/o61fHUyGrE9XUsJ9iYOpK8eSjkp4iME7WfA==", "qty"=>"1", "commit"=>"Add to cart", "item_id"=>"3"}
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-09 21:00:23 +0200
Processing by SimpleCart::CartsController#show as HTML
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml within layouts/application (6.4ms)
Completed 200 OK in 19ms (Views: 17.9ms | ActiveRecord: 0.0ms)
Started GET "/" for 127.0.0.1 at 2016-03-10 21:06:41 +0200
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
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 (15.8ms)
Completed 200 OK in 67ms (Views: 66.4ms | ActiveRecord: 0.0ms)
Started GET "/items" for 127.0.0.1 at 2016-03-10 21:06:45 +0200
Processing by ItemsController#index as HTML
[1m[35mItem Load (0.2ms)[0m SELECT "items".* FROM "items"
Rendered items/index.html.erb within layouts/application (30.3ms)
Completed 200 OK in 378ms (Views: 361.3ms | ActiveRecord: 0.4ms)
Started GET "/items/1" for 127.0.0.1 at 2016-03-10 21:06:49 +0200
Processing by ItemsController#show as HTML
Parameters: {"id"=>"1"}
[1m[36mItem Load (0.2ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", 1]]
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/_buy.html.haml (92.6ms)
Rendered items/show.html.erb within layouts/application (134.5ms)
Completed 200 OK in 198ms (Views: 157.4ms | ActiveRecord: 0.2ms)
Started POST "/simple_cart/cart/1" for 127.0.0.1 at 2016-03-10 21:06:56 +0200
Processing by SimpleCart::CartsController#add as HTML
Parameters: {"utf8"=>"✓", "authenticity_token"=>"gBi7Yal+N1InuYKzOXJeDgFdhkTnLHhOeH/If3TbGZaXQkmAQOUIu6k/0SRh4wUBEGTmUubAjd9UCOopeiUYlA==", "qty"=>"4", "commit"=>"Add to cart", "item_id"=>"1"}
Redirected to http://localhost:3000/simple_cart/cart
Completed 302 Found in 12ms (ActiveRecord: 0.0ms)
Started GET "/simple_cart/cart" for 127.0.0.1 at 2016-03-10 21:06:56 +0200
Processing by SimpleCart::CartsController#show as HTML
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml within layouts/application (5.8ms)
Completed 200 OK in 25ms (Views: 24.9ms | ActiveRecord: 0.0ms)
Started POST "/simple_cart/cart/1" for 127.0.0.1 at 2016-03-10 21:08:25 +0200
Processing by SimpleCart::CartsController#add as HTML
Parameters: {"utf8"=>"✓", "authenticity_token"=>"gBi7Yal+N1InuYKzOXJeDgFdhkTnLHhOeH/If3TbGZaXQkmAQOUIu6k/0SRh4wUBEGTmUubAjd9UCOopeiUYlA==", "qty"=>"4", "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-10 21:08:25 +0200
Processing by SimpleCart::CartsController#show as HTML
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml within layouts/application (0.7ms)
Completed 200 OK in 15ms (Views: 13.9ms | ActiveRecord: 0.0ms)
Started POST "/simple_cart/cart/1" for 127.0.0.1 at 2016-03-10 21:08:51 +0200
Processing by SimpleCart::CartsController#add as HTML
Parameters: {"utf8"=>"✓", "authenticity_token"=>"gBi7Yal+N1InuYKzOXJeDgFdhkTnLHhOeH/If3TbGZaXQkmAQOUIu6k/0SRh4wUBEGTmUubAjd9UCOopeiUYlA==", "qty"=>"4", "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-10 21:08:51 +0200
Processing by SimpleCart::CartsController#show as HTML
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml within layouts/application (1.0ms)
Completed 200 OK in 14ms (Views: 13.7ms | ActiveRecord: 0.0ms)
Started GET "/simple_cart/cart" for 127.0.0.1 at 2016-03-10 21:09:23 +0200
Processing by SimpleCart::CartsController#show as HTML
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml (1.1ms)
Completed 200 OK in 8ms (Views: 5.9ms | ActiveRecord: 0.0ms)
Started POST "/simple_cart/cart/1" for 127.0.0.1 at 2016-03-10 21:09:26 +0200
Processing by SimpleCart::CartsController#add as HTML
Parameters: {"utf8"=>"✓", "authenticity_token"=>"gBi7Yal+N1InuYKzOXJeDgFdhkTnLHhOeH/If3TbGZaXQkmAQOUIu6k/0SRh4wUBEGTmUubAjd9UCOopeiUYlA==", "qty"=>"4", "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-10 21:09:26 +0200
Processing by SimpleCart::CartsController#show as HTML
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml (0.9ms)
Completed 200 OK in 4ms (Views: 3.7ms | ActiveRecord: 0.0ms)
Started GET "/simple_cart/cart" for 127.0.0.1 at 2016-03-10 21:12:49 +0200
Processing by SimpleCart::CartsController#show as HTML
[1m[35mItem Load (0.1ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" IN (NULL, 1)
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml (22.8ms)
Completed 500 Internal Server Error in 28ms (ActiveRecord: 0.5ms)
ActiveRecord::RecordNotFound (Couldn't find all Items with 'id': (, 1) (found 1 results, but was looking for 2)):
activerecord (4.2.5.2) lib/active_record/relation/finder_methods.rb:324:in `raise_record_not_found_exception!'
activerecord (4.2.5.2) lib/active_record/relation/finder_methods.rb:467:in `find_some'
activerecord (4.2.5.2) lib/active_record/relation/finder_methods.rb:426:in `find_with_ids'
activerecord (4.2.5.2) lib/active_record/relation/finder_methods.rb:71:in `find'
activerecord (4.2.5.2) lib/active_record/querying.rb:3:in `find'
activerecord (4.2.5.2) lib/active_record/core.rb:131:in `find'
/home/leksster/ror/Rubygarage/Amazon/simple_cart/app/models/cart.rb:22:in `books'
/home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml:7:in `block in __home_leksster_ror__ubygarage__mazon_simple_cart_app_views_simple_cart_carts_show_html_haml___1185810571975847535_22902180'
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/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml:6:in `__home_leksster_ror__ubygarage__mazon_simple_cart_app_views_simple_cart_carts_show_html_haml___1185810571975847535_22902180'
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 (10.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 (4.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 (1.2ms)
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 (30.7ms)
Started POST "/simple_cart/cart/1" for 127.0.0.1 at 2016-03-10 21:12:57 +0200
Processing by SimpleCart::CartsController#add as HTML
Parameters: {"utf8"=>"✓", "authenticity_token"=>"gBi7Yal+N1InuYKzOXJeDgFdhkTnLHhOeH/If3TbGZaXQkmAQOUIu6k/0SRh4wUBEGTmUubAjd9UCOopeiUYlA==", "qty"=>"4", "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-10 21:12:57 +0200
Processing by SimpleCart::CartsController#show as HTML
[1m[36mItem Load (0.2ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" IN (NULL, 1)[0m
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml (2.7ms)
Completed 500 Internal Server Error in 5ms (ActiveRecord: 0.2ms)
ActiveRecord::RecordNotFound (Couldn't find all Items with 'id': (, 1) (found 1 results, but was looking for 2)):
activerecord (4.2.5.2) lib/active_record/relation/finder_methods.rb:324:in `raise_record_not_found_exception!'
activerecord (4.2.5.2) lib/active_record/relation/finder_methods.rb:467:in `find_some'
activerecord (4.2.5.2) lib/active_record/relation/finder_methods.rb:426:in `find_with_ids'
activerecord (4.2.5.2) lib/active_record/relation/finder_methods.rb:71:in `find'
activerecord (4.2.5.2) lib/active_record/querying.rb:3:in `find'
activerecord (4.2.5.2) lib/active_record/core.rb:131:in `find'
/home/leksster/ror/Rubygarage/Amazon/simple_cart/app/models/cart.rb:22:in `books'
/home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml:7:in `block in __home_leksster_ror__ubygarage__mazon_simple_cart_app_views_simple_cart_carts_show_html_haml___1185810571975847535_22902180'
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/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml:6:in `__home_leksster_ror__ubygarage__mazon_simple_cart_app_views_simple_cart_carts_show_html_haml___1185810571975847535_22902180'
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 (8.3ms)
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.5ms)
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.9ms)
Started GET "/items/1" for 127.0.0.1 at 2016-03-10 21:13:02 +0200
Processing by ItemsController#show as HTML
Parameters: {"id"=>"1"}
[1m[35mItem Load (0.2ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 1]]
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/_buy.html.haml (5.3ms)
Rendered items/show.html.erb within layouts/application (6.6ms)
Completed 200 OK in 17ms (Views: 16.1ms | ActiveRecord: 0.2ms)
Started GET "/assets/scaffold.self-83b741db49389dc7cfdf85bf7537a0219cce48e085c4116afc83d55c9af47c78.css?body=1" for 127.0.0.1 at 2016-03-10 21:13:03 +0200
Started GET "/assets/application.self-e80e8f2318043e8af94dddc2adad5a4f09739a8ebb323b3ab31cd71d45fd9113.css?body=1" for 127.0.0.1 at 2016-03-10 21:13:03 +0200
Started GET "/assets/items.self-19a187bec6cdb96d6de80a61c16c857c613536adf9138476bd367db38d282635.js?body=1" for 127.0.0.1 at 2016-03-10 21:13:03 +0200
Started GET "/assets/application.self-8f06a73c35179188914ab50e057157639fce1401c1cdca640ac9cec33746fc5b.js?body=1" for 127.0.0.1 at 2016-03-10 21:13:03 +0200
Started GET "/assets/items.self-b60acab5af8d245ed2b3012f77d11d8d207d8eada27756badaf4ef05770d60f6.css?body=1" for 127.0.0.1 at 2016-03-10 21:13:03 +0200
Started POST "/simple_cart/cart/1" for 127.0.0.1 at 2016-03-10 21:13:04 +0200
Processing by SimpleCart::CartsController#add as HTML
Parameters: {"utf8"=>"✓", "authenticity_token"=>"mlv0aYLdPj/iW/KeJsx6PDpJ5bg0/uTnEnnHDtr8GPGj7bvbNf+8YuI/qOefAD4biBdL1IutmSw1CA1gLLCDog==", "qty"=>"1", "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-10 21:13:04 +0200
Processing by SimpleCart::CartsController#show as HTML
[1m[36mItem Load (0.1ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "1"]]
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml (3.9ms)
Completed 500 Internal Server Error in 6ms (ActiveRecord: 0.2ms)
ActionView::Template::Error (undefined method `cover' for #):
24: - @cart.books.each_with_index do |book, index|
25: %tr
26: %td
27: = image_tag(book.cover.url)
28: %td
29: = book.title
30: %td
activemodel (4.2.5.2) lib/active_model/attribute_methods.rb:433:in `method_missing'
/home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml:27:in `block (2 levels) in __home_leksster_ror__ubygarage__mazon_simple_cart_app_views_simple_cart_carts_show_html_haml___1185810571975847535_22902180'
/home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml:24:in `each'
/home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml:24:in `each_with_index'
/home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml:24:in `block in __home_leksster_ror__ubygarage__mazon_simple_cart_app_views_simple_cart_carts_show_html_haml___1185810571975847535_22902180'
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/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml:6:in `__home_leksster_ror__ubygarage__mazon_simple_cart_app_views_simple_cart_carts_show_html_haml___1185810571975847535_22902180'
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.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.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/template_error.html.erb within rescues/layout (21.4ms)
Started GET "/items" for 127.0.0.1 at 2016-03-10 21:13:19 +0200
Processing by ItemsController#index as HTML
[1m[36mItem Load (0.1ms)[0m [1mSELECT "items".* FROM "items"[0m
Rendered items/index.html.erb within layouts/application (1.5ms)
Completed 200 OK in 10ms (Views: 9.6ms | ActiveRecord: 0.1ms)
Started GET "/items" for 127.0.0.1 at 2016-03-10 21:13:19 +0200
Processing by ItemsController#index as HTML
[1m[35mItem Load (0.2ms)[0m SELECT "items".* FROM "items"
Rendered items/index.html.erb within layouts/application (2.9ms)
Completed 200 OK in 12ms (Views: 11.6ms | ActiveRecord: 0.2ms)
Started GET "/items/1" for 127.0.0.1 at 2016-03-10 21:13:21 +0200
Processing by ItemsController#show as HTML
Parameters: {"id"=>"1"}
[1m[36mItem Load (0.1ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", 1]]
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/_buy.html.haml (4.8ms)
Rendered items/show.html.erb within layouts/application (6.0ms)
Completed 200 OK in 15ms (Views: 14.2ms | ActiveRecord: 0.1ms)
Started POST "/simple_cart/cart/1" for 127.0.0.1 at 2016-03-10 21:14:18 +0200
Processing by SimpleCart::CartsController#add as HTML
Parameters: {"utf8"=>"✓", "authenticity_token"=>"N45fx2qcgwRYa2ma3It6m57TW211U6a1rXxEsjdB55gzPNhP1ixZRT1/IxDsakj4udplQKtHWknWv0XBnyH5rw==", "qty"=>"1", "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-10 21:14:18 +0200
Processing by SimpleCart::CartsController#show as HTML
[1m[35mItem Load (0.2ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "1"]]
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml (21.6ms)
Completed 500 Internal Server Error in 26ms (ActiveRecord: 0.6ms)
ActionView::Template::Error (undefined local variable or method `book' for #<#:0x007f976e519b38>):
28: %td
29: = item.name
30: %td
31: = number_to_currency(book.price)
32: %td
33: = number_field_tag book.id, "#{@cart.session[book.id.to_s]}", class: 'form-control', min: '1', max: '99', :id => book.id.to_s
34: %td
/home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml:31:in `block (2 levels) in __home_leksster_ror__ubygarage__mazon_simple_cart_app_views_simple_cart_carts_show_html_haml___1185810571975847535_70144183836420'
/home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml:24:in `each'
/home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml:24:in `each_with_index'
/home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml:24:in `block in __home_leksster_ror__ubygarage__mazon_simple_cart_app_views_simple_cart_carts_show_html_haml___1185810571975847535_70144183836420'
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/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml:6:in `__home_leksster_ror__ubygarage__mazon_simple_cart_app_views_simple_cart_carts_show_html_haml___1185810571975847535_70144183836420'
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.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 (3.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/template_error.html.erb within rescues/layout (21.8ms)
Started GET "/items/1" for 127.0.0.1 at 2016-03-10 21:15:13 +0200
Processing by ItemsController#show as HTML
Parameters: {"id"=>"1"}
[1m[35mItem Load (0.1ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 1]]
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/_buy.html.haml (3.9ms)
Rendered items/show.html.erb within layouts/application (4.9ms)
Completed 200 OK in 16ms (Views: 15.2ms | ActiveRecord: 0.1ms)
Started GET "/assets/items.self-b60acab5af8d245ed2b3012f77d11d8d207d8eada27756badaf4ef05770d60f6.css?body=1" for 127.0.0.1 at 2016-03-10 21:15:13 +0200
Started GET "/assets/scaffold.self-83b741db49389dc7cfdf85bf7537a0219cce48e085c4116afc83d55c9af47c78.css?body=1" for 127.0.0.1 at 2016-03-10 21:15:13 +0200
Started GET "/assets/application.self-e80e8f2318043e8af94dddc2adad5a4f09739a8ebb323b3ab31cd71d45fd9113.css?body=1" for 127.0.0.1 at 2016-03-10 21:15:13 +0200
Started GET "/assets/items.self-19a187bec6cdb96d6de80a61c16c857c613536adf9138476bd367db38d282635.js?body=1" for 127.0.0.1 at 2016-03-10 21:15:13 +0200
Started GET "/assets/application.self-8f06a73c35179188914ab50e057157639fce1401c1cdca640ac9cec33746fc5b.js?body=1" for 127.0.0.1 at 2016-03-10 21:15:13 +0200
Started POST "/simple_cart/cart/1" for 127.0.0.1 at 2016-03-10 21:15:14 +0200
Processing by SimpleCart::CartsController#add as HTML
Parameters: {"utf8"=>"✓", "authenticity_token"=>"JDQAin4HdAQ3pEBHKxk5/i6Q+ttqVP7+rEOrlZkWvyAghocCwreuRVKwCs0b+AudCZnE9rRAAgLXgKrmMXahFw==", "qty"=>"1", "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-10 21:15:14 +0200
Processing by SimpleCart::CartsController#show as HTML
[1m[36mItem Load (0.1ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "1"]]
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml (15.4ms)
Completed 500 Internal Server Error in 18ms (ActiveRecord: 0.1ms)
ActionView::Template::Error (undefined local variable or method `book' for #<#:0x007f976802ec50>):
30: %td
31: = number_to_currency(item.price)
32: %td
33: = number_field_tag item.id, "#{@cart.session[book.id.to_s]}", class: 'form-control', min: '1', max: '99', :id => item.id.to_s
34: %td
35: = number_to_currency(item.price * @cart.session[item.id.to_s])
36: %td
/home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml:33:in `block (2 levels) in __home_leksster_ror__ubygarage__mazon_simple_cart_app_views_simple_cart_carts_show_html_haml___1185810571975847535_70144130902020'
/home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml:24:in `each'
/home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml:24:in `each_with_index'
/home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml:24:in `block in __home_leksster_ror__ubygarage__mazon_simple_cart_app_views_simple_cart_carts_show_html_haml___1185810571975847535_70144130902020'
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/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml:6:in `__home_leksster_ror__ubygarage__mazon_simple_cart_app_views_simple_cart_carts_show_html_haml___1185810571975847535_70144130902020'
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 (6.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.5ms)
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/template_error.html.erb within rescues/layout (19.6ms)
Started GET "/simple_cart/cart" for 127.0.0.1 at 2016-03-10 21:15:37 +0200
Processing by SimpleCart::CartsController#show as HTML
[1m[36mItem Load (0.1ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "1"]]
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml (20.1ms)
Completed 500 Internal Server Error in 22ms (ActiveRecord: 0.2ms)
ActionView::Template::Error (undefined local variable or method `book' for #<#:0x007f976c32c070>):
34: %td
35: = number_to_currency(item.price * @cart.session[item.id.to_s])
36: %td
37: = link_to 'X', {:controller => 'carts', :action => 'destroy', :id => book.id.to_s}, class: 'btn btn-danger btn-xs', method: :delete
38: %tr
39: %td{colspan: 3}
40: %td
/home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml:37:in `block (2 levels) in __home_leksster_ror__ubygarage__mazon_simple_cart_app_views_simple_cart_carts_show_html_haml___1185810571975847535_70144165940720'
/home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml:24:in `each'
/home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml:24:in `each_with_index'
/home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml:24:in `block in __home_leksster_ror__ubygarage__mazon_simple_cart_app_views_simple_cart_carts_show_html_haml___1185810571975847535_70144165940720'
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/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml:6:in `__home_leksster_ror__ubygarage__mazon_simple_cart_app_views_simple_cart_carts_show_html_haml___1185810571975847535_70144165940720'
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.7ms)
Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (3.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.8ms)
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 (21.4ms)
Started GET "/items/1" for 127.0.0.1 at 2016-03-10 21:15:43 +0200
Processing by ItemsController#show as HTML
Parameters: {"id"=>"1"}
[1m[36mItem Load (0.1ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", 1]]
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/_buy.html.haml (5.6ms)
Rendered items/show.html.erb within layouts/application (7.5ms)
Completed 200 OK in 17ms (Views: 16.4ms | ActiveRecord: 0.1ms)
Started GET "/assets/items.self-b60acab5af8d245ed2b3012f77d11d8d207d8eada27756badaf4ef05770d60f6.css?body=1" for 127.0.0.1 at 2016-03-10 21:15:43 +0200
Started GET "/assets/application.self-e80e8f2318043e8af94dddc2adad5a4f09739a8ebb323b3ab31cd71d45fd9113.css?body=1" for 127.0.0.1 at 2016-03-10 21:15:43 +0200
Started GET "/assets/items.self-19a187bec6cdb96d6de80a61c16c857c613536adf9138476bd367db38d282635.js?body=1" for 127.0.0.1 at 2016-03-10 21:15:43 +0200
Started GET "/assets/scaffold.self-83b741db49389dc7cfdf85bf7537a0219cce48e085c4116afc83d55c9af47c78.css?body=1" for 127.0.0.1 at 2016-03-10 21:15:43 +0200
Started GET "/assets/application.self-8f06a73c35179188914ab50e057157639fce1401c1cdca640ac9cec33746fc5b.js?body=1" for 127.0.0.1 at 2016-03-10 21:15:43 +0200
Started POST "/simple_cart/cart/1" for 127.0.0.1 at 2016-03-10 21:15:45 +0200
Processing by SimpleCart::CartsController#add as HTML
Parameters: {"utf8"=>"✓", "authenticity_token"=>"/1MWrwNNwLmjgPSbrs4JHPvsEsQC0F9FjBoEwnAALUv74ZEnv/0a+MaUvhGeLzt/3OUs6dzEo7n32QWx2GAzfA==", "qty"=>"3", "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-10 21:15:45 +0200
Processing by SimpleCart::CartsController#show as HTML
[1m[35mItem Load (0.1ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "1"]]
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml (12.8ms)
Completed 500 Internal Server Error in 15ms (ActiveRecord: 0.1ms)
ActionView::Template::Error (undefined local variable or method `book' for #<#:0x007f976d5541a8>):
34: %td
35: = number_to_currency(item.price * @cart.session[item.id.to_s])
36: %td
37: = link_to 'X', {:controller => 'carts', :action => 'destroy', :id => book.id.to_s}, class: 'btn btn-danger btn-xs', method: :delete
38: %tr
39: %td{colspan: 3}
40: %td
/home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml:37:in `block (2 levels) in __home_leksster_ror__ubygarage__mazon_simple_cart_app_views_simple_cart_carts_show_html_haml___1185810571975847535_70144165940720'
/home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml:24:in `each'
/home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml:24:in `each_with_index'
/home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml:24:in `block in __home_leksster_ror__ubygarage__mazon_simple_cart_app_views_simple_cart_carts_show_html_haml___1185810571975847535_70144165940720'
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/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml:6:in `__home_leksster_ror__ubygarage__mazon_simple_cart_app_views_simple_cart_carts_show_html_haml___1185810571975847535_70144165940720'
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.3ms)
Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (5.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/template_error.html.erb within rescues/layout (22.9ms)
Started POST "/simple_cart/cart/1" for 127.0.0.1 at 2016-03-10 21:15:57 +0200
Processing by SimpleCart::CartsController#add as HTML
Parameters: {"utf8"=>"✓", "authenticity_token"=>"/1MWrwNNwLmjgPSbrs4JHPvsEsQC0F9FjBoEwnAALUv74ZEnv/0a+MaUvhGeLzt/3OUs6dzEo7n32QWx2GAzfA==", "qty"=>"3", "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-10 21:15:57 +0200
Processing by SimpleCart::CartsController#show as HTML
[1m[35mItem Load (0.1ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "1"]]
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml (12.3ms)
Completed 500 Internal Server Error in 15ms (ActiveRecord: 0.1ms)
ActionView::Template::Error (uninitialized constant Cart::Book):
42: %strong
43: Subtotal
44: %td
45: = number_to_currency(@cart.subtotal)
46: %td
47: .row
48: .col-xs-12.col-sm-2.col-md-2.col-lg-2
/home/leksster/ror/Rubygarage/Amazon/simple_cart/app/models/cart.rb:13:in `block in subtotal'
/home/leksster/ror/Rubygarage/Amazon/simple_cart/app/models/cart.rb:12:in `each'
/home/leksster/ror/Rubygarage/Amazon/simple_cart/app/models/cart.rb:12:in `subtotal'
/home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml:45:in `block in __home_leksster_ror__ubygarage__mazon_simple_cart_app_views_simple_cart_carts_show_html_haml___1185810571975847535_70144181503500'
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/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml:6:in `__home_leksster_ror__ubygarage__mazon_simple_cart_app_views_simple_cart_carts_show_html_haml___1185810571975847535_70144181503500'
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.5ms)
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.5ms)
Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (1.2ms)
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 (21.5ms)
Started GET "/simple_cart/cart" for 127.0.0.1 at 2016-03-10 21:16:47 +0200
Processing by SimpleCart::CartsController#show as HTML
[1m[35mItem Load (0.1ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "1"]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "1"]]
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml (16.1ms)
Completed 500 Internal Server Error in 21ms (ActiveRecord: 0.6ms)
ActionView::Template::Error (undefined local variable or method `root_path' for #<#:0x007f976e437af8>):
48: .col-xs-12.col-sm-2.col-md-2.col-lg-2
49: = link_to 'Empty cart', {:controller => 'carts', :action => 'clear'}, class: 'btn btn-primary btn-block', method: :post
50: .col-xs-12.col-sm-3.col-md-3.col-lg-2
51: = link_to 'Continue shopping', root_path, class: 'btn btn-primary btn-block'
52: .col-sm-1.col-sm-1.col-lg-2
53: .col-xs-12.col-sm-2.col-md-2.col-lg-2
54: = text_field_tag 'coupon', nil, {class: 'form-control', placeholder: "A2016 - 30%"}
/home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml:51:in `block in __home_leksster_ror__ubygarage__mazon_simple_cart_app_views_simple_cart_carts_show_html_haml___1185810571975847535_70144181503500'
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/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml:6:in `__home_leksster_ror__ubygarage__mazon_simple_cart_app_views_simple_cart_carts_show_html_haml___1185810571975847535_70144181503500'
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 (6.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.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/template_error.html.erb within rescues/layout (20.0ms)
Started POST "/simple_cart/cart/1" for 127.0.0.1 at 2016-03-10 21:16:54 +0200
Processing by SimpleCart::CartsController#add as HTML
Parameters: {"utf8"=>"✓", "authenticity_token"=>"/1MWrwNNwLmjgPSbrs4JHPvsEsQC0F9FjBoEwnAALUv74ZEnv/0a+MaUvhGeLzt/3OUs6dzEo7n32QWx2GAzfA==", "qty"=>"3", "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-10 21:16:54 +0200
Processing by SimpleCart::CartsController#show as HTML
[1m[36mItem Load (0.1ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "1"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "1"]]
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml (15.2ms)
Completed 500 Internal Server Error in 17ms (ActiveRecord: 0.1ms)
ActionView::Template::Error (undefined local variable or method `root_path' for #<#:0x007f97680c0ee8>):
48: .col-xs-12.col-sm-2.col-md-2.col-lg-2
49: = link_to 'Empty cart', {:controller => 'carts', :action => 'clear'}, class: 'btn btn-primary btn-block', method: :post
50: .col-xs-12.col-sm-3.col-md-3.col-lg-2
51: = link_to 'Continue shopping', root_path, class: 'btn btn-primary btn-block'
52: .col-sm-1.col-sm-1.col-lg-2
53: .col-xs-12.col-sm-2.col-md-2.col-lg-2
54: = text_field_tag 'coupon', nil, {class: 'form-control', placeholder: "A2016 - 30%"}
/home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml:51:in `block in __home_leksster_ror__ubygarage__mazon_simple_cart_app_views_simple_cart_carts_show_html_haml___1185810571975847535_70144181503500'
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/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml:6:in `__home_leksster_ror__ubygarage__mazon_simple_cart_app_views_simple_cart_carts_show_html_haml___1185810571975847535_70144181503500'
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 (13.1ms)
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 (1.2ms)
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 (25.7ms)
Started GET "/simple_cart/cart" for 127.0.0.1 at 2016-03-10 21:17:40 +0200
Processing by SimpleCart::CartsController#show as HTML
[1m[35mItem Load (0.1ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "1"]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "1"]]
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml (9.6ms)
Completed 200 OK in 13ms (Views: 11.8ms | ActiveRecord: 0.1ms)
Started PUT "/simple_cart/cart" for 127.0.0.1 at 2016-03-10 21:17:46 +0200
Processing by SimpleCart::CartsController#update as HTML
Parameters: {"utf8"=>"✓", "authenticity_token"=>"AC7+8gtThp8fXdtOo7s6g75901kjBn/CF7LXtT+d980EnHl6t+Nc3npJkcSTWgjgmXTtdP0Sgz5scdbGl/3p+g==", "1"=>"13", "coupon"=>"", "commit"=>"Update"}
Completed 500 Internal Server Error in 2ms (ActiveRecord: 0.0ms)
NameError (uninitialized constant Cart::Coupon):
/home/leksster/ror/Rubygarage/Amazon/simple_cart/app/models/cart.rb:58:in `discount'
/home/leksster/ror/Rubygarage/Amazon/simple_cart/app/models/cart.rb:54:in `update_books'
/home/leksster/ror/Rubygarage/Amazon/simple_cart/app/controllers/simple_cart/carts_controller.rb:28:in `update'
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 (5.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 (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 (1.0ms)
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.4ms)
Started GET "/simple_cart/cart?id=1" for 127.0.0.1 at 2016-03-10 21:17:51 +0200
Processing by SimpleCart::CartsController#show as HTML
Parameters: {"id"=>"1"}
[1m[36mItem Load (0.1ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "1"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "1"]]
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml (5.6ms)
Completed 200 OK in 9ms (Views: 8.1ms | ActiveRecord: 0.1ms)
Started GET "/simple_cart/cart?id=1" for 127.0.0.1 at 2016-03-10 21:17:53 +0200
Processing by SimpleCart::CartsController#show as HTML
Parameters: {"id"=>"1"}
[1m[35mItem Load (0.1ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "1"]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "1"]]
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml (5.7ms)
Completed 200 OK in 8ms (Views: 7.7ms | ActiveRecord: 0.1ms)
Started GET "/simple_cart/cart/clear" for 127.0.0.1 at 2016-03-10 21:18:00 +0200
ActionController::RoutingError (No route matches [GET] "/simple_cart/cart/clear"):
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.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/_trace.html.erb (1.1ms)
Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/routes/_route.html.erb (1.1ms)
Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/routes/_route.html.erb (0.3ms)
Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/routes/_table.html.erb (5.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 (1.5ms)
Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/rescues/routing_error.html.erb within rescues/layout (43.8ms)
Started GET "/simple_cart/cart?id=1" for 127.0.0.1 at 2016-03-10 21:18:14 +0200
Processing by SimpleCart::CartsController#show as HTML
Parameters: {"id"=>"1"}
[1m[36mItem Load (0.2ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "1"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "1"]]
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml (5.1ms)
Completed 200 OK in 7ms (Views: 6.8ms | ActiveRecord: 0.2ms)
Started GET "/simple_cart/cart/clear" for 127.0.0.1 at 2016-03-10 21:18:17 +0200
ActionController::RoutingError (No route matches [GET] "/simple_cart/cart/clear"):
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.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/_trace.html.erb (1.3ms)
Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/routes/_route.html.erb (1.0ms)
Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/routes/_route.html.erb (0.3ms)
Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/routes/_table.html.erb (1.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 (1.2ms)
Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/rescues/routing_error.html.erb within rescues/layout (23.9ms)
Started GET "/simple_cart/cart?id=1" for 127.0.0.1 at 2016-03-10 21:19:05 +0200
Processing by SimpleCart::CartsController#show as HTML
Parameters: {"id"=>"1"}
[1m[35mItem Load (0.2ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "1"]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "1"]]
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml (10.6ms)
Completed 200 OK in 17ms (Views: 14.9ms | ActiveRecord: 0.9ms)
Started GET "/simple_cart/cart/clear" for 127.0.0.1 at 2016-03-10 21:19:07 +0200
ActionController::RoutingError (No route matches [GET] "/simple_cart/cart/clear"):
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.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/_trace.html.erb (1.2ms)
Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/routes/_route.html.erb (1.0ms)
Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/routes/_route.html.erb (0.3ms)
Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/routes/_table.html.erb (1.5ms)
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.5ms)
Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/rescues/routing_error.html.erb within rescues/layout (25.6ms)
Started GET "/simple_cart/cart/clear" for 127.0.0.1 at 2016-03-10 21:20:03 +0200
ActionController::RoutingError (No route matches [GET] "/simple_cart/cart/clear"):
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.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/_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/routes/_route.html.erb (1.1ms)
Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/routes/_route.html.erb (0.5ms)
Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/routes/_table.html.erb (1.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 (1.6ms)
Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/rescues/routing_error.html.erb within rescues/layout (29.5ms)
Started GET "/simple_cart/cart/clear" for 127.0.0.1 at 2016-03-10 21:20:06 +0200
ActionController::RoutingError (No route matches [GET] "/simple_cart/cart/clear"):
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.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/_trace.html.erb (1.4ms)
Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/routes/_route.html.erb (1.1ms)
Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/routes/_route.html.erb (0.4ms)
Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/routes/_table.html.erb (1.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 (1.5ms)
Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/rescues/routing_error.html.erb within rescues/layout (24.8ms)
Started GET "/simple_cart/cart/clear" for 127.0.0.1 at 2016-03-10 21:20:17 +0200
ActionController::RoutingError (No route matches [GET] "/simple_cart/cart/clear"):
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.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/_trace.html.erb (1.7ms)
Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/routes/_route.html.erb (1.4ms)
Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/routes/_route.html.erb (0.4ms)
Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/routes/_table.html.erb (1.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 (1.2ms)
Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/rescues/routing_error.html.erb within rescues/layout (23.8ms)
Started GET "/simple_cart/cart?id=1" for 127.0.0.1 at 2016-03-10 21:21:00 +0200
Processing by SimpleCart::CartsController#show as HTML
Parameters: {"id"=>"1"}
[1m[36mItem Load (0.1ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "1"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "1"]]
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml (15.6ms)
Completed 200 OK in 18ms (Views: 17.4ms | ActiveRecord: 0.2ms)
Started GET "/simple_cart/cart/clear" for 127.0.0.1 at 2016-03-10 21:21:01 +0200
ActionController::RoutingError (No route matches [GET] "/simple_cart/cart/clear"):
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.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/_trace.html.erb (1.3ms)
Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/routes/_route.html.erb (0.9ms)
Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/routes/_route.html.erb (0.5ms)
Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/routes/_table.html.erb (1.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 (1.2ms)
Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/rescues/routing_error.html.erb within rescues/layout (24.6ms)
Started GET "/simple_cart/cart/" for 127.0.0.1 at 2016-03-10 21:21:05 +0200
Processing by SimpleCart::CartsController#show as HTML
[1m[35mItem Load (0.1ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "1"]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "1"]]
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml (8.6ms)
Completed 200 OK in 11ms (Views: 10.7ms | ActiveRecord: 0.1ms)
Started GET "/simple_cart/cart/clear" for 127.0.0.1 at 2016-03-10 21:21:10 +0200
ActionController::RoutingError (No route matches [GET] "/simple_cart/cart/clear"):
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.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/_trace.html.erb (1.0ms)
Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/routes/_route.html.erb (1.7ms)
Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/routes/_route.html.erb (0.5ms)
Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/routes/_table.html.erb (1.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 (1.6ms)
Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/rescues/routing_error.html.erb within rescues/layout (25.8ms)
Started GET "/simple_cart/cart/clear" for 127.0.0.1 at 2016-03-10 21:21:29 +0200
Processing by SimpleCart::CartsController#clear as HTML
Completed 500 Internal Server Error in 4ms (ActiveRecord: 0.0ms)
NameError (undefined local variable or method `root_path' for #):
/home/leksster/ror/Rubygarage/Amazon/simple_cart/app/controllers/simple_cart/carts_controller.rb:39:in `clear'
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: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 (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.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.7ms)
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.5ms)
Started GET "/simple_cart/cart/" for 127.0.0.1 at 2016-03-10 21:21:35 +0200
Processing by SimpleCart::CartsController#show as HTML
[1m[36mItem Load (0.2ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "1"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "1"]]
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml (10.6ms)
Completed 200 OK in 18ms (Views: 15.3ms | ActiveRecord: 0.6ms)
Started GET "/simple_cart/cart/clear" for 127.0.0.1 at 2016-03-10 21:21:37 +0200
Processing by SimpleCart::CartsController#clear as HTML
Completed 500 Internal Server Error in 3ms (ActiveRecord: 0.0ms)
NameError (undefined local variable or method `root_path' for #):
/home/leksster/ror/Rubygarage/Amazon/simple_cart/app/controllers/simple_cart/carts_controller.rb:39:in `clear'
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: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 (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 (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 (1.0ms)
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 "/simple_cart/cart/clear" for 127.0.0.1 at 2016-03-10 21:22:14 +0200
Processing by SimpleCart::CartsController#clear as HTML
Redirected to http://localhost:3000/
Completed 302 Found in 1ms (ActiveRecord: 0.0ms)
Started GET "/" for 127.0.0.1 at 2016-03-10 21:22:14 +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.0ms)
Completed 200 OK in 1ms (Views: 0.7ms | ActiveRecord: 0.0ms)
Started GET "/items" for 127.0.0.1 at 2016-03-10 21:22:17 +0200
Processing by ItemsController#index as HTML
[1m[35mItem Load (0.3ms)[0m SELECT "items".* FROM "items"
Rendered items/index.html.erb within layouts/application (5.1ms)
Completed 200 OK in 18ms (Views: 15.7ms | ActiveRecord: 0.5ms)
Started GET "/items" for 127.0.0.1 at 2016-03-10 21:22:17 +0200
Processing by ItemsController#index as HTML
[1m[36mItem Load (0.2ms)[0m [1mSELECT "items".* FROM "items"[0m
Rendered items/index.html.erb within layouts/application (3.9ms)
Completed 200 OK in 13ms (Views: 12.5ms | ActiveRecord: 0.2ms)
Started GET "/items/1" for 127.0.0.1 at 2016-03-10 21:22:19 +0200
Processing by ItemsController#show as HTML
Parameters: {"id"=>"1"}
[1m[35mItem Load (0.2ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 1]]
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/_buy.html.haml (5.1ms)
Rendered items/show.html.erb within layouts/application (6.6ms)
Completed 200 OK in 22ms (Views: 20.3ms | ActiveRecord: 0.2ms)
Started POST "/simple_cart/cart/1" for 127.0.0.1 at 2016-03-10 21:22:20 +0200
Processing by SimpleCart::CartsController#add as HTML
Parameters: {"utf8"=>"✓", "authenticity_token"=>"td/tX1el09GnT11chhdMrHRoSFf1mt/jEtdJeP+baDWxbWrX6xUJkMJbF9a29n7PU2F2eiuOIx9pFEgLV/t2Ag==", "qty"=>"1", "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-10 21:22:20 +0200
Processing by SimpleCart::CartsController#show as HTML
[1m[36mItem Load (0.2ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "1"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "1"]]
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml (8.6ms)
Completed 200 OK in 13ms (Views: 12.5ms | ActiveRecord: 0.2ms)
Started GET "/simple_cart/cart/clear" for 127.0.0.1 at 2016-03-10 21:22:24 +0200
Processing by SimpleCart::CartsController#clear as HTML
Redirected to http://localhost:3000/
Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
Started GET "/" for 127.0.0.1 at 2016-03-10 21:22:24 +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.1ms)
Completed 200 OK in 1ms (Views: 0.9ms | ActiveRecord: 0.0ms)
Started GET "/items" for 127.0.0.1 at 2016-03-10 21:22:27 +0200
Processing by ItemsController#index as HTML
[1m[35mItem Load (0.1ms)[0m SELECT "items".* FROM "items"
Rendered items/index.html.erb within layouts/application (1.5ms)
Completed 200 OK in 8ms (Views: 8.0ms | ActiveRecord: 0.1ms)
Started GET "/items" for 127.0.0.1 at 2016-03-10 21:22:27 +0200
Processing by ItemsController#index as HTML
[1m[36mItem Load (0.1ms)[0m [1mSELECT "items".* FROM "items"[0m
Rendered items/index.html.erb within layouts/application (1.5ms)
Completed 200 OK in 12ms (Views: 12.0ms | ActiveRecord: 0.1ms)
Started GET "/items/3" for 127.0.0.1 at 2016-03-10 21:22:29 +0200
Processing by ItemsController#show as HTML
Parameters: {"id"=>"3"}
[1m[35mItem Load (0.1ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 3]]
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/_buy.html.haml (6.3ms)
Rendered items/show.html.erb within layouts/application (8.0ms)
Completed 200 OK in 18ms (Views: 16.9ms | ActiveRecord: 0.1ms)
Started POST "/simple_cart/cart/3" for 127.0.0.1 at 2016-03-10 21:22:30 +0200
Processing by SimpleCart::CartsController#add as HTML
Parameters: {"utf8"=>"✓", "authenticity_token"=>"b8l/5q//B7Q5YGgjMb32nPUyjt124KpVH5AAQeyEFN1re/huE0/d9Vx0IqkBXMT/0juw8Kj0VqlkUwEyROQK6g==", "qty"=>"1", "commit"=>"Add to cart", "item_id"=>"3"}
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-10 21:22:30 +0200
Processing by SimpleCart::CartsController#show as HTML
[1m[36mItem Load (0.1ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", 3]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "3"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "3"]]
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml (6.4ms)
Completed 200 OK in 9ms (Views: 8.2ms | ActiveRecord: 0.1ms)
Started GET "/simple_cart/cart/clear" for 127.0.0.1 at 2016-03-10 21:22:32 +0200
Processing by SimpleCart::CartsController#clear as HTML
Redirected to http://localhost:3000/
Completed 302 Found in 1ms (ActiveRecord: 0.0ms)
Started GET "/" for 127.0.0.1 at 2016-03-10 21:22:32 +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.0ms)
Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms)
Started GET "/simple_cart/cart" for 127.0.0.1 at 2016-03-10 21:22:35 +0200
Processing by SimpleCart::CartsController#show as HTML
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml (3.6ms)
Completed 200 OK in 6ms (Views: 5.6ms | ActiveRecord: 0.0ms)
Started POST "/simple_cart/cart/3" for 127.0.0.1 at 2016-03-10 21:23:51 +0200
Processing by SimpleCart::CartsController#add as HTML
Parameters: {"utf8"=>"✓", "authenticity_token"=>"b8l/5q//B7Q5YGgjMb32nPUyjt124KpVH5AAQeyEFN1re/huE0/d9Vx0IqkBXMT/0juw8Kj0VqlkUwEyROQK6g==", "qty"=>"5", "commit"=>"Add to cart", "item_id"=>"3"}
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-10 21:23:51 +0200
Processing by SimpleCart::CartsController#show as HTML
[1m[35mItem Load (0.1ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 3]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "3"]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "3"]]
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml (7.0ms)
Completed 200 OK in 9ms (Views: 8.7ms | ActiveRecord: 0.2ms)
Started GET "/simple_cart/cart" for 127.0.0.1 at 2016-03-10 21:25:52 +0200
Processing by SimpleCart::CartsController#show as HTML
[1m[36mItem Load (0.2ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", 3]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "3"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "3"]]
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml (7.0ms)
Completed 200 OK in 10ms (Views: 9.0ms | ActiveRecord: 0.2ms)
Started GET "/items/3" for 127.0.0.1 at 2016-03-10 21:26:00 +0200
Processing by ItemsController#show as HTML
Parameters: {"id"=>"3"}
[1m[35mItem Load (0.1ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 3]]
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/_buy.html.haml (6.4ms)
Rendered items/show.html.erb within layouts/application (7.9ms)
Completed 200 OK in 17ms (Views: 16.1ms | ActiveRecord: 0.1ms)
Started GET "/assets/scaffold.self-83b741db49389dc7cfdf85bf7537a0219cce48e085c4116afc83d55c9af47c78.css?body=1" for 127.0.0.1 at 2016-03-10 21:26:01 +0200
Started GET "/assets/items.self-b60acab5af8d245ed2b3012f77d11d8d207d8eada27756badaf4ef05770d60f6.css?body=1" for 127.0.0.1 at 2016-03-10 21:26:01 +0200
Started GET "/assets/application.self-e80e8f2318043e8af94dddc2adad5a4f09739a8ebb323b3ab31cd71d45fd9113.css?body=1" for 127.0.0.1 at 2016-03-10 21:26:01 +0200
Started GET "/assets/application.self-8f06a73c35179188914ab50e057157639fce1401c1cdca640ac9cec33746fc5b.js?body=1" for 127.0.0.1 at 2016-03-10 21:26:01 +0200
Started GET "/assets/items.self-19a187bec6cdb96d6de80a61c16c857c613536adf9138476bd367db38d282635.js?body=1" for 127.0.0.1 at 2016-03-10 21:26:01 +0200
Started GET "/items/3" for 127.0.0.1 at 2016-03-10 21:26:14 +0200
Processing by ItemsController#show as HTML
Parameters: {"id"=>"3"}
[1m[36mItem Load (0.1ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", 3]]
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/_buy.html.haml (7.5ms)
Rendered items/show.html.erb within layouts/application (8.6ms)
Completed 500 Internal Server Error in 11ms (ActiveRecord: 0.1ms)
ActionView::Template::Error (undefined method `constantize' for #):
3: = number_to_currency(item.price)
4: .form-group.integer.required.one-line
5: = number_field_tag :qty, '1', class: 'form-control one-line', value: '1', min: '1', max: '99'
6: = item.constantize
7: = f.submit 'Add to cart', class: 'btn btn-default btn btn-primary'
app/views/items/show.html.erb:21:in `_app_views_items_show_html_erb__3084982005226488030_70144182185200'
Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/rescues/_source.erb (8.4ms)
Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (2.8ms)
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/template_error.html.erb within rescues/layout (21.5ms)
Started GET "/items/3" for 127.0.0.1 at 2016-03-10 21:26:30 +0200
Processing by ItemsController#show as HTML
Parameters: {"id"=>"3"}
[1m[35mItem Load (0.1ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 3]]
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/_buy.html.haml (6.9ms)
Rendered items/show.html.erb within layouts/application (8.6ms)
Completed 200 OK in 18ms (Views: 17.1ms | ActiveRecord: 0.1ms)
Started GET "/items/3" for 127.0.0.1 at 2016-03-10 21:26:32 +0200
Processing by ItemsController#show as HTML
Parameters: {"id"=>"3"}
[1m[36mItem Load (0.1ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", 3]]
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/_buy.html.haml (4.6ms)
Rendered items/show.html.erb within layouts/application (6.2ms)
Completed 200 OK in 16ms (Views: 14.8ms | ActiveRecord: 0.1ms)
Started GET "/assets/items.self-b60acab5af8d245ed2b3012f77d11d8d207d8eada27756badaf4ef05770d60f6.css?body=1" for 127.0.0.1 at 2016-03-10 21:26:32 +0200
Started GET "/assets/scaffold.self-83b741db49389dc7cfdf85bf7537a0219cce48e085c4116afc83d55c9af47c78.css?body=1" for 127.0.0.1 at 2016-03-10 21:26:32 +0200
Started GET "/assets/application.self-8f06a73c35179188914ab50e057157639fce1401c1cdca640ac9cec33746fc5b.js?body=1" for 127.0.0.1 at 2016-03-10 21:26:32 +0200
Started GET "/assets/items.self-19a187bec6cdb96d6de80a61c16c857c613536adf9138476bd367db38d282635.js?body=1" for 127.0.0.1 at 2016-03-10 21:26:32 +0200
Started GET "/assets/application.self-e80e8f2318043e8af94dddc2adad5a4f09739a8ebb323b3ab31cd71d45fd9113.css?body=1" for 127.0.0.1 at 2016-03-10 21:26:32 +0200
Started GET "/items/3" for 127.0.0.1 at 2016-03-10 21:26:38 +0200
Processing by ItemsController#show as HTML
Parameters: {"id"=>"3"}
[1m[35mItem Load (0.1ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 3]]
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/_buy.html.haml (5.3ms)
Rendered items/show.html.erb within layouts/application (6.7ms)
Completed 200 OK in 18ms (Views: 17.0ms | ActiveRecord: 0.1ms)
Started GET "/assets/items.self-b60acab5af8d245ed2b3012f77d11d8d207d8eada27756badaf4ef05770d60f6.css?body=1" for 127.0.0.1 at 2016-03-10 21:26:38 +0200
Started GET "/assets/items.self-19a187bec6cdb96d6de80a61c16c857c613536adf9138476bd367db38d282635.js?body=1" for 127.0.0.1 at 2016-03-10 21:26:38 +0200
Started GET "/assets/application.self-e80e8f2318043e8af94dddc2adad5a4f09739a8ebb323b3ab31cd71d45fd9113.css?body=1" for 127.0.0.1 at 2016-03-10 21:26:38 +0200
Started GET "/assets/application.self-8f06a73c35179188914ab50e057157639fce1401c1cdca640ac9cec33746fc5b.js?body=1" for 127.0.0.1 at 2016-03-10 21:26:38 +0200
Started GET "/assets/scaffold.self-83b741db49389dc7cfdf85bf7537a0219cce48e085c4116afc83d55c9af47c78.css?body=1" for 127.0.0.1 at 2016-03-10 21:26:38 +0200
Started GET "/items/3" for 127.0.0.1 at 2016-03-10 21:26:46 +0200
Processing by ItemsController#show as HTML
Parameters: {"id"=>"3"}
[1m[36mItem Load (0.1ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", 3]]
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/_buy.html.haml (8.4ms)
Rendered items/show.html.erb within layouts/application (9.8ms)
Completed 500 Internal Server Error in 13ms (ActiveRecord: 0.1ms)
ActionView::Template::Error (undefined method `constantize' for #):
3: = number_to_currency(item.price)
4: .form-group.integer.required.one-line
5: = number_field_tag :qty, '1', class: 'form-control one-line', value: '1', min: '1', max: '99'
6: = item.class.constantize
7: = f.submit 'Add to cart', class: 'btn btn-default btn btn-primary'
app/views/items/show.html.erb:21:in `_app_views_items_show_html_erb__3084982005226488030_70144182185200'
Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/rescues/_source.erb (8.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 (2.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 (0.8ms)
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 (21.8ms)
Started GET "/items/3" for 127.0.0.1 at 2016-03-10 21:30:55 +0200
Processing by ItemsController#show as HTML
Parameters: {"id"=>"3"}
[1m[35mItem Load (0.2ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 3]]
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/_buy.html.haml (5.3ms)
Rendered items/show.html.erb within layouts/application (6.6ms)
Completed 200 OK in 23ms (Views: 17.0ms | ActiveRecord: 0.6ms)
Started POST "/simple_cart/cart/3" for 127.0.0.1 at 2016-03-10 21:30:57 +0200
Processing by SimpleCart::CartsController#add as HTML
Parameters: {"utf8"=>"✓", "authenticity_token"=>"3dGSDLq9OooIbIcGrMQ0B0nKfagWrU/89Y6NZiukzlzZYxWEBg3gy214zYycJQZkbsNDhci5swCOTYwVg8TQaw==", "qty"=>"3", "item"=>"#", "commit"=>"Add to cart", "item_id"=>"3"}
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-10 21:30:57 +0200
Processing by SimpleCart::CartsController#show as HTML
[1m[36mItem Load (0.1ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", 3]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "3"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "3"]]
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml within layouts/application (6.8ms)
Completed 200 OK in 18ms (Views: 17.0ms | ActiveRecord: 0.1ms)
Started POST "/simple_cart/cart/3" for 127.0.0.1 at 2016-03-10 21:31:24 +0200
Processing by SimpleCart::CartsController#add as HTML
Parameters: {"utf8"=>"✓", "authenticity_token"=>"3dGSDLq9OooIbIcGrMQ0B0nKfagWrU/89Y6NZiukzlzZYxWEBg3gy214zYycJQZkbsNDhci5swCOTYwVg8TQaw==", "qty"=>"3", "item"=>"#", "commit"=>"Add to cart", "item_id"=>"3"}
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-10 21:31:24 +0200
Processing by SimpleCart::CartsController#show as HTML
[1m[35mItem Load (0.1ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 3]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "3"]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "3"]]
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml within layouts/application (6.6ms)
Completed 200 OK in 16ms (Views: 15.7ms | ActiveRecord: 0.1ms)
Started GET "/items/3" for 127.0.0.1 at 2016-03-10 21:31:34 +0200
Processing by ItemsController#show as HTML
Parameters: {"id"=>"3"}
[1m[36mItem Load (0.1ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", 3]]
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/_buy.html.haml (9.2ms)
Rendered items/show.html.erb within layouts/application (11.0ms)
Completed 200 OK in 18ms (Views: 17.5ms | ActiveRecord: 0.1ms)
Started GET "/assets/items.self-b60acab5af8d245ed2b3012f77d11d8d207d8eada27756badaf4ef05770d60f6.css?body=1" for 127.0.0.1 at 2016-03-10 21:31:35 +0200
Started GET "/assets/application.self-8f06a73c35179188914ab50e057157639fce1401c1cdca640ac9cec33746fc5b.js?body=1" for 127.0.0.1 at 2016-03-10 21:31:35 +0200
Started GET "/assets/application.self-e80e8f2318043e8af94dddc2adad5a4f09739a8ebb323b3ab31cd71d45fd9113.css?body=1" for 127.0.0.1 at 2016-03-10 21:31:35 +0200
Started GET "/assets/items.self-19a187bec6cdb96d6de80a61c16c857c613536adf9138476bd367db38d282635.js?body=1" for 127.0.0.1 at 2016-03-10 21:31:35 +0200
Started GET "/assets/scaffold.self-83b741db49389dc7cfdf85bf7537a0219cce48e085c4116afc83d55c9af47c78.css?body=1" for 127.0.0.1 at 2016-03-10 21:31:35 +0200
Started POST "/simple_cart/cart/3" for 127.0.0.1 at 2016-03-10 21:31:36 +0200
Processing by SimpleCart::CartsController#add as HTML
Parameters: {"utf8"=>"✓", "authenticity_token"=>"GnelT/ZBCiTnTwmTxwEfYnZqGG+TnRkRfnyrqhCQijsexSLHSvHQZYJbQxn34C0BUWMmQk2J5e0Fv6rZuPCUDA==", "qty"=>"1", "item"=>"Item", "commit"=>"Add to cart", "item_id"=>"3"}
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-10 21:31:36 +0200
Processing by SimpleCart::CartsController#show as HTML
[1m[35mItem Load (0.1ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 3]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "3"]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "3"]]
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml within layouts/application (6.6ms)
Completed 200 OK in 16ms (Views: 15.5ms | ActiveRecord: 0.1ms)
Started GET "/simple_cart/cart/clear" for 127.0.0.1 at 2016-03-10 21:33:11 +0200
Processing by SimpleCart::CartsController#clear as HTML
Redirected to http://localhost:3000/
Completed 302 Found in 1ms (ActiveRecord: 0.0ms)
Started GET "/" for 127.0.0.1 at 2016-03-10 21:33:11 +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.0ms)
Completed 200 OK in 1ms (Views: 0.8ms | ActiveRecord: 0.0ms)
Started GET "/items" for 127.0.0.1 at 2016-03-10 21:33:13 +0200
Processing by ItemsController#index as HTML
[1m[36mItem Load (0.4ms)[0m [1mSELECT "items".* FROM "items"[0m
Rendered items/index.html.erb within layouts/application (6.5ms)
Completed 200 OK in 20ms (Views: 18.1ms | ActiveRecord: 0.7ms)
Started GET "/items/2" for 127.0.0.1 at 2016-03-10 21:33:15 +0200
Processing by ItemsController#show as HTML
Parameters: {"id"=>"2"}
[1m[35mItem Load (0.2ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 2]]
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/_buy.html.haml (6.0ms)
Rendered items/show.html.erb within layouts/application (7.4ms)
Completed 200 OK in 17ms (Views: 15.6ms | ActiveRecord: 0.2ms)
Started POST "/simple_cart/cart/2" for 127.0.0.1 at 2016-03-10 21:33:18 +0200
Processing by SimpleCart::CartsController#add as HTML
Parameters: {"utf8"=>"✓", "authenticity_token"=>"Cf8XLMtJj9LEqv089nzB9JKNlso6aSF8FLtGOFfRhS4NTZCkd/lVk6G+t7bGnfOXtYSo5+R93YBveEdL/7GbGQ==", "qty"=>"2", "item"=>"Item", "commit"=>"Add to cart", "item_id"=>"2"}
Completed 500 Internal Server Error in 2ms (ActiveRecord: 0.0ms)
NoMethodError (undefined method `add_item' for #):
/home/leksster/ror/Rubygarage/Amazon/simple_cart/app/controllers/simple_cart/carts_controller.rb:23: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 (5.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 (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 (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 (19.2ms)
Started GET "/items" for 127.0.0.1 at 2016-03-10 21:34:45 +0200
Processing by ItemsController#index as HTML
[1m[36mItem Load (0.3ms)[0m [1mSELECT "items".* FROM "items"[0m
Rendered items/index.html.erb within layouts/application (5.9ms)
Completed 200 OK in 19ms (Views: 17.0ms | ActiveRecord: 0.5ms)
Started GET "/items" for 127.0.0.1 at 2016-03-10 21:34:45 +0200
Processing by ItemsController#index as HTML
[1m[35mItem Load (0.2ms)[0m SELECT "items".* FROM "items"
Rendered items/index.html.erb within layouts/application (2.4ms)
Completed 200 OK in 21ms (Views: 20.1ms | ActiveRecord: 0.2ms)
Started GET "/items/1" for 127.0.0.1 at 2016-03-10 21:34:46 +0200
Processing by ItemsController#show as HTML
Parameters: {"id"=>"1"}
[1m[36mItem Load (0.2ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", 1]]
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/_buy.html.haml (4.2ms)
Rendered items/show.html.erb within layouts/application (7.4ms)
Completed 200 OK in 18ms (Views: 16.9ms | ActiveRecord: 0.2ms)
Started POST "/simple_cart/cart/1" for 127.0.0.1 at 2016-03-10 21:34:48 +0200
Processing by SimpleCart::CartsController#add as HTML
Parameters: {"utf8"=>"✓", "authenticity_token"=>"alrQmQtxf+Quo+KIbxjxFzoOCVJPJpTkg/i3mEtHLFtu6FcRt8GlpUu3qAJf+cN0HQc3f5EyaBj4O7br4ycybA==", "qty"=>"1", "item"=>"Item", "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-10 21:34:48 +0200
Processing by SimpleCart::CartsController#show as HTML
[1m[35mItem Load (0.1ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "1"]]
[1m[35mCACHE (0.1ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "1"]]
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml within layouts/application (7.1ms)
Completed 200 OK in 19ms (Views: 18.1ms | ActiveRecord: 0.2ms)
Started GET "/simple_cart/cart" for 127.0.0.1 at 2016-03-10 21:35:20 +0200
Processing by SimpleCart::CartsController#show as HTML
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml (1.1ms)
Completed 500 Internal Server Error in 7ms (ActiveRecord: 0.0ms)
ActionView::Template::Error (undefined method `find' for nil:NilClass):
4: .thumbnail
5: .caption-full
6: = form_tag url_for(:controller => 'carts', :action => 'update'), method: :put do
7: - if @cart.items.nil?
8: empty
9: - else
10: %table.table.table-hover
/home/leksster/ror/Rubygarage/Amazon/simple_cart/app/models/cart.rb:22:in `items'
/home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml:7:in `block in __home_leksster_ror__ubygarage__mazon_simple_cart_app_views_simple_cart_carts_show_html_haml___1185810571975847535_70144132257780'
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/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml:6:in `__home_leksster_ror__ubygarage__mazon_simple_cart_app_views_simple_cart_carts_show_html_haml___1185810571975847535_70144132257780'
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 (8.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 (3.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/template_error.html.erb within rescues/layout (21.8ms)
Started POST "/simple_cart/cart/1" for 127.0.0.1 at 2016-03-10 21:35:38 +0200
Processing by SimpleCart::CartsController#add as HTML
Parameters: {"utf8"=>"✓", "authenticity_token"=>"alrQmQtxf+Quo+KIbxjxFzoOCVJPJpTkg/i3mEtHLFtu6FcRt8GlpUu3qAJf+cN0HQc3f5EyaBj4O7br4ycybA==", "qty"=>"1", "item"=>"Item", "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-10 21:35:38 +0200
Processing by SimpleCart::CartsController#show as HTML
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml (1.2ms)
Completed 500 Internal Server Error in 4ms (ActiveRecord: 0.0ms)
ActionView::Template::Error (undefined method `find' for nil:NilClass):
4: .thumbnail
5: .caption-full
6: = form_tag url_for(:controller => 'carts', :action => 'update'), method: :put do
7: - if @cart.items.nil?
8: empty
9: - else
10: %table.table.table-hover
/home/leksster/ror/Rubygarage/Amazon/simple_cart/app/models/cart.rb:22:in `items'
/home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml:7:in `block in __home_leksster_ror__ubygarage__mazon_simple_cart_app_views_simple_cart_carts_show_html_haml___1185810571975847535_70144132257780'
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/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml:6:in `__home_leksster_ror__ubygarage__mazon_simple_cart_app_views_simple_cart_carts_show_html_haml___1185810571975847535_70144132257780'
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.3ms)
Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (2.8ms)
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/template_error.html.erb within rescues/layout (21.6ms)
Started GET "/items" for 127.0.0.1 at 2016-03-10 21:37:11 +0200
Processing by ItemsController#index as HTML
[1m[36mItem Load (0.3ms)[0m [1mSELECT "items".* FROM "items"[0m
Rendered items/index.html.erb within layouts/application (16.1ms)
Completed 200 OK in 29ms (Views: 27.8ms | ActiveRecord: 0.7ms)
Started GET "/items/2" for 127.0.0.1 at 2016-03-10 21:37:12 +0200
Processing by ItemsController#show as HTML
Parameters: {"id"=>"2"}
[1m[35mItem Load (0.2ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 2]]
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/_buy.html.haml (9.1ms)
Rendered items/show.html.erb within layouts/application (10.9ms)
Completed 500 Internal Server Error in 14ms (ActiveRecord: 0.2ms)
ActionView::Template::Error (undefined method `constantize' for #):
4: .form-group.integer.required.one-line
5: = number_field_tag :qty, '1', class: 'form-control one-line', value: '1', min: '1', max: '99'
6: = hidden_field_tag(:item, :klass, :value => item.class)
7: = item.class.constantize.first
8: = f.submit 'Add to cart', class: 'btn btn-default btn btn-primary'
app/views/items/show.html.erb:21:in `_app_views_items_show_html_erb__3084982005226488030_70144182185200'
Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/rescues/_source.erb (8.3ms)
Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (3.0ms)
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.4ms)
Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/rescues/template_error.html.erb within rescues/layout (23.0ms)
Started GET "/items/2" for 127.0.0.1 at 2016-03-10 21:37:40 +0200
Processing by ItemsController#show as HTML
Parameters: {"id"=>"2"}
[1m[36mItem Load (0.1ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", 2]]
[1m[35mItem Load (0.3ms)[0m SELECT "items".* FROM "items" ORDER BY "items"."id" ASC LIMIT 1
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/_buy.html.haml (9.3ms)
Rendered items/show.html.erb within layouts/application (10.8ms)
Completed 200 OK in 26ms (Views: 25.3ms | ActiveRecord: 0.4ms)
Started GET "/items/2" for 127.0.0.1 at 2016-03-10 21:37:56 +0200
Processing by ItemsController#show as HTML
Parameters: {"id"=>"2"}
[1m[36mItem Load (0.1ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", 2]]
[1m[35mItem Load (0.2ms)[0m SELECT "items".* FROM "items" ORDER BY "items"."id" ASC LIMIT 1
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/_buy.html.haml (9.1ms)
Rendered items/show.html.erb within layouts/application (10.9ms)
Completed 200 OK in 22ms (Views: 20.5ms | ActiveRecord: 0.3ms)
Started GET "/items/2" for 127.0.0.1 at 2016-03-10 21:37:58 +0200
Processing by ItemsController#show as HTML
Parameters: {"id"=>"2"}
[1m[36mItem Load (0.1ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", 2]]
[1m[35mItem Load (0.2ms)[0m SELECT "items".* FROM "items" ORDER BY "items"."id" ASC LIMIT 1
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/_buy.html.haml (5.7ms)
Rendered items/show.html.erb within layouts/application (7.5ms)
Completed 200 OK in 18ms (Views: 17.2ms | ActiveRecord: 0.3ms)
Started POST "/simple_cart/cart/2" for 127.0.0.1 at 2016-03-10 21:38:31 +0200
Processing by SimpleCart::CartsController#add as HTML
Parameters: {"utf8"=>"✓", "authenticity_token"=>"ngW5hej8Wsac8g32se5beyiv+S8VJX6/x7dihpF3kGaatz4NVEyAh/nmR3yBD2kYD6bHAssxgkO8dGP1OReOUQ==", "qty"=>"1", "item"=>"Item", "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-10 21:38:31 +0200
Processing by SimpleCart::CartsController#show as HTML
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml (1.4ms)
Completed 500 Internal Server Error in 5ms (ActiveRecord: 0.0ms)
ActionView::Template::Error (undefined method `constantize' for nil:NilClass):
4: .thumbnail
5: .caption-full
6: = form_tag url_for(:controller => 'carts', :action => 'update'), method: :put do
7: - if @cart.items.nil?
8: empty
9: - else
10: %table.table.table-hover
/home/leksster/ror/Rubygarage/Amazon/simple_cart/app/models/cart.rb:22:in `items'
/home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml:7:in `block in __home_leksster_ror__ubygarage__mazon_simple_cart_app_views_simple_cart_carts_show_html_haml___1185810571975847535_70144132257780'
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/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml:6:in `__home_leksster_ror__ubygarage__mazon_simple_cart_app_views_simple_cart_carts_show_html_haml___1185810571975847535_70144132257780'
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 (6.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 (3.5ms)
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/template_error.html.erb within rescues/layout (22.2ms)
Started GET "/items/2" for 127.0.0.1 at 2016-03-10 21:47:28 +0200
Processing by ItemsController#show as HTML
Parameters: {"id"=>"2"}
[1m[36mItem Load (0.2ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", 2]]
[1m[35mItem Load (0.2ms)[0m SELECT "items".* FROM "items" ORDER BY "items"."id" ASC LIMIT 1
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/_buy.html.haml (6.5ms)
Rendered items/show.html.erb within layouts/application (7.9ms)
Completed 200 OK in 44ms (Views: 36.8ms | ActiveRecord: 0.8ms)
Started POST "/simple_cart/cart/2" for 127.0.0.1 at 2016-03-10 21:47:30 +0200
Processing by SimpleCart::CartsController#add as HTML
Parameters: {"utf8"=>"✓", "authenticity_token"=>"nzfyFyOEKUzF7P7jrnQeCplGuQpJ730vJCDmlxa9UN2bhXWfnzTzDaD4tGmelSxpvk+HJ5f7gdNf4+fkvt1O6g==", "qty"=>"1", "item"=>"Item", "commit"=>"Add to cart", "item_id"=>"2"}
Redirected to http://localhost:3000/simple_cart/cart
Completed 302 Found in 4ms (ActiveRecord: 0.0ms)
Started GET "/simple_cart/cart" for 127.0.0.1 at 2016-03-10 21:47:30 +0200
Processing by SimpleCart::CartsController#show as HTML
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml within layouts/application (1.3ms)
Completed 500 Internal Server Error in 6ms (ActiveRecord: 0.0ms)
ActionView::Template::Error (undefined method `find' for nil:NilClass):
4: .thumbnail
5: .caption-full
6: = form_tag url_for(:controller => 'carts', :action => 'update'), method: :put do
7: - if @cart.items.nil?
8: empty
9: - else
10: %table.table.table-hover
/home/leksster/ror/Rubygarage/Amazon/simple_cart/app/models/cart.rb:22:in `items'
/home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml:7:in `block in __home_leksster_ror__ubygarage__mazon_simple_cart_app_views_simple_cart_carts_show_html_haml___1185810571975847535_70144132257780'
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/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml:6:in `__home_leksster_ror__ubygarage__mazon_simple_cart_app_views_simple_cart_carts_show_html_haml___1185810571975847535_70144132257780'
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.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 (3.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 (1.4ms)
Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/rescues/template_error.html.erb within rescues/layout (23.0ms)
Started GET "/items/2" for 127.0.0.1 at 2016-03-10 21:48:25 +0200
[1m[36mActiveRecord::SchemaMigration Load (0.2ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
Processing by ItemsController#show as HTML
Parameters: {"id"=>"2"}
[1m[35mItem Load (0.2ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 2]]
[1m[36mItem Load (0.1ms)[0m [1mSELECT "items".* FROM "items" ORDER BY "items"."id" ASC LIMIT 1[0m
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/_buy.html.haml (21.1ms)
Rendered items/show.html.erb within layouts/application (32.6ms)
Completed 200 OK in 213ms (Views: 193.9ms | ActiveRecord: 0.7ms)
Started POST "/simple_cart/cart/2" for 127.0.0.1 at 2016-03-10 21:48:27 +0200
Processing by SimpleCart::CartsController#add as HTML
Parameters: {"utf8"=>"✓", "authenticity_token"=>"+2GUykfCzZVKmU29WgtUJbBWT8N/aIym0H7B3A+LBnP/0xNC+3IX1C+NBzdq6mZGl19x7qF8cFqrvcCvp+sYRA==", "qty"=>"1", "item"=>"Item", "commit"=>"Add to cart", "item_id"=>"2"}
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-10 21:48:27 +0200
Processing by SimpleCart::CartsController#show as HTML
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml within layouts/application (9.6ms)
Completed 500 Internal Server Error in 15ms (ActiveRecord: 0.0ms)
ActionView::Template::Error (undefined method `find' for "Item":String):
4: .thumbnail
5: .caption-full
6: = form_tag url_for(:controller => 'carts', :action => 'update'), method: :put do
7: - if @cart.items.nil?
8: empty
9: - else
10: %table.table.table-hover
/home/leksster/ror/Rubygarage/Amazon/simple_cart/app/models/cart.rb:22:in `items'
/home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml:7:in `block in __home_leksster_ror__ubygarage__mazon_simple_cart_app_views_simple_cart_carts_show_html_haml___756461543218422856_70056907576740'
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/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml:6:in `__home_leksster_ror__ubygarage__mazon_simple_cart_app_views_simple_cart_carts_show_html_haml___756461543218422856_70056907576740'
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.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.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 (1.1ms)
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 (21.7ms)
Started GET "/simple_cart/cart" for 127.0.0.1 at 2016-03-10 21:49:28 +0200
Processing by SimpleCart::CartsController#show as HTML
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml within layouts/application (1.3ms)
Completed 500 Internal Server Error in 4ms (ActiveRecord: 0.0ms)
ActionView::Template::Error (undefined method `find' for "Item":String):
4: .thumbnail
5: .caption-full
6: = form_tag url_for(:controller => 'carts', :action => 'update'), method: :put do
7: - if @cart.items.nil?
8: empty
9: - else
10: %table.table.table-hover
/home/leksster/ror/Rubygarage/Amazon/simple_cart/app/models/cart.rb:22:in `items'
/home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml:7:in `block in __home_leksster_ror__ubygarage__mazon_simple_cart_app_views_simple_cart_carts_show_html_haml___756461543218422856_70056907576740'
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/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml:6:in `__home_leksster_ror__ubygarage__mazon_simple_cart_app_views_simple_cart_carts_show_html_haml___756461543218422856_70056907576740'
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 (12.4ms)
Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (2.8ms)
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/template_error.html.erb within rescues/layout (25.8ms)
Started GET "/items/2" for 127.0.0.1 at 2016-03-10 21:49:35 +0200
[1m[36mActiveRecord::SchemaMigration Load (0.2ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
Processing by ItemsController#show as HTML
Parameters: {"id"=>"2"}
[1m[35mItem Load (0.5ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 2]]
[1m[36mItem Load (0.1ms)[0m [1mSELECT "items".* FROM "items" ORDER BY "items"."id" ASC LIMIT 1[0m
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/_buy.html.haml (20.1ms)
Rendered items/show.html.erb within layouts/application (32.3ms)
Completed 200 OK in 212ms (Views: 194.1ms | ActiveRecord: 0.9ms)
Started POST "/simple_cart/cart/2" for 127.0.0.1 at 2016-03-10 21:49:37 +0200
Processing by SimpleCart::CartsController#add as HTML
Parameters: {"utf8"=>"✓", "authenticity_token"=>"bhARkZe76al0Fvr72s6DlVbBzlfsRuAoSv3Av1zP40FqopYZKwsz6BECsHHqL7H2ccjwejJSHNQxPsHM9K/9dg==", "qty"=>"1", "item"=>"Item", "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-10 21:49:37 +0200
Processing by SimpleCart::CartsController#show as HTML
[1m[35mItem Load (0.2ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" IN (1, 2)
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" IN (1, 2)[0m
[1m[35mItem Load (0.1ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mItem Load (0.1ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", 2]]
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml within layouts/application (17.0ms)
Completed 200 OK in 28ms (Views: 27.4ms | ActiveRecord: 0.4ms)
Started GET "/simple_cart/cart/clear" for 127.0.0.1 at 2016-03-10 21:49:41 +0200
Processing by SimpleCart::CartsController#clear as HTML
Redirected to http://localhost:3000/
Completed 302 Found in 1ms (ActiveRecord: 0.0ms)
Started GET "/" for 127.0.0.1 at 2016-03-10 21:49:41 +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.7ms)
Completed 200 OK in 5ms (Views: 4.8ms | ActiveRecord: 0.0ms)
Started GET "/items/1" for 127.0.0.1 at 2016-03-10 21:49:45 +0200
Processing by ItemsController#show as HTML
Parameters: {"id"=>"1"}
[1m[35mItem Load (0.1ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mItem Load (0.2ms)[0m [1mSELECT "items".* FROM "items" ORDER BY "items"."id" ASC LIMIT 1[0m
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/_buy.html.haml (8.0ms)
Rendered items/show.html.erb within layouts/application (9.5ms)
Completed 200 OK in 18ms (Views: 16.7ms | ActiveRecord: 0.3ms)
Started POST "/simple_cart/cart/1" for 127.0.0.1 at 2016-03-10 21:49:46 +0200
Processing by SimpleCart::CartsController#add as HTML
Parameters: {"utf8"=>"✓", "authenticity_token"=>"t3d4IXNZvF4wdBZIBaW4XTcgm54c1HA46M6QeqqsDTmzxf+pz+lmH1VgXMI1RIo+ECmls8LAjMSTDZEJAswTDg==", "qty"=>"1", "item"=>"Item", "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-10 21:49:46 +0200
Processing by SimpleCart::CartsController#show as HTML
[1m[35mItem Load (0.1ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "1"]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "1"]]
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml within layouts/application (8.0ms)
Completed 200 OK in 17ms (Views: 15.8ms | ActiveRecord: 0.2ms)
Started GET "/items/1" for 127.0.0.1 at 2016-03-10 21:50:28 +0200
Processing by ItemsController#show as HTML
Parameters: {"id"=>"1"}
[1m[36mItem Load (0.1ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mItem Load (0.2ms)[0m SELECT "items".* FROM "items" ORDER BY "items"."id" ASC LIMIT 1
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/_buy.html.haml (9.1ms)
Rendered items/show.html.erb within layouts/application (11.1ms)
Completed 200 OK in 20ms (Views: 19.2ms | ActiveRecord: 0.3ms)
Started GET "/assets/items.self-b60acab5af8d245ed2b3012f77d11d8d207d8eada27756badaf4ef05770d60f6.css?body=1" for 127.0.0.1 at 2016-03-10 21:50:28 +0200
Started GET "/assets/scaffold.self-83b741db49389dc7cfdf85bf7537a0219cce48e085c4116afc83d55c9af47c78.css?body=1" for 127.0.0.1 at 2016-03-10 21:50:28 +0200
Started GET "/assets/application.self-e80e8f2318043e8af94dddc2adad5a4f09739a8ebb323b3ab31cd71d45fd9113.css?body=1" for 127.0.0.1 at 2016-03-10 21:50:28 +0200
Started GET "/assets/items.self-19a187bec6cdb96d6de80a61c16c857c613536adf9138476bd367db38d282635.js?body=1" for 127.0.0.1 at 2016-03-10 21:50:28 +0200
Started GET "/assets/application.self-8f06a73c35179188914ab50e057157639fce1401c1cdca640ac9cec33746fc5b.js?body=1" for 127.0.0.1 at 2016-03-10 21:50:28 +0200
Started POST "/simple_cart/cart/1" for 127.0.0.1 at 2016-03-10 21:50:45 +0200
Processing by SimpleCart::CartsController#add as HTML
Parameters: {"utf8"=>"✓", "authenticity_token"=>"cKxQy44QruUN8wf5pGfxqcYT50Zpujum73l3R0eop7R0HtdDMqB0pGjnTXOUhsPK4RrZa7eux1qUunY078i5gw==", "qty"=>"1", "item"=>"Item", "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-10 21:50:45 +0200
Processing by SimpleCart::CartsController#show as HTML
[1m[36mItem Load (0.1ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "1"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "1"]]
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml within layouts/application (9.7ms)
Completed 200 OK in 41ms (Views: 40.6ms | ActiveRecord: 0.1ms)
Started GET "/simple_cart/cart?id=1" for 127.0.0.1 at 2016-03-10 21:51:06 +0200
Processing by SimpleCart::CartsController#show as HTML
Parameters: {"id"=>"1"}
[1m[35mItem Load (0.1ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "1"]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "1"]]
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml within layouts/application (7.2ms)
Completed 200 OK in 18ms (Views: 17.2ms | ActiveRecord: 0.1ms)
Started GET "/simple_cart/cart?id=1" for 127.0.0.1 at 2016-03-10 21:51:07 +0200
Processing by SimpleCart::CartsController#show as HTML
Parameters: {"id"=>"1"}
[1m[36mItem Load (0.1ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "1"]]
[1m[36mCACHE (0.1ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "1"]]
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml within layouts/application (8.2ms)
Completed 200 OK in 20ms (Views: 19.5ms | ActiveRecord: 0.2ms)
Started GET "/simple_cart/cart?id=1" for 127.0.0.1 at 2016-03-10 21:52:28 +0200
Processing by SimpleCart::CartsController#show as HTML
Parameters: {"id"=>"1"}
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml within layouts/application (6.5ms)
Completed 500 Internal Server Error in 9ms (ActiveRecord: 0.0ms)
SyntaxError (/home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml:37: syntax error, unexpected ',', expecting =>
...to 'X', {simple_cart.cart_path, :id => item.id.to_s}, class:...
... ^
/home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml:37: syntax error, unexpected '}', expecting ')'
...cart_path, :id => item.id.to_s}, class: 'btn btn-danger btn-...
... ^
/home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml:37: syntax error, unexpected ',', expecting ')'
...class: 'btn btn-danger btn-xs', method: :delete
... ^):
/home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml:37: syntax error, unexpected ',', expecting =>
...to 'X', {simple_cart.cart_path, :id => item.id.to_s}, class:...
... ^
/home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml:37: syntax error, unexpected '}', expecting ')'
...cart_path, :id => item.id.to_s}, class: 'btn btn-danger btn-...
... ^
/home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml:37: syntax error, unexpected ',', expecting ')'
...class: 'btn btn-danger btn-xs', method: :delete
... ^
actionview (4.2.5.2) lib/action_view/template.rb:296:in `module_eval'
actionview (4.2.5.2) lib/action_view/template.rb:296:in `compile'
actionview (4.2.5.2) lib/action_view/template.rb:245:in `block (2 levels) in compile!'
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:244:in `block in compile!'
actionview (4.2.5.2) lib/action_view/template.rb:232:in `synchronize'
actionview (4.2.5.2) lib/action_view/template.rb:232:in `compile!'
actionview (4.2.5.2) lib/action_view/template.rb:144: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 (8.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.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.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 (21.4ms)
Started GET "/simple_cart/cart" for 127.0.0.1 at 2016-03-10 21:52:31 +0200
Processing by SimpleCart::CartsController#show as HTML
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml within layouts/application (4.9ms)
Completed 500 Internal Server Error in 7ms (ActiveRecord: 0.0ms)
SyntaxError (/home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml:37: syntax error, unexpected ',', expecting =>
...to 'X', {simple_cart.cart_path, :id => item.id.to_s}, class:...
... ^
/home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml:37: syntax error, unexpected '}', expecting ')'
...cart_path, :id => item.id.to_s}, class: 'btn btn-danger btn-...
... ^
/home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml:37: syntax error, unexpected ',', expecting ')'
...class: 'btn btn-danger btn-xs', method: :delete
... ^):
/home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml:37: syntax error, unexpected ',', expecting =>
...to 'X', {simple_cart.cart_path, :id => item.id.to_s}, class:...
... ^
/home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml:37: syntax error, unexpected '}', expecting ')'
...cart_path, :id => item.id.to_s}, class: 'btn btn-danger btn-...
... ^
/home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml:37: syntax error, unexpected ',', expecting ')'
...class: 'btn btn-danger btn-xs', method: :delete
... ^
actionview (4.2.5.2) lib/action_view/template.rb:296:in `module_eval'
actionview (4.2.5.2) lib/action_view/template.rb:296:in `compile'
actionview (4.2.5.2) lib/action_view/template.rb:245:in `block (2 levels) in compile!'
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:244:in `block in compile!'
actionview (4.2.5.2) lib/action_view/template.rb:232:in `synchronize'
actionview (4.2.5.2) lib/action_view/template.rb:232:in `compile!'
actionview (4.2.5.2) lib/action_view/template.rb:144: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.7ms)
Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (3.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 (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 (23.6ms)
Started GET "/simple_cart/cart" for 127.0.0.1 at 2016-03-10 21:52:31 +0200
Processing by SimpleCart::CartsController#show as HTML
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml within layouts/application (5.2ms)
Completed 500 Internal Server Error in 7ms (ActiveRecord: 0.0ms)
SyntaxError (/home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml:37: syntax error, unexpected ',', expecting =>
...to 'X', {simple_cart.cart_path, :id => item.id.to_s}, class:...
... ^
/home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml:37: syntax error, unexpected '}', expecting ')'
...cart_path, :id => item.id.to_s}, class: 'btn btn-danger btn-...
... ^
/home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml:37: syntax error, unexpected ',', expecting ')'
...class: 'btn btn-danger btn-xs', method: :delete
... ^):
/home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml:37: syntax error, unexpected ',', expecting =>
...to 'X', {simple_cart.cart_path, :id => item.id.to_s}, class:...
... ^
/home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml:37: syntax error, unexpected '}', expecting ')'
...cart_path, :id => item.id.to_s}, class: 'btn btn-danger btn-...
... ^
/home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml:37: syntax error, unexpected ',', expecting ')'
...class: 'btn btn-danger btn-xs', method: :delete
... ^
actionview (4.2.5.2) lib/action_view/template.rb:296:in `module_eval'
actionview (4.2.5.2) lib/action_view/template.rb:296:in `compile'
actionview (4.2.5.2) lib/action_view/template.rb:245:in `block (2 levels) in compile!'
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:244:in `block in compile!'
actionview (4.2.5.2) lib/action_view/template.rb:232:in `synchronize'
actionview (4.2.5.2) lib/action_view/template.rb:232:in `compile!'
actionview (4.2.5.2) lib/action_view/template.rb:144: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.3ms)
Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (3.0ms)
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 (21.8ms)
Started GET "/simple_cart/cart" for 127.0.0.1 at 2016-03-10 21:52:50 +0200
Processing by SimpleCart::CartsController#show as HTML
[1m[35mItem Load (0.1ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "1"]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "1"]]
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml within layouts/application (20.2ms)
Completed 200 OK in 29ms (Views: 28.2ms | ActiveRecord: 0.2ms)
Started GET "/assets/items.self-b60acab5af8d245ed2b3012f77d11d8d207d8eada27756badaf4ef05770d60f6.css?body=1" for 127.0.0.1 at 2016-03-10 21:52:50 +0200
Started GET "/assets/application.self-e80e8f2318043e8af94dddc2adad5a4f09739a8ebb323b3ab31cd71d45fd9113.css?body=1" for 127.0.0.1 at 2016-03-10 21:52:50 +0200
Started GET "/assets/scaffold.self-83b741db49389dc7cfdf85bf7537a0219cce48e085c4116afc83d55c9af47c78.css?body=1" for 127.0.0.1 at 2016-03-10 21:52:50 +0200
Started GET "/assets/items.self-19a187bec6cdb96d6de80a61c16c857c613536adf9138476bd367db38d282635.js?body=1" for 127.0.0.1 at 2016-03-10 21:52:50 +0200
Started GET "/assets/application.self-8f06a73c35179188914ab50e057157639fce1401c1cdca640ac9cec33746fc5b.js?body=1" for 127.0.0.1 at 2016-03-10 21:52:50 +0200
Started GET "/simple_cart/cart" for 127.0.0.1 at 2016-03-10 21:52:52 +0200
Processing by SimpleCart::CartsController#show as HTML
[1m[36mItem Load (0.2ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "1"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "1"]]
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml within layouts/application (12.1ms)
Completed 200 OK in 22ms (Views: 20.7ms | ActiveRecord: 0.2ms)
Started GET "/simple_cart/cart" for 127.0.0.1 at 2016-03-10 21:52:54 +0200
Processing by SimpleCart::CartsController#show as HTML
[1m[35mItem Load (0.1ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "1"]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "1"]]
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml within layouts/application (11.5ms)
Completed 200 OK in 20ms (Views: 19.6ms | ActiveRecord: 0.1ms)
Started GET "/simple_cart/cart" for 127.0.0.1 at 2016-03-10 21:52:58 +0200
Processing by SimpleCart::CartsController#show as HTML
[1m[36mItem Load (0.1ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "1"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "1"]]
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml within layouts/application (10.5ms)
Completed 200 OK in 24ms (Views: 23.1ms | ActiveRecord: 0.1ms)
Started GET "/simple_cart/cart" for 127.0.0.1 at 2016-03-10 21:54:09 +0200
Processing by SimpleCart::CartsController#show as HTML
[1m[35mItem Load (0.1ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "1"]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "1"]]
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml (15.3ms)
Completed 200 OK in 22ms (Views: 19.7ms | ActiveRecord: 0.5ms)
Started GET "/simple_cart/cart" for 127.0.0.1 at 2016-03-10 21:54:11 +0200
Processing by SimpleCart::CartsController#show as HTML
[1m[36mItem Load (0.1ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "1"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "1"]]
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml (10.5ms)
Completed 200 OK in 13ms (Views: 12.6ms | ActiveRecord: 0.2ms)
Started GET "/simple_cart/cart" for 127.0.0.1 at 2016-03-10 21:54:12 +0200
Processing by SimpleCart::CartsController#show as HTML
[1m[35mItem Load (0.1ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "1"]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "1"]]
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml (8.5ms)
Completed 200 OK in 11ms (Views: 10.3ms | ActiveRecord: 0.2ms)
Started GET "/simple_cart/cart" for 127.0.0.1 at 2016-03-10 21:54:18 +0200
Processing by SimpleCart::CartsController#show as HTML
[1m[36mItem Load (0.1ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "1"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "1"]]
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml (8.4ms)
Completed 200 OK in 11ms (Views: 10.3ms | ActiveRecord: 0.2ms)
Started GET "/simple_cart/cart" for 127.0.0.1 at 2016-03-10 21:54:37 +0200
Processing by SimpleCart::CartsController#show as HTML
[1m[35mItem Load (0.1ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "1"]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "1"]]
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml (8.6ms)
Completed 200 OK in 11ms (Views: 10.1ms | ActiveRecord: 0.2ms)
Started GET "/simple_cart/cart" for 127.0.0.1 at 2016-03-10 21:54:41 +0200
Processing by SimpleCart::CartsController#show as HTML
[1m[36mItem Load (0.1ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "1"]]
[1m[36mCACHE (0.1ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "1"]]
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml (10.7ms)
Completed 200 OK in 21ms (Views: 20.5ms | ActiveRecord: 0.2ms)
Started GET "/simple_cart/cart" for 127.0.0.1 at 2016-03-10 21:54:45 +0200
Processing by SimpleCart::CartsController#show as HTML
[1m[35mItem Load (0.1ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "1"]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "1"]]
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml (12.6ms)
Completed 200 OK in 15ms (Views: 14.4ms | ActiveRecord: 0.2ms)
Started GET "/simple_cart/cart" for 127.0.0.1 at 2016-03-10 21:54:47 +0200
Processing by SimpleCart::CartsController#show as HTML
[1m[36mItem Load (0.1ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "1"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "1"]]
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml (12.3ms)
Completed 200 OK in 16ms (Views: 14.8ms | ActiveRecord: 0.2ms)
Started GET "/simple_cart/cart" for 127.0.0.1 at 2016-03-10 21:54:48 +0200
Processing by SimpleCart::CartsController#show as HTML
[1m[35mItem Load (0.1ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "1"]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "1"]]
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml (9.3ms)
Completed 200 OK in 12ms (Views: 11.4ms | ActiveRecord: 0.2ms)
Started GET "/simple_cart/cart" for 127.0.0.1 at 2016-03-10 21:55:31 +0200
Processing by SimpleCart::CartsController#destroy as HTML
[1m[36mItem Load (0.2ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "1"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "1"]]
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml (16.3ms)
Completed 200 OK in 23ms (Views: 20.5ms | ActiveRecord: 0.7ms)
Started GET "/simple_cart/cart" for 127.0.0.1 at 2016-03-10 21:55:32 +0200
Processing by SimpleCart::CartsController#destroy as HTML
[1m[35mItem Load (0.2ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "1"]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "1"]]
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml (12.6ms)
Completed 200 OK in 15ms (Views: 14.4ms | ActiveRecord: 0.3ms)
Started GET "/simple_cart/cart" for 127.0.0.1 at 2016-03-10 21:55:34 +0200
Processing by SimpleCart::CartsController#destroy as HTML
[1m[36mItem Load (0.1ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "1"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "1"]]
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml (9.0ms)
Completed 200 OK in 12ms (Views: 11.4ms | ActiveRecord: 0.1ms)
Started GET "/simple_cart/cart" for 127.0.0.1 at 2016-03-10 21:55:35 +0200
Processing by SimpleCart::CartsController#destroy as HTML
[1m[35mItem Load (0.1ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "1"]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "1"]]
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml (10.6ms)
Completed 200 OK in 14ms (Views: 12.8ms | ActiveRecord: 0.2ms)
Started GET "/simple_cart/cart" for 127.0.0.1 at 2016-03-10 21:55:37 +0200
Processing by SimpleCart::CartsController#destroy as HTML
[1m[36mItem Load (0.1ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "1"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "1"]]
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml (10.7ms)
Completed 200 OK in 15ms (Views: 13.8ms | ActiveRecord: 0.2ms)
Started GET "/simple_cart/cart" for 127.0.0.1 at 2016-03-10 21:56:03 +0200
Processing by SimpleCart::CartsController#destroy as HTML
[1m[35mItem Load (0.1ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "1"]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "1"]]
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml (10.5ms)
Completed 200 OK in 14ms (Views: 12.8ms | ActiveRecord: 0.2ms)
Started GET "/simple_cart/cart" for 127.0.0.1 at 2016-03-10 21:56:37 +0200
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
Processing by SimpleCart::CartsController#show as HTML
[1m[35mItem Load (0.2ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "1"]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "1"]]
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml (45.2ms)
Completed 200 OK in 67ms (Views: 53.0ms | ActiveRecord: 0.5ms)
Started GET "/simple_cart/cart" for 127.0.0.1 at 2016-03-10 21:56:42 +0200
Processing by SimpleCart::CartsController#show as HTML
[1m[36mItem Load (0.1ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "1"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "1"]]
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml (21.9ms)
Completed 200 OK in 25ms (Views: 24.5ms | ActiveRecord: 0.2ms)
Started GET "/simple_cart/cart" for 127.0.0.1 at 2016-03-10 21:58:52 +0200
Processing by SimpleCart::CartsController#show as HTML
[1m[35mItem Load (0.2ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "1"]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "1"]]
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml (16.2ms)
Completed 200 OK in 23ms (Views: 21.0ms | ActiveRecord: 0.6ms)
Started GET "/simple_cart/cart?id=1" for 127.0.0.1 at 2016-03-10 21:59:02 +0200
Processing by SimpleCart::CartsController#show as HTML
Parameters: {"id"=>"1"}
[1m[36mItem Load (0.1ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "1"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "1"]]
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml (7.6ms)
Completed 200 OK in 10ms (Views: 9.2ms | ActiveRecord: 0.2ms)
Started GET "/simple_cart/cart?id=1" for 127.0.0.1 at 2016-03-10 21:59:43 +0200
Processing by SimpleCart::CartsController#show as HTML
Parameters: {"id"=>"1"}
[1m[35mItem Load (0.1ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "1"]]
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml (11.3ms)
Completed 500 Internal Server Error in 14ms (ActiveRecord: 0.2ms)
ActionView::Template::Error (No route matches {:action=>"destroy", :controller=>"simple_cart/simple_cart.carts", :id=>"1"}):
34: %td
35: = number_to_currency(item.price * @cart.session[item.id.to_s])
36: %td
37: = link_to 'X', {:controller => 'simple_cart.carts', :action => 'destroy', :id => item.id.to_s}, class: 'btn btn-danger btn-xs', method: :delete
38: %tr
39: %td{colspan: 3}
40: %td
actionpack (4.2.5.2) lib/action_dispatch/journey/formatter.rb:46:in `generate'
actionpack (4.2.5.2) lib/action_dispatch/routing/route_set.rb:719:in `generate'
actionpack (4.2.5.2) lib/action_dispatch/routing/route_set.rb:750:in `generate'
actionpack (4.2.5.2) lib/action_dispatch/routing/route_set.rb:797:in `url_for'
actionpack (4.2.5.2) lib/action_dispatch/routing/url_for.rb:156:in `url_for'
actionview (4.2.5.2) lib/action_view/routing_url_for.rb:94:in `url_for'
actionview (4.2.5.2) lib/action_view/helpers/url_helper.rb:181:in `link_to'
/home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml:37:in `block (2 levels) in __home_leksster_ror__ubygarage__mazon_simple_cart_app_views_simple_cart_carts_show_html_haml__1615499200736451662_41845060'
/home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml:24:in `each'
/home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml:24:in `each_with_index'
/home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml:24:in `block in __home_leksster_ror__ubygarage__mazon_simple_cart_app_views_simple_cart_carts_show_html_haml__1615499200736451662_41845060'
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/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml:6:in `__home_leksster_ror__ubygarage__mazon_simple_cart_app_views_simple_cart_carts_show_html_haml__1615499200736451662_41845060'
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.1ms)
Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (3.4ms)
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.3ms)
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 (21.5ms)
Started GET "/simple_cart/cart?id=1" for 127.0.0.1 at 2016-03-10 21:59:55 +0200
Processing by SimpleCart::CartsController#show as HTML
Parameters: {"id"=>"1"}
[1m[35mItem Load (0.1ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "1"]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "1"]]
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml (12.5ms)
Completed 200 OK in 15ms (Views: 14.3ms | ActiveRecord: 0.2ms)
Started GET "/simple_cart/cart?id=1" for 127.0.0.1 at 2016-03-10 21:59:57 +0200
Processing by SimpleCart::CartsController#show as HTML
Parameters: {"id"=>"1"}
[1m[36mItem Load (0.1ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "1"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "1"]]
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml (5.0ms)
Completed 200 OK in 7ms (Views: 6.8ms | ActiveRecord: 0.1ms)
Started GET "/simple_cart/cart" for 127.0.0.1 at 2016-03-10 22:00:01 +0200
Processing by SimpleCart::CartsController#show as HTML
[1m[35mItem Load (0.1ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "1"]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "1"]]
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml (14.0ms)
Completed 200 OK in 17ms (Views: 16.4ms | ActiveRecord: 0.2ms)
Started GET "/simple_cart/cart" for 127.0.0.1 at 2016-03-10 22:00:01 +0200
Processing by SimpleCart::CartsController#show as HTML
[1m[36mItem Load (0.1ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "1"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "1"]]
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml (9.6ms)
Completed 200 OK in 13ms (Views: 12.0ms | ActiveRecord: 0.2ms)
Started GET "/simple_cart/cart?id=1" for 127.0.0.1 at 2016-03-10 22:00:05 +0200
Processing by SimpleCart::CartsController#show as HTML
Parameters: {"id"=>"1"}
[1m[35mItem Load (0.1ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "1"]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "1"]]
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml (5.7ms)
Completed 200 OK in 9ms (Views: 8.0ms | ActiveRecord: 0.1ms)
Started GET "/simple_cart/cart?id=1" for 127.0.0.1 at 2016-03-10 22:00:52 +0200
Processing by SimpleCart::CartsController#show as HTML
Parameters: {"id"=>"1"}
[1m[36mItem Load (0.1ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "1"]]
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml (20.1ms)
Completed 500 Internal Server Error in 23ms (ActiveRecord: 0.2ms)
ActionView::Template::Error (undefined method `cart' for #):
34: %td
35: = number_to_currency(item.price * @cart.session[item.id.to_s])
36: %td
37: = link_to 'X', simple_cart.cart(item.id), :id => item.id.to_s, class: 'btn btn-danger btn-xs', method: :delete
38: %tr
39: %td{colspan: 3}
40: %td
actionpack (4.2.5.2) lib/action_dispatch/routing/routes_proxy.rb:36:in `method_missing'
/home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml:37:in `block (2 levels) in __home_leksster_ror__ubygarage__mazon_simple_cart_app_views_simple_cart_carts_show_html_haml__1615499200736451662_70314554844000'
/home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml:24:in `each'
/home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml:24:in `each_with_index'
/home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml:24:in `block in __home_leksster_ror__ubygarage__mazon_simple_cart_app_views_simple_cart_carts_show_html_haml__1615499200736451662_70314554844000'
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/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml:6:in `__home_leksster_ror__ubygarage__mazon_simple_cart_app_views_simple_cart_carts_show_html_haml__1615499200736451662_70314554844000'
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.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.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/template_error.html.erb within rescues/layout (20.8ms)
Started GET "/simple_cart/cart" for 127.0.0.1 at 2016-03-10 22:01:00 +0200
Processing by SimpleCart::CartsController#show as HTML
[1m[36mItem Load (0.1ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "1"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "1"]]
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml (13.9ms)
Completed 200 OK in 16ms (Views: 15.6ms | ActiveRecord: 0.1ms)
Started GET "/simple_cart/cart" for 127.0.0.1 at 2016-03-10 22:01:00 +0200
Processing by SimpleCart::CartsController#show as HTML
[1m[35mItem Load (0.1ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "1"]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "1"]]
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml (10.3ms)
Completed 200 OK in 13ms (Views: 12.1ms | ActiveRecord: 0.1ms)
Started GET "/simple_cart/cart.1" for 127.0.0.1 at 2016-03-10 22:01:04 +0200
Processing by SimpleCart::CartsController#show as
[1m[36mItem Load (0.2ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "1"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "1"]]
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml (16.5ms)
Completed 200 OK in 24ms (Views: 23.0ms | ActiveRecord: 0.2ms)
Started GET "/simple_cart/cart.1" for 127.0.0.1 at 2016-03-10 22:01:08 +0200
Processing by SimpleCart::CartsController#show as
[1m[35mItem Load (0.1ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "1"]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "1"]]
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml (8.8ms)
Completed 200 OK in 15ms (Views: 14.1ms | ActiveRecord: 0.1ms)
Started GET "/simple_cart/cart.1" for 127.0.0.1 at 2016-03-10 22:01:21 +0200
Processing by SimpleCart::CartsController#show as
[1m[36mItem Load (0.1ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "1"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "1"]]
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml (15.3ms)
Completed 200 OK in 22ms (Views: 21.0ms | ActiveRecord: 0.2ms)
Started GET "/simple_cart/cart?item=1" for 127.0.0.1 at 2016-03-10 22:01:25 +0200
Processing by SimpleCart::CartsController#show as HTML
Parameters: {"item"=>"1"}
[1m[35mItem Load (0.2ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "1"]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "1"]]
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml (24.0ms)
Completed 200 OK in 28ms (Views: 26.7ms | ActiveRecord: 0.2ms)
Started GET "/simple_cart/cart" for 127.0.0.1 at 2016-03-10 22:02:58 +0200
Processing by SimpleCart::CartsController#show as HTML
[1m[36mItem Load (0.1ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "1"]]
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml (38.2ms)
Completed 500 Internal Server Error in 41ms (ActiveRecord: 0.2ms)
ActionView::Template::Error (undefined method `button_rag' for #<#:0x007fe6c42d2d98>):
34: %td
35: = number_to_currency(item.price * @cart.session[item.id.to_s])
36: %td
37: = button_rag 'X', simple_cart.cart_path(:item => item.id), :id => item.id.to_s, class: 'btn btn-danger btn-xs', method: :delete
38: %tr
39: %td{colspan: 3}
40: %td
/home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml:37:in `block (2 levels) in __home_leksster_ror__ubygarage__mazon_simple_cart_app_views_simple_cart_carts_show_html_haml__1615499200736451662_70314555245560'
/home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml:24:in `each'
/home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml:24:in `each_with_index'
/home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml:24:in `block in __home_leksster_ror__ubygarage__mazon_simple_cart_app_views_simple_cart_carts_show_html_haml__1615499200736451662_70314555245560'
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/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml:6:in `__home_leksster_ror__ubygarage__mazon_simple_cart_app_views_simple_cart_carts_show_html_haml__1615499200736451662_70314555245560'
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.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 (4.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 (1.4ms)
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 (26.9ms)
Started GET "/simple_cart/cart" for 127.0.0.1 at 2016-03-10 22:02:58 +0200
Processing by SimpleCart::CartsController#show as HTML
[1m[36mItem Load (0.1ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "1"]]
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml (22.3ms)
Completed 500 Internal Server Error in 25ms (ActiveRecord: 0.1ms)
ActionView::Template::Error (undefined method `button_rag' for #<#:0x00000004d14620>):
34: %td
35: = number_to_currency(item.price * @cart.session[item.id.to_s])
36: %td
37: = button_rag 'X', simple_cart.cart_path(:item => item.id), :id => item.id.to_s, class: 'btn btn-danger btn-xs', method: :delete
38: %tr
39: %td{colspan: 3}
40: %td
/home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml:37:in `block (2 levels) in __home_leksster_ror__ubygarage__mazon_simple_cart_app_views_simple_cart_carts_show_html_haml__1615499200736451662_70314555245560'
/home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml:24:in `each'
/home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml:24:in `each_with_index'
/home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml:24:in `block in __home_leksster_ror__ubygarage__mazon_simple_cart_app_views_simple_cart_carts_show_html_haml__1615499200736451662_70314555245560'
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/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml:6:in `__home_leksster_ror__ubygarage__mazon_simple_cart_app_views_simple_cart_carts_show_html_haml__1615499200736451662_70314555245560'
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.3ms)
Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (2.8ms)
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 (20.6ms)
Started GET "/simple_cart/cart" for 127.0.0.1 at 2016-03-10 22:03:05 +0200
Processing by SimpleCart::CartsController#show as HTML
[1m[36mItem Load (0.2ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "1"]]
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml (15.7ms)
Completed 500 Internal Server Error in 19ms (ActiveRecord: 0.2ms)
ActionView::Template::Error (wrong number of arguments (3 for 0..2)):
34: %td
35: = number_to_currency(item.price * @cart.session[item.id.to_s])
36: %td
37: = button_tag 'X', simple_cart.cart_path(:item => item.id), :id => item.id.to_s, class: 'btn btn-danger btn-xs', method: :delete
38: %tr
39: %td{colspan: 3}
40: %td
actionview (4.2.5.2) lib/action_view/helpers/form_tag_helper.rb:485:in `button_tag'
/home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml:37:in `block (2 levels) in __home_leksster_ror__ubygarage__mazon_simple_cart_app_views_simple_cart_carts_show_html_haml__1615499200736451662_28656660'
/home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml:24:in `each'
/home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml:24:in `each_with_index'
/home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml:24:in `block in __home_leksster_ror__ubygarage__mazon_simple_cart_app_views_simple_cart_carts_show_html_haml__1615499200736451662_28656660'
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/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml:6:in `__home_leksster_ror__ubygarage__mazon_simple_cart_app_views_simple_cart_carts_show_html_haml__1615499200736451662_28656660'
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 (6.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.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 (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 (20.4ms)
Started GET "/simple_cart/cart" for 127.0.0.1 at 2016-03-10 22:03:18 +0200
Processing by SimpleCart::CartsController#show as HTML
[1m[36mItem Load (0.1ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "1"]]
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml (12.7ms)
Completed 500 Internal Server Error in 15ms (ActiveRecord: 0.1ms)
ActionView::Template::Error (wrong number of arguments (3 for 0..2)):
34: %td
35: = number_to_currency(item.price * @cart.session[item.id.to_s])
36: %td
37: = button_tag 'X', simple_cart.cart_path(:item => item.id), class: 'btn btn-danger btn-xs', method: :delete
38: %tr
39: %td{colspan: 3}
40: %td
actionview (4.2.5.2) lib/action_view/helpers/form_tag_helper.rb:485:in `button_tag'
/home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml:37:in `block (2 levels) in __home_leksster_ror__ubygarage__mazon_simple_cart_app_views_simple_cart_carts_show_html_haml__1615499200736451662_42323040'
/home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml:24:in `each'
/home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml:24:in `each_with_index'
/home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml:24:in `block in __home_leksster_ror__ubygarage__mazon_simple_cart_app_views_simple_cart_carts_show_html_haml__1615499200736451662_42323040'
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/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml:6:in `__home_leksster_ror__ubygarage__mazon_simple_cart_app_views_simple_cart_carts_show_html_haml__1615499200736451662_42323040'
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.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.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 (1.0ms)
Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/rescues/template_error.html.erb within rescues/layout (20.9ms)
Started GET "/simple_cart/cart" for 127.0.0.1 at 2016-03-10 22:05:43 +0200
Processing by SimpleCart::CartsController#show as HTML
[1m[36mItem Load (0.2ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "1"]]
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml (14.2ms)
Completed 500 Internal Server Error in 17ms (ActiveRecord: 0.2ms)
ActionView::Template::Error (wrong number of arguments (3 for 0..2)):
34: %td
35: = number_to_currency(item.price * @cart.session[item.id.to_s])
36: %td
37: = button_tag 'X', simple_cart.cart_path(:item => item.id), method: :delete
38: %tr
39: %td{colspan: 3}
40: %td
actionview (4.2.5.2) lib/action_view/helpers/form_tag_helper.rb:485:in `button_tag'
/home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml:37:in `block (2 levels) in __home_leksster_ror__ubygarage__mazon_simple_cart_app_views_simple_cart_carts_show_html_haml__1615499200736451662_38538820'
/home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml:24:in `each'
/home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml:24:in `each_with_index'
/home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml:24:in `block in __home_leksster_ror__ubygarage__mazon_simple_cart_app_views_simple_cart_carts_show_html_haml__1615499200736451662_38538820'
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/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml:6:in `__home_leksster_ror__ubygarage__mazon_simple_cart_app_views_simple_cart_carts_show_html_haml__1615499200736451662_38538820'
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 (11.5ms)
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/template_error.html.erb within rescues/layout (24.8ms)
Started GET "/simple_cart/cart" for 127.0.0.1 at 2016-03-10 22:05:46 +0200
Processing by SimpleCart::CartsController#show as HTML
[1m[36mItem Load (0.1ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "1"]]
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml (5.2ms)
Completed 500 Internal Server Error in 9ms (ActiveRecord: 0.1ms)
ActionView::Template::Error (wrong number of arguments (3 for 0..2)):
34: %td
35: = number_to_currency(item.price * @cart.session[item.id.to_s])
36: %td
37: = button_tag 'X', simple_cart.cart_path(:item => item.id), method: :delete
38: %tr
39: %td{colspan: 3}
40: %td
actionview (4.2.5.2) lib/action_view/helpers/form_tag_helper.rb:485:in `button_tag'
/home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml:37:in `block (2 levels) in __home_leksster_ror__ubygarage__mazon_simple_cart_app_views_simple_cart_carts_show_html_haml__1615499200736451662_38538820'
/home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml:24:in `each'
/home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml:24:in `each_with_index'
/home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml:24:in `block in __home_leksster_ror__ubygarage__mazon_simple_cart_app_views_simple_cart_carts_show_html_haml__1615499200736451662_38538820'
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/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml:6:in `__home_leksster_ror__ubygarage__mazon_simple_cart_app_views_simple_cart_carts_show_html_haml__1615499200736451662_38538820'
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 (8.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 (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 (1.0ms)
Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/rescues/template_error.html.erb within rescues/layout (22.3ms)
Started GET "/simple_cart/cart" for 127.0.0.1 at 2016-03-10 22:05:49 +0200
Processing by SimpleCart::CartsController#show as HTML
[1m[36mItem Load (0.1ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "1"]]
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml (9.9ms)
Completed 500 Internal Server Error in 13ms (ActiveRecord: 0.1ms)
ActionView::Template::Error (undefined method `stringify_keys' for "/simple_cart/cart?item=1":String):
34: %td
35: = number_to_currency(item.price * @cart.session[item.id.to_s])
36: %td
37: = button_tag 'X', simple_cart.cart_path(:item => item.id)
38: %tr
39: %td{colspan: 3}
40: %td
actionview (4.2.5.2) lib/action_view/helpers/form_tag_helper.rb:492:in `button_tag'
/home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml:37:in `block (2 levels) in __home_leksster_ror__ubygarage__mazon_simple_cart_app_views_simple_cart_carts_show_html_haml__1615499200736451662_40652560'
/home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml:24:in `each'
/home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml:24:in `each_with_index'
/home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml:24:in `block in __home_leksster_ror__ubygarage__mazon_simple_cart_app_views_simple_cart_carts_show_html_haml__1615499200736451662_40652560'
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/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml:6:in `__home_leksster_ror__ubygarage__mazon_simple_cart_app_views_simple_cart_carts_show_html_haml__1615499200736451662_40652560'
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.5ms)
Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (2.8ms)
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 (20.8ms)
Started GET "/simple_cart/cart" for 127.0.0.1 at 2016-03-10 22:06:01 +0200
Processing by SimpleCart::CartsController#show as HTML
[1m[36mItem Load (0.2ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "1"]]
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml (7.1ms)
Completed 500 Internal Server Error in 11ms (ActiveRecord: 0.2ms)
ActionView::Template::Error (undefined method `stringify_keys' for "/simple_cart/cart?item=1":String):
34: %td
35: = number_to_currency(item.price * @cart.session[item.id.to_s])
36: %td
37: = button_tag 'X', simple_cart.cart_path(:item => item.id)
38: %tr
39: %td{colspan: 3}
40: %td
actionview (4.2.5.2) lib/action_view/helpers/form_tag_helper.rb:492:in `button_tag'
/home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml:37:in `block (2 levels) in __home_leksster_ror__ubygarage__mazon_simple_cart_app_views_simple_cart_carts_show_html_haml__1615499200736451662_40652560'
/home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml:24:in `each'
/home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml:24:in `each_with_index'
/home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml:24:in `block in __home_leksster_ror__ubygarage__mazon_simple_cart_app_views_simple_cart_carts_show_html_haml__1615499200736451662_40652560'
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/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml:6:in `__home_leksster_ror__ubygarage__mazon_simple_cart_app_views_simple_cart_carts_show_html_haml__1615499200736451662_40652560'
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 (6.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 (3.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.8ms)
Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/rescues/template_error.html.erb within rescues/layout (20.4ms)
Started GET "/simple_cart/cart" for 127.0.0.1 at 2016-03-10 22:07:03 +0200
Processing by SimpleCart::CartsController#show as HTML
[1m[36mItem Load (0.1ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "1"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "1"]]
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml (16.2ms)
Completed 200 OK in 20ms (Views: 18.8ms | ActiveRecord: 0.2ms)
Started PUT "/simple_cart/cart" for 127.0.0.1 at 2016-03-10 22:07:05 +0200
Processing by SimpleCart::CartsController#update as HTML
Parameters: {"utf8"=>"✓", "authenticity_token"=>"0p7g13qIQbPUnuphOE70oIIZJupQn4PCYe23Qzs8lEDWLGdfxjib8rGKoOsIr8bDpRAYx46Lfz4aLrYwk1yKdw==", "1"=>"2", "button"=>"", "coupon"=>""}
Completed 500 Internal Server Error in 1ms (ActiveRecord: 0.0ms)
NameError (uninitialized constant Cart::Coupon):
/home/leksster/ror/Rubygarage/Amazon/simple_cart/app/models/cart.rb:59:in `discount'
/home/leksster/ror/Rubygarage/Amazon/simple_cart/app/models/cart.rb:55:in `update_books'
/home/leksster/ror/Rubygarage/Amazon/simple_cart/app/controllers/simple_cart/carts_controller.rb:28:in `update'
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 (5.1ms)
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 (1.0ms)
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.3ms)
Started GET "/simple_cart/cart" for 127.0.0.1 at 2016-03-10 22:07:20 +0200
Processing by SimpleCart::CartsController#show as HTML
[1m[35mItem Load (0.2ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "1"]]
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml (13.4ms)
Completed 500 Internal Server Error in 17ms (ActiveRecord: 0.3ms)
ActionView::Template::Error (undefined method `stringify_keys' for "/simple_cart/cart?item=1":String):
34: %td
35: = number_to_currency(item.price * @cart.session[item.id.to_s])
36: %td
37: = button_tag 'X', simple_cart.cart_path(:item => item.id)
38: %tr
39: %td{colspan: 3}
40: %td
actionview (4.2.5.2) lib/action_view/helpers/form_tag_helper.rb:492:in `button_tag'
/home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml:37:in `block (2 levels) in __home_leksster_ror__ubygarage__mazon_simple_cart_app_views_simple_cart_carts_show_html_haml__1615499200736451662_70314554921040'
/home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml:24:in `each'
/home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml:24:in `each_with_index'
/home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml:24:in `block in __home_leksster_ror__ubygarage__mazon_simple_cart_app_views_simple_cart_carts_show_html_haml__1615499200736451662_70314554921040'
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/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml:6:in `__home_leksster_ror__ubygarage__mazon_simple_cart_app_views_simple_cart_carts_show_html_haml__1615499200736451662_70314554921040'
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 (8.4ms)
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 (1.0ms)
Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/rescues/template_error.html.erb within rescues/layout (22.0ms)
Started GET "/simple_cart/cart" for 127.0.0.1 at 2016-03-10 22:07:26 +0200
Processing by SimpleCart::CartsController#show as HTML
[1m[35mItem Load (0.1ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "1"]]
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml (12.9ms)
Completed 500 Internal Server Error in 15ms (ActiveRecord: 0.2ms)
ActionView::Template::Error (undefined method `stringify_keys' for "/simple_cart/cart":String):
34: %td
35: = number_to_currency(item.price * @cart.session[item.id.to_s])
36: %td
37: = button_tag 'X', simple_cart.cart_path
38: %tr
39: %td{colspan: 3}
40: %td
actionview (4.2.5.2) lib/action_view/helpers/form_tag_helper.rb:492:in `button_tag'
/home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml:37:in `block (2 levels) in __home_leksster_ror__ubygarage__mazon_simple_cart_app_views_simple_cart_carts_show_html_haml__1615499200736451662_40012320'
/home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml:24:in `each'
/home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml:24:in `each_with_index'
/home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml:24:in `block in __home_leksster_ror__ubygarage__mazon_simple_cart_app_views_simple_cart_carts_show_html_haml__1615499200736451662_40012320'
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/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml:6:in `__home_leksster_ror__ubygarage__mazon_simple_cart_app_views_simple_cart_carts_show_html_haml__1615499200736451662_40012320'
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.1ms)
Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (3.0ms)
Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (1.0ms)
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 (21.1ms)
Started GET "/simple_cart/cart" for 127.0.0.1 at 2016-03-10 22:08:01 +0200
Processing by SimpleCart::CartsController#show as HTML
[1m[35mItem Load (0.1ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "1"]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "1"]]
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml (12.4ms)
Completed 200 OK in 20ms (Views: 18.9ms | ActiveRecord: 0.2ms)
Started PUT "/simple_cart/cart" for 127.0.0.1 at 2016-03-10 22:08:03 +0200
Processing by SimpleCart::CartsController#update as HTML
Parameters: {"utf8"=>"✓", "authenticity_token"=>"+kQLZJ/nfIwf4FeLZzz+iH8nn3oL9uGodi71yk56X2L+9ozsI1emzXr0HQFX3czrWC6hV9XiHVQN7fS55hpBVQ==", "1"=>"2", "button"=>"", "coupon"=>""}
Completed 500 Internal Server Error in 1ms (ActiveRecord: 0.0ms)
NameError (uninitialized constant Cart::Coupon):
/home/leksster/ror/Rubygarage/Amazon/simple_cart/app/models/cart.rb:59:in `discount'
/home/leksster/ror/Rubygarage/Amazon/simple_cart/app/models/cart.rb:55:in `update_books'
/home/leksster/ror/Rubygarage/Amazon/simple_cart/app/controllers/simple_cart/carts_controller.rb:28:in `update'
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 (5.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 (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 (18.0ms)
Started GET "/simple_cart/cart" for 127.0.0.1 at 2016-03-10 22:08:54 +0200
Processing by SimpleCart::CartsController#show as HTML
[1m[36mItem Load (0.1ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "1"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "1"]]
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml (12.6ms)
Completed 200 OK in 15ms (Views: 14.4ms | ActiveRecord: 0.1ms)
Started PUT "/simple_cart/cart" for 127.0.0.1 at 2016-03-10 22:08:56 +0200
Processing by SimpleCart::CartsController#update as HTML
Parameters: {"utf8"=>"✓", "authenticity_token"=>"X8aO2Zl8n+5ZusXGaZuacCBWT5I0gtUYQsT4E59eu6lbdAlRJcxFrzyuj0xZeqgTB19xv+qWKeQ5B/lgNz6lng==", "1"=>"2", "coupon"=>""}
Completed 500 Internal Server Error in 1ms (ActiveRecord: 0.0ms)
NameError (uninitialized constant Cart::Coupon):
/home/leksster/ror/Rubygarage/Amazon/simple_cart/app/models/cart.rb:59:in `discount'
/home/leksster/ror/Rubygarage/Amazon/simple_cart/app/models/cart.rb:55:in `update_books'
/home/leksster/ror/Rubygarage/Amazon/simple_cart/app/controllers/simple_cart/carts_controller.rb:28:in `update'
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 (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 (2.7ms)
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.9ms)
Started GET "/simple_cart/cart" for 127.0.0.1 at 2016-03-10 22:09:23 +0200
Processing by SimpleCart::CartsController#show as HTML
[1m[35mItem Load (0.1ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "1"]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "1"]]
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml (14.4ms)
Completed 200 OK in 17ms (Views: 16.5ms | ActiveRecord: 0.2ms)
Started PUT "/simple_cart/cart" for 127.0.0.1 at 2016-03-10 22:09:24 +0200
Processing by SimpleCart::CartsController#update as HTML
Parameters: {"utf8"=>"✓", "authenticity_token"=>"CzG908NXFCNfT5cEVPQcrfwY9E5JAJVAVJbMxLyke3UPgzpbf+fOYjpb3Y5kFS7O2xHKY5cUabwvVc23FMRlQg==", "1"=>"2", "coupon"=>""}
Completed 500 Internal Server Error in 1ms (ActiveRecord: 0.0ms)
NameError (uninitialized constant Cart::Coupon):
/home/leksster/ror/Rubygarage/Amazon/simple_cart/app/models/cart.rb:59:in `discount'
/home/leksster/ror/Rubygarage/Amazon/simple_cart/app/models/cart.rb:55:in `update_books'
/home/leksster/ror/Rubygarage/Amazon/simple_cart/app/controllers/simple_cart/carts_controller.rb:28:in `update'
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.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.2ms)
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 (17.9ms)
Started GET "/items/3" for 127.0.0.1 at 2016-03-10 22:10:00 +0200
Processing by ItemsController#show as HTML
Parameters: {"id"=>"3"}
[1m[36mItem Load (0.1ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", 3]]
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/_buy.html.haml (6.0ms)
Rendered items/show.html.erb within layouts/application (9.5ms)
Completed 200 OK in 229ms (Views: 227.2ms | ActiveRecord: 0.1ms)
Started POST "/simple_cart/cart/3" for 127.0.0.1 at 2016-03-10 22:10:03 +0200
Processing by SimpleCart::CartsController#add as HTML
Parameters: {"utf8"=>"✓", "authenticity_token"=>"e6M8MWRBKMID5QQ5/fINAQB5aeB1FcTmfMRdwo/z9dp/Ebu52PHyg2bxTrPNEz9iJ3BXzasBOBoHB1yxJ5Pr7Q==", "qty"=>"4", "item"=>"Item", "commit"=>"Add to cart", "item_id"=>"3"}
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-10 22:10:03 +0200
Processing by SimpleCart::CartsController#show as HTML
[1m[35mItem Load (0.2ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" IN (1, 3)
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" IN (1, 3)[0m
[1m[35mItem Load (0.1ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mItem Load (0.2ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", 3]]
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml (11.5ms)
Completed 200 OK in 14ms (Views: 13.0ms | ActiveRecord: 0.5ms)
Started POST "/simple_cart/cart?method=delete" for 127.0.0.1 at 2016-03-10 22:10:05 +0200
ActionController::RoutingError (No route matches [POST] "/simple_cart/cart"):
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.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/_trace.html.erb (1.7ms)
Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/routes/_route.html.erb (1.1ms)
Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/routes/_route.html.erb (0.6ms)
Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/routes/_table.html.erb (3.2ms)
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.3ms)
Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/rescues/routing_error.html.erb within rescues/layout (27.7ms)
Started GET "/simple_cart/cart" for 127.0.0.1 at 2016-03-10 22:10:19 +0200
Processing by SimpleCart::CartsController#show as HTML
[1m[35mItem Load (0.2ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" IN (1, 3)
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" IN (1, 3)[0m
[1m[35mItem Load (0.1ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mItem Load (0.1ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", 3]]
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml (10.5ms)
Completed 200 OK in 13ms (Views: 12.1ms | ActiveRecord: 0.5ms)
Started PUT "/simple_cart/cart" for 127.0.0.1 at 2016-03-10 22:10:20 +0200
Processing by SimpleCart::CartsController#update as HTML
Parameters: {"utf8"=>"✓", "authenticity_token"=>"/nOPrj1lyayZjaO3U7iy2ilSyszQVzEaQYBaxNtqO9z6wQgmgdUT7fyZ6T1jWYC5Dlv04Q5DzeY6Q1u3cwol6w==", "1"=>"2", "3"=>"4", "coupon"=>""}
Completed 500 Internal Server Error in 1ms (ActiveRecord: 0.0ms)
NameError (uninitialized constant Cart::Coupon):
/home/leksster/ror/Rubygarage/Amazon/simple_cart/app/models/cart.rb:59:in `discount'
/home/leksster/ror/Rubygarage/Amazon/simple_cart/app/models/cart.rb:55:in `update_books'
/home/leksster/ror/Rubygarage/Amazon/simple_cart/app/controllers/simple_cart/carts_controller.rb:28:in `update'
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 (5.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.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 (1.4ms)
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 (41.3ms)
Started GET "/simple_cart/cart" for 127.0.0.1 at 2016-03-10 22:11:19 +0200
Processing by SimpleCart::CartsController#show as HTML
[1m[35mItem Load (0.3ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" IN (1, 3)
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" IN (1, 3)[0m
[1m[35mItem Load (0.2ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mItem Load (0.1ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", 3]]
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml (13.1ms)
Completed 200 OK in 17ms (Views: 15.5ms | ActiveRecord: 0.6ms)
Started POST "/simple_cart/cart?method=delete" for 127.0.0.1 at 2016-03-10 22:11:22 +0200
ActionController::RoutingError (No route matches [POST] "/simple_cart/cart"):
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.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/_trace.html.erb (1.3ms)
Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/routes/_route.html.erb (1.4ms)
Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/routes/_route.html.erb (0.5ms)
Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/routes/_table.html.erb (1.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 (1.3ms)
Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/rescues/routing_error.html.erb within rescues/layout (25.9ms)
Started GET "/simple_cart/cart" for 127.0.0.1 at 2016-03-10 22:12:04 +0200
Processing by SimpleCart::CartsController#show as HTML
[1m[35mItem Load (0.3ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" IN (1, 3)
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" IN (1, 3)[0m
[1m[35mItem Load (0.1ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mItem Load (0.1ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", 3]]
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml (22.9ms)
Completed 200 OK in 26ms (Views: 24.5ms | ActiveRecord: 0.6ms)
Started GET "/simple_cart/cart.3" for 127.0.0.1 at 2016-03-10 22:12:07 +0200
Processing by SimpleCart::CartsController#show as
[1m[35mItem Load (0.2ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" IN (1, 3)
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" IN (1, 3)[0m
[1m[35mItem Load (0.2ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mItem Load (0.1ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", 3]]
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml (19.2ms)
Completed 200 OK in 25ms (Views: 24.4ms | ActiveRecord: 0.5ms)
Started GET "/simple_cart/cart.3" for 127.0.0.1 at 2016-03-10 22:12:17 +0200
Processing by SimpleCart::CartsController#show as
[1m[35mItem Load (0.2ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" IN (1, 3)
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" IN (1, 3)[0m
[1m[35mItem Load (0.1ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mItem Load (0.1ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", 3]]
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml (22.9ms)
Completed 200 OK in 32ms (Views: 30.5ms | ActiveRecord: 0.4ms)
Started GET "/simple_cart/cart" for 127.0.0.1 at 2016-03-10 22:12:18 +0200
Processing by SimpleCart::CartsController#show as HTML
[1m[35mItem Load (0.2ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" IN (1, 3)
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" IN (1, 3)[0m
[1m[35mItem Load (0.2ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mItem Load (0.1ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", 3]]
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml (23.7ms)
Completed 200 OK in 26ms (Views: 25.1ms | ActiveRecord: 0.5ms)
Started GET "/simple_cart/cart" for 127.0.0.1 at 2016-03-10 22:12:19 +0200
Processing by SimpleCart::CartsController#show as HTML
[1m[35mItem Load (0.2ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" IN (1, 3)
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" IN (1, 3)[0m
[1m[35mItem Load (0.1ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mItem Load (0.1ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", 3]]
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml (14.3ms)
Completed 200 OK in 17ms (Views: 16.3ms | ActiveRecord: 0.4ms)
Started GET "/simple_cart/cart?id=3" for 127.0.0.1 at 2016-03-10 22:12:20 +0200
Processing by SimpleCart::CartsController#show as HTML
Parameters: {"id"=>"3"}
[1m[35mItem Load (0.2ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" IN (1, 3)
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" IN (1, 3)[0m
[1m[35mItem Load (0.1ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mItem Load (0.1ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", 3]]
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml (17.8ms)
Completed 200 OK in 20ms (Views: 19.1ms | ActiveRecord: 0.5ms)
Started GET "/simple_cart/cart" for 127.0.0.1 at 2016-03-10 22:13:25 +0200
Processing by SimpleCart::CartsController#show as HTML
[1m[35mItem Load (0.2ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" IN (1, 3)
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" IN (1, 3)[0m
[1m[35mItem Load (0.2ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mItem Load (0.1ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", 3]]
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml (19.3ms)
Completed 200 OK in 27ms (Views: 23.0ms | ActiveRecord: 1.0ms)
Started GET "/simple_cart/cart" for 127.0.0.1 at 2016-03-10 22:13:25 +0200
Processing by SimpleCart::CartsController#show as HTML
[1m[35mItem Load (0.5ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" IN (1, 3)
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" IN (1, 3)[0m
[1m[35mItem Load (0.2ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mItem Load (0.2ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", 3]]
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml (16.8ms)
Completed 200 OK in 20ms (Views: 18.2ms | ActiveRecord: 0.8ms)
Started GET "/simple_cart/cart?id=1" for 127.0.0.1 at 2016-03-10 22:13:26 +0200
Processing by SimpleCart::CartsController#show as HTML
Parameters: {"id"=>"1"}
[1m[35mItem Load (0.2ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" IN (1, 3)
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" IN (1, 3)[0m
[1m[35mItem Load (0.1ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mItem Load (0.1ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", 3]]
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml (16.2ms)
Completed 200 OK in 19ms (Views: 17.9ms | ActiveRecord: 0.4ms)
Started GET "/simple_cart/cart" for 127.0.0.1 at 2016-03-10 22:14:47 +0200
[1m[36mActiveRecord::SchemaMigration Load (0.2ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
Processing by SimpleCart::CartsController#show as HTML
[1m[35mItem Load (0.2ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" IN (1, 3)
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" IN (1, 3)[0m
[1m[35mItem Load (0.2ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mItem Load (0.1ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", 3]]
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml (60.9ms)
Completed 200 OK in 84ms (Views: 68.8ms | ActiveRecord: 0.9ms)
Started GET "/simple_cart/cart/dstr?id=1" for 127.0.0.1 at 2016-03-10 22:14:50 +0200
Processing by SimpleCart::CartsController#dstr as HTML
Parameters: {"id"=>"1"}
[1m[35mItem Load (0.1ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 3]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "3"]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "3"]]
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml (8.9ms)
Completed 200 OK in 24ms (Views: 23.3ms | ActiveRecord: 0.1ms)
Started GET "/simple_cart/cart/dstr?id=3" for 127.0.0.1 at 2016-03-10 22:14:52 +0200
Processing by SimpleCart::CartsController#dstr as HTML
Parameters: {"id"=>"3"}
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml (5.8ms)
Completed 200 OK in 9ms (Views: 8.1ms | ActiveRecord: 0.0ms)
Started GET "/simple_cart/cart/clear" for 127.0.0.1 at 2016-03-10 22:14:54 +0200
Processing by SimpleCart::CartsController#clear as HTML
Redirected to http://localhost:3000/
Completed 302 Found in 1ms (ActiveRecord: 0.0ms)
Started GET "/" for 127.0.0.1 at 2016-03-10 22:14:54 +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 (1.1ms)
Completed 200 OK in 6ms (Views: 6.2ms | ActiveRecord: 0.0ms)
Started GET "/items" for 127.0.0.1 at 2016-03-10 22:14:57 +0200
Processing by ItemsController#index as HTML
[1m[36mItem Load (0.2ms)[0m [1mSELECT "items".* FROM "items"[0m
Rendered items/index.html.erb within layouts/application (2.7ms)
Completed 200 OK in 148ms (Views: 146.9ms | ActiveRecord: 0.2ms)
Started GET "/items/2" for 127.0.0.1 at 2016-03-10 22:15:01 +0200
Processing by ItemsController#show as HTML
Parameters: {"id"=>"2"}
[1m[35mItem Load (0.2ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 2]]
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/_buy.html.haml (7.5ms)
Rendered items/show.html.erb within layouts/application (11.2ms)
Completed 200 OK in 21ms (Views: 19.8ms | ActiveRecord: 0.2ms)
Started POST "/simple_cart/cart/2" for 127.0.0.1 at 2016-03-10 22:15:04 +0200
Processing by SimpleCart::CartsController#add as HTML
Parameters: {"utf8"=>"✓", "authenticity_token"=>"deQu7+3SSqCKXIRMXW0joDd7YtfE/vrU3ItOxLnLcHBxVqlnUWKQ4e9IzsZtjBHDEHJc+hrqBiinSE+3EatuRw==", "qty"=>"5", "item"=>"Item", "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-10 22:15:04 +0200
Processing by SimpleCart::CartsController#show as HTML
[1m[36mItem Load (0.1ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", 2]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "2"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "2"]]
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml (12.0ms)
Completed 200 OK in 15ms (Views: 14.3ms | ActiveRecord: 0.1ms)
Started GET "/items/2" for 127.0.0.1 at 2016-03-10 22:15:16 +0200
Processing by ItemsController#show as HTML
Parameters: {"id"=>"2"}
[1m[35mItem Load (0.1ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 2]]
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/_buy.html.haml (7.1ms)
Rendered items/show.html.erb within layouts/application (8.8ms)
Completed 200 OK in 19ms (Views: 18.4ms | ActiveRecord: 0.1ms)
Started POST "/simple_cart/cart/2" for 127.0.0.1 at 2016-03-10 22:15:19 +0200
Processing by SimpleCart::CartsController#add as HTML
Parameters: {"utf8"=>"✓", "authenticity_token"=>"Qn/1upGHu15FfStj4a0Q1dBNKQmIbNbtYTQtWz57ZiFGzXIyLTdhHyBpYenRTCK290QXJFZ4KhEa9ywolht4Fg==", "qty"=>"2", "item"=>"Item", "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-10 22:15:19 +0200
Processing by SimpleCart::CartsController#show as HTML
[1m[36mItem Load (0.1ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", 2]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "2"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "2"]]
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml (12.0ms)
Completed 200 OK in 14ms (Views: 13.7ms | ActiveRecord: 0.2ms)
Started POST "/simple_cart/cart/2" for 127.0.0.1 at 2016-03-10 22:15:25 +0200
Processing by SimpleCart::CartsController#add as HTML
Parameters: {"utf8"=>"✓", "authenticity_token"=>"Qn/1upGHu15FfStj4a0Q1dBNKQmIbNbtYTQtWz57ZiFGzXIyLTdhHyBpYenRTCK290QXJFZ4KhEa9ywolht4Fg==", "qty"=>"5", "item"=>"Item", "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-10 22:15:25 +0200
Processing by SimpleCart::CartsController#show as HTML
[1m[35mItem Load (0.2ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 2]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "2"]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "2"]]
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml (12.0ms)
Completed 200 OK in 15ms (Views: 14.4ms | ActiveRecord: 0.2ms)
Started GET "/simple_cart/cart/dstr?id=2" for 127.0.0.1 at 2016-03-10 22:15:35 +0200
Processing by SimpleCart::CartsController#dstr as HTML
Parameters: {"id"=>"2"}
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml (6.4ms)
Completed 200 OK in 10ms (Views: 9.3ms | ActiveRecord: 0.0ms)
Started GET "/simple_cart/cart" for 127.0.0.1 at 2016-03-10 22:17:01 +0200
Processing by SimpleCart::CartsController#show as HTML
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml (15.2ms)
Completed 200 OK in 19ms (Views: 18.0ms | ActiveRecord: 0.0ms)
Started GET "/items/2" for 127.0.0.1 at 2016-03-10 22:17:06 +0200
Processing by ItemsController#show as HTML
Parameters: {"id"=>"2"}
[1m[36mItem Load (0.1ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", 2]]
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/_buy.html.haml (6.0ms)
Rendered items/show.html.erb within layouts/application (7.5ms)
Completed 200 OK in 17ms (Views: 15.5ms | ActiveRecord: 0.1ms)
Started POST "/simple_cart/cart/2" for 127.0.0.1 at 2016-03-10 22:17:08 +0200
Processing by SimpleCart::CartsController#add as HTML
Parameters: {"utf8"=>"✓", "authenticity_token"=>"eK86JpKufpMx1l1YLE2MZ+eGlUDmls+HgLndaZwdWyZ8Hb2uLh6k0lTCF9IcrL4EwI+rbTiCM3v7etwaNH1FEQ==", "qty"=>"1", "item"=>"Item", "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-10 22:17:08 +0200
Processing by SimpleCart::CartsController#show as HTML
[1m[35mItem Load (0.1ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 2]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "2"]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "2"]]
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml (14.8ms)
Completed 200 OK in 17ms (Views: 16.8ms | ActiveRecord: 0.2ms)
Started GET "/simple_cart/cart?id=2" for 127.0.0.1 at 2016-03-10 22:17:09 +0200
Processing by SimpleCart::CartsController#show as HTML
Parameters: {"id"=>"2"}
[1m[36mItem Load (0.1ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", 2]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "2"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "2"]]
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml (10.3ms)
Completed 200 OK in 13ms (Views: 12.4ms | ActiveRecord: 0.1ms)
Started GET "/simple_cart/cart?id=2" for 127.0.0.1 at 2016-03-10 22:17:12 +0200
Processing by SimpleCart::CartsController#show as HTML
Parameters: {"id"=>"2"}
[1m[35mItem Load (0.1ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 2]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "2"]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "2"]]
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml (16.8ms)
Completed 200 OK in 20ms (Views: 18.9ms | ActiveRecord: 0.2ms)
Started GET "/simple_cart/cart?id=2" for 127.0.0.1 at 2016-03-10 22:18:11 +0200
Processing by SimpleCart::CartsController#show as HTML
Parameters: {"id"=>"2"}
[1m[36mItem Load (0.1ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", 2]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "2"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "2"]]
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml (38.3ms)
Completed 200 OK in 43ms (Views: 41.3ms | ActiveRecord: 0.2ms)
Started GET "/simple_cart/cart" for 127.0.0.1 at 2016-03-10 22:18:14 +0200
Processing by SimpleCart::CartsController#show as HTML
[1m[35mItem Load (0.1ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 2]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "2"]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "2"]]
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml (10.5ms)
Completed 200 OK in 14ms (Views: 12.8ms | ActiveRecord: 0.1ms)
Started GET "/simple_cart/cart" for 127.0.0.1 at 2016-03-10 22:18:14 +0200
Processing by SimpleCart::CartsController#show as HTML
[1m[36mItem Load (0.1ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", 2]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "2"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "2"]]
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml (14.2ms)
Completed 200 OK in 17ms (Views: 16.6ms | ActiveRecord: 0.2ms)
Started GET "/simple_cart/cart?id=2" for 127.0.0.1 at 2016-03-10 22:18:16 +0200
Processing by SimpleCart::CartsController#show as HTML
Parameters: {"id"=>"2"}
[1m[35mItem Load (0.1ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 2]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "2"]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "2"]]
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml (12.4ms)
Completed 200 OK in 17ms (Views: 15.5ms | ActiveRecord: 0.2ms)
Started GET "/simple_cart/cart?id=2" for 127.0.0.1 at 2016-03-10 22:18:28 +0200
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
Processing by SimpleCart::CartsController#show as HTML
Parameters: {"id"=>"2"}
[1m[35mItem Load (0.3ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 2]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "2"]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "2"]]
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml (49.2ms)
Completed 200 OK in 73ms (Views: 58.7ms | ActiveRecord: 0.8ms)
Started GET "/simple_cart/cart?id=2" for 127.0.0.1 at 2016-03-10 22:18:30 +0200
Processing by SimpleCart::CartsController#show as HTML
Parameters: {"id"=>"2"}
[1m[36mItem Load (0.1ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", 2]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "2"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "2"]]
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml (24.2ms)
Completed 200 OK in 27ms (Views: 26.6ms | ActiveRecord: 0.2ms)
Started GET "/simple_cart/cart" for 127.0.0.1 at 2016-03-10 22:21:41 +0200
Processing by SimpleCart::CartsController#show as HTML
[1m[35mItem Load (0.2ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 2]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "2"]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "2"]]
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml (20.1ms)
Completed 200 OK in 22ms (Views: 21.9ms | ActiveRecord: 0.2ms)
Started GET "/simple_cart/cart" for 127.0.0.1 at 2016-03-10 22:21:41 +0200
Processing by SimpleCart::CartsController#show as HTML
[1m[36mItem Load (0.1ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", 2]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "2"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "2"]]
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml (9.4ms)
Completed 200 OK in 12ms (Views: 11.6ms | ActiveRecord: 0.1ms)
Started GET "/simple_cart/cart?id=2" for 127.0.0.1 at 2016-03-10 22:21:43 +0200
Processing by SimpleCart::CartsController#show as HTML
Parameters: {"id"=>"2"}
[1m[35mItem Load (0.2ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 2]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "2"]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "2"]]
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml (12.2ms)
Completed 200 OK in 16ms (Views: 14.8ms | ActiveRecord: 0.2ms)
Started GET "/simple_cart/cart" for 127.0.0.1 at 2016-03-10 22:23:01 +0200
Processing by SimpleCart::CartsController#show as HTML
[1m[36mItem Load (0.1ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", 2]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "2"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "2"]]
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml (10.8ms)
Completed 200 OK in 14ms (Views: 13.1ms | ActiveRecord: 0.1ms)
Started GET "/simple_cart/cart" for 127.0.0.1 at 2016-03-10 22:23:01 +0200
Processing by SimpleCart::CartsController#show as HTML
[1m[35mItem Load (0.1ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 2]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "2"]]
[1m[35mCACHE (0.1ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "2"]]
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml (11.0ms)
Completed 200 OK in 14ms (Views: 13.1ms | ActiveRecord: 0.2ms)
Started GET "/simple_cart/cart?id=2" for 127.0.0.1 at 2016-03-10 22:23:02 +0200
Processing by SimpleCart::CartsController#show as HTML
Parameters: {"id"=>"2"}
[1m[36mItem Load (0.1ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", 2]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "2"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "2"]]
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml (10.1ms)
Completed 200 OK in 13ms (Views: 12.1ms | ActiveRecord: 0.2ms)
Started GET "/simple_cart/cart?id=2" for 127.0.0.1 at 2016-03-10 22:23:03 +0200
Processing by SimpleCart::CartsController#show as HTML
Parameters: {"id"=>"2"}
[1m[35mItem Load (0.1ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 2]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "2"]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "2"]]
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml (9.1ms)
Completed 200 OK in 12ms (Views: 11.3ms | ActiveRecord: 0.1ms)
Started GET "/simple_cart/cart" for 127.0.0.1 at 2016-03-10 22:23:11 +0200
[1m[36mActiveRecord::SchemaMigration Load (0.2ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
Processing by SimpleCart::CartsController#show as HTML
[1m[35mItem Load (0.3ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 2]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "2"]]
[1m[35mCACHE (0.1ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "2"]]
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml (57.9ms)
Completed 200 OK in 83ms (Views: 68.4ms | ActiveRecord: 0.8ms)
Started GET "/simple_cart/cart" for 127.0.0.1 at 2016-03-10 22:23:12 +0200
Processing by SimpleCart::CartsController#show as HTML
[1m[36mItem Load (0.1ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", 2]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "2"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "2"]]
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml (23.2ms)
Completed 200 OK in 26ms (Views: 25.5ms | ActiveRecord: 0.2ms)
Started GET "/simple_cart/cart?id=2" for 127.0.0.1 at 2016-03-10 22:23:13 +0200
Processing by SimpleCart::CartsController#show as HTML
Parameters: {"id"=>"2"}
[1m[35mItem Load (0.1ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 2]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "2"]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "2"]]
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml (9.6ms)
Completed 200 OK in 13ms (Views: 12.0ms | ActiveRecord: 0.2ms)
Started GET "/simple_cart/cart" for 127.0.0.1 at 2016-03-10 22:24:05 +0200
Processing by SimpleCart::CartsController#show as HTML
[1m[36mItem Load (0.1ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", 2]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "2"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "2"]]
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml (13.9ms)
Completed 200 OK in 16ms (Views: 15.7ms | ActiveRecord: 0.1ms)
Started GET "/simple_cart/cart" for 127.0.0.1 at 2016-03-10 22:24:05 +0200
Processing by SimpleCart::CartsController#show as HTML
[1m[35mItem Load (0.1ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 2]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "2"]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "2"]]
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml (9.8ms)
Completed 200 OK in 14ms (Views: 12.5ms | ActiveRecord: 0.2ms)
Started DELETE "/simple_cart/cart" for 127.0.0.1 at 2016-03-10 22:24:06 +0200
Processing by SimpleCart::CartsController#destroy as HTML
Parameters: {"utf8"=>"✓", "authenticity_token"=>"LWKH4o/S8jbbVChuHyKVyaQ7hSppvJD05of85lmwxaQp0ABqM2Iod75AYuQvw6eqgzK7B7eobAidRP2V8dDbkw==", "2"=>"1", "coupon"=>""}
[1m[36mItem Load (0.1ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", 2]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "2"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "2"]]
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml (10.1ms)
Completed 200 OK in 13ms (Views: 12.2ms | ActiveRecord: 0.2ms)
Started DELETE "/simple_cart/cart" for 127.0.0.1 at 2016-03-10 22:24:08 +0200
Processing by SimpleCart::CartsController#destroy as HTML
Parameters: {"utf8"=>"✓", "authenticity_token"=>"BY2adZv/RyXSzAqJ9GgFvJ9MXGmtzyGMrTOXawS2C1EBPx39J0+dZLfYQAPEiTffuEViRHPb3XDW8JYYrNYVZg==", "2"=>"1", "coupon"=>""}
[1m[35mItem Load (0.2ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 2]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "2"]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "2"]]
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml (11.5ms)
Completed 200 OK in 14ms (Views: 13.3ms | ActiveRecord: 0.3ms)
Started DELETE "/simple_cart/cart" for 127.0.0.1 at 2016-03-10 22:24:20 +0200
Processing by SimpleCart::CartsController#destroy as HTML
Parameters: {"utf8"=>"✓", "authenticity_token"=>"kFPH3N7QUO4oQ29gakRV/TC72UHVDAhYx93g8m8zLs2U4UBUYmCKr01XJepapWeeF7LnbAsY9KS8HuGBx1Mw+g==", "2"=>"1", "coupon"=>""}
[1m[36mItem Load (0.1ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", 2]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "2"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "2"]]
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml (9.5ms)
Completed 200 OK in 12ms (Views: 11.4ms | ActiveRecord: 0.1ms)
Started DELETE "/simple_cart/cart" for 127.0.0.1 at 2016-03-10 22:25:03 +0200
Processing by SimpleCart::CartsController#destroy as HTML
Parameters: {"utf8"=>"✓", "authenticity_token"=>"kFPH3N7QUO4oQ29gakRV/TC72UHVDAhYx93g8m8zLs2U4UBUYmCKr01XJepapWeeF7LnbAsY9KS8HuGBx1Mw+g==", "2"=>"1", "coupon"=>""}
[1m[35mItem Load (0.1ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 2]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "2"]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "2"]]
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml (26.6ms)
Completed 200 OK in 30ms (Views: 29.5ms | ActiveRecord: 0.2ms)
Started DELETE "/simple_cart/cart" for 127.0.0.1 at 2016-03-10 22:25:05 +0200
Processing by SimpleCart::CartsController#destroy as HTML
Parameters: {"utf8"=>"✓", "authenticity_token"=>"AuyNlhtR4NeknlAcBNfvynJI8KWq6rTAUEgfnuKecE4GXgoep+E6lsGKGpY0Nt2pVUHOiHT+SDwrix7tSv5ueQ==", "2"=>"1", "coupon"=>""}
[1m[36mItem Load (0.2ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", 2]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "2"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "2"]]
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml (12.9ms)
Completed 200 OK in 16ms (Views: 14.8ms | ActiveRecord: 0.2ms)
Started GET "/simple_cart/cart" for 127.0.0.1 at 2016-03-10 22:25:14 +0200
Processing by SimpleCart::CartsController#show as HTML
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml (9.3ms)
Completed 500 Internal Server Error in 13ms (ActiveRecord: 0.0ms)
SyntaxError (/home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml:37: syntax error, unexpected '\n', expecting =>
/home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml:38: unknown regexp options - tr
/home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml:38: syntax error, unexpected $undefined
... \n \n", -2, false);end;_hamlout.p...
... ^
/home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml:38: syntax error, unexpected $undefined
....push_text(" \n | \n ...
^
/home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml:39: Can't assign to nil
_hamlout.attributes({}, nil, colspan: 3)}>\n ...
^
/home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml:39: unknown regexp options - trg
/home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml:39: syntax error, unexpected $undefined
...n \n \n ...
... ^
/home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml:39: unknown regexp options - td
/home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml:39: syntax error, unexpected $undefined
... \n \n \n ...
... ^
/home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml:39: syntax error, unexpected $undefined
... | \n \n #{_hamlout...
... ^
/home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml:46: syntax error, unexpected '}', expecting tSTRING_DEND
));}\n | \n ...
^
/home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml:46: unknown regexp options - td
/home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml:46: syntax error, unexpected $undefined
...td>\n | \n
\n ...
... ^
/home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml:46: unknown regexp options - tbdy
/home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml:46: syntax error, unexpected $undefined
... \n \n \n ...
... ^
/home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml:50: unknown regexp options - dv
/home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml:50: syntax error, unexpected $undefined
));}\n \n \n
\n #{
... ^
/home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml:52: syntax error, unexpected '}', expecting tSTRING_DEND
));}\n
\n ...
^
/home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml:52: unknown regexp options - dv
/home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml:52: syntax error, unexpected $undefined
...sm-1 col-sm-1 col-lg-2'>
\n \n \n #{
... ^
/home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml:55: syntax error, unexpected '}', expecting tSTRING_DEND
));}\n
\n ...
^
/home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml:57: unknown regexp options - dv
/home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml:57: syntax error, unexpected $undefined
));}\n \n \n
\n #{
... ^
/home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml:59: syntax error, unexpected '}', expecting tSTRING_DEND
));}\n
\n ...
^
/home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml:59: unknown regexp options - dv
/home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml:59: syntax error, unexpected $undefined
...
\n \n", -2, false);end;end;_hamlo...
... ^
/home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml:59: syntax error, unexpected $undefined, expecting tSTRING_DEND
...aml_temp);_hamlout.push_text("\n \n ...
... ^
/home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml:59: unknown regexp options - dv
/home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml:59: syntax error, unexpected $undefined
...\n \n \n \n \n...
... ^
/home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml:59: unknown regexp options - dv
/home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml:59: syntax error, unexpected $undefined
... \n \n \n\n", -5, false);::Haml...
... ^
/home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml:59: unterminated regexp meets end of file
/home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml:59: syntax error, unexpected end-of-input, expecting tSTRING_DEND):
/home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml:37: syntax error, unexpected '\n', expecting =>
/home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml:38: unknown regexp options - tr
/home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml:38: syntax error, unexpected $undefined
... \n \n", -2, false);end;_hamlout.p...
... ^
/home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml:38: syntax error, unexpected $undefined
....push_text(" \n | \n ...
^
/home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml:39: Can't assign to nil
_hamlout.attributes({}, nil, colspan: 3)}>\n ...
^
/home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml:39: unknown regexp options - trg
/home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml:39: syntax error, unexpected $undefined
...n \n \n ...
... ^
/home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml:39: unknown regexp options - td
/home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml:39: syntax error, unexpected $undefined
... \n \n \n ...
... ^
/home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml:39: syntax error, unexpected $undefined
... | \n \n #{_hamlout...
... ^
/home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml:46: syntax error, unexpected '}', expecting tSTRING_DEND
));}\n | \n ...
^
/home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml:46: unknown regexp options - td
/home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml:46: syntax error, unexpected $undefined
...td>\n | \n
\n ...
... ^
/home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml:46: unknown regexp options - tbdy
/home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml:46: syntax error, unexpected $undefined
... \n \n \n ...
... ^
/home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml:50: unknown regexp options - dv
/home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml:50: syntax error, unexpected $undefined
));}\n \n \n
\n #{
... ^
/home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml:52: syntax error, unexpected '}', expecting tSTRING_DEND
));}\n
\n ...
^
/home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml:52: unknown regexp options - dv
/home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml:52: syntax error, unexpected $undefined
...sm-1 col-sm-1 col-lg-2'>
\n \n \n #{
... ^
/home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml:55: syntax error, unexpected '}', expecting tSTRING_DEND
));}\n
\n ...
^
/home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml:57: unknown regexp options - dv
/home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml:57: syntax error, unexpected $undefined
));}\n \n \n
\n #{
... ^
/home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml:59: syntax error, unexpected '}', expecting tSTRING_DEND
));}\n
\n ...
^
/home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml:59: unknown regexp options - dv
/home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml:59: syntax error, unexpected $undefined
...
\n \n", -2, false);end;end;_hamlo...
... ^
/home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml:59: syntax error, unexpected $undefined, expecting tSTRING_DEND
...aml_temp);_hamlout.push_text("\n \n ...
... ^
/home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml:59: unknown regexp options - dv
/home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml:59: syntax error, unexpected $undefined
...\n \n \n \n \n...
... ^
/home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml:59: unknown regexp options - dv
/home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml:59: syntax error, unexpected $undefined
... \n \n \n\n", -5, false);::Haml...
... ^
/home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml:59: unterminated regexp meets end of file
/home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml:59: syntax error, unexpected end-of-input, expecting tSTRING_DEND
actionview (4.2.5.2) lib/action_view/template.rb:296:in `module_eval'
actionview (4.2.5.2) lib/action_view/template.rb:296:in `compile'
actionview (4.2.5.2) lib/action_view/template.rb:245:in `block (2 levels) in compile!'
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:244:in `block in compile!'
actionview (4.2.5.2) lib/action_view/template.rb:232:in `synchronize'
actionview (4.2.5.2) lib/action_view/template.rb:232:in `compile!'
actionview (4.2.5.2) lib/action_view/template.rb:144: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 (8.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 (4.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 (23.2ms)
Started GET "/simple_cart/cart" for 127.0.0.1 at 2016-03-10 22:26:05 +0200
Processing by SimpleCart::CartsController#show as HTML
[1m[35mItem Load (0.1ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 2]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "2"]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "2"]]
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml (16.6ms)
Completed 200 OK in 20ms (Views: 18.7ms | ActiveRecord: 0.2ms)
Started DELETE "/simple_cart/cart" for 127.0.0.1 at 2016-03-10 22:26:07 +0200
Processing by SimpleCart::CartsController#destroy as HTML
Parameters: {"utf8"=>"✓", "authenticity_token"=>"U6Imu56ttXVzwfz8O5OdwODkXVgttPYYF0NEcU7H1rFXEKEzIh1vNBbVtnYLcq+jx+1jdfOgCuRsgEUC5qfIhg==", "2"=>"1", "coupon"=>""}
[1m[36mItem Load (0.2ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", 2]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "2"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "2"]]
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml (8.9ms)
Completed 200 OK in 12ms (Views: 10.8ms | ActiveRecord: 0.3ms)
Started DELETE "/simple_cart/cart" for 127.0.0.1 at 2016-03-10 22:26:09 +0200
Processing by SimpleCart::CartsController#destroy as HTML
Parameters: {"utf8"=>"✓", "authenticity_token"=>"Z+1eV7Gbnw1IeCRe3z6Ro7P1EsfZMTpR0fwOL0hJpOVjX9nfDStFTC1sbtTv36PAlPws6gclxq2qPw9c4Cm60g==", "2"=>"1", "coupon"=>""}
[1m[35mItem Load (0.2ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 2]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "2"]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "2"]]
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml (7.6ms)
Completed 200 OK in 11ms (Views: 10.2ms | ActiveRecord: 0.2ms)
Started GET "/simple_cart/cart" for 127.0.0.1 at 2016-03-10 22:27:22 +0200
[1m[36mActiveRecord::SchemaMigration Load (0.2ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
Processing by SimpleCart::CartsController#show as HTML
[1m[35mItem Load (0.2ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 2]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "2"]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "2"]]
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml (41.7ms)
Completed 200 OK in 63ms (Views: 49.0ms | ActiveRecord: 0.6ms)
Started DELETE "/simple_cart/cart" for 127.0.0.1 at 2016-03-10 22:27:23 +0200
Processing by SimpleCart::CartsController#destroy as HTML
Parameters: {"utf8"=>"✓", "authenticity_token"=>"eAJ0y6cqBpy76huUcoB8X2pCqsaoHKBcnigGJ1LRZxJ8sPNDG5rc3d7+UR5CYU48TUuU63YIXKDl6wdU+rF5JQ==", "2"=>"1", "coupon"=>""}
[1m[36mItem Load (0.1ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", 2]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "2"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "2"]]
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml (8.4ms)
Completed 200 OK in 26ms (Views: 25.1ms | ActiveRecord: 0.2ms)
Started DELETE "/simple_cart/cart" for 127.0.0.1 at 2016-03-10 22:28:05 +0200
Processing by SimpleCart::CartsController#destroy as HTML
Parameters: {"utf8"=>"✓", "authenticity_token"=>"eAJ0y6cqBpy76huUcoB8X2pCqsaoHKBcnigGJ1LRZxJ8sPNDG5rc3d7+UR5CYU48TUuU63YIXKDl6wdU+rF5JQ==", "2"=>"1", "coupon"=>""}
[1m[35mItem Load (0.1ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 2]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "2"]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "2"]]
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml (14.8ms)
Completed 200 OK in 18ms (Views: 17.0ms | ActiveRecord: 0.1ms)
Started DELETE "/simple_cart/cart" for 127.0.0.1 at 2016-03-10 22:28:48 +0200
Processing by SimpleCart::CartsController#destroy as HTML
Parameters: {"utf8"=>"✓", "authenticity_token"=>"YvZ6WAPEFo2Xjk/7Jm05h5EGqzyIUMpWiWfIfeXGKnpmRP3Qv3TMzPKaBXEWjAvktg+VEVZENqrypMkOTaY0TQ==", "2"=>"1", "coupon"=>""}
[1m[36mItem Load (0.1ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", 2]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "2"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "2"]]
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml (7.7ms)
Completed 200 OK in 10ms (Views: 9.8ms | ActiveRecord: 0.1ms)
Started DELETE "/simple_cart/cart" for 127.0.0.1 at 2016-03-10 22:33:00 +0200
Processing by SimpleCart::CartsController#destroy as HTML
Parameters: {"utf8"=>"✓", "authenticity_token"=>"BX+BokMc5bAsFJY0uFQYKMfYBSb1m/RkeS6aIbkwDugBzQYq/6w/8UkA3L6ItSpL4NE7CyuPCJgC7ZtSEVAQ3w==", "2"=>"1", "coupon"=>""}
[1m[35mItem Load (0.1ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 2]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "2"]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "2"]]
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml (7.9ms)
Completed 200 OK in 11ms (Views: 10.0ms | ActiveRecord: 0.2ms)
Started DELETE "/simple_cart/cart" for 127.0.0.1 at 2016-03-10 22:33:12 +0200
Processing by SimpleCart::CartsController#destroy as HTML
Parameters: {"utf8"=>"✓", "authenticity_token"=>"9cNiwaqjuKZN/me2wNfJddRNYn8ORRXHPHddxloQ6VfxceVJFhNi5yjqLTzwNvsW80RcUtBR6TtHtFy18nD3YA==", "2"=>"1", "coupon"=>"A2016"}
[1m[36mItem Load (0.2ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", 2]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "2"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "2"]]
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml (12.3ms)
Completed 200 OK in 17ms (Views: 16.3ms | ActiveRecord: 0.3ms)
Started DELETE "/simple_cart/cart" for 127.0.0.1 at 2016-03-10 22:36:27 +0200
Processing by SimpleCart::CartsController#destroy as HTML
Parameters: {"utf8"=>"✓", "authenticity_token"=>"9cNiwaqjuKZN/me2wNfJddRNYn8ORRXHPHddxloQ6VfxceVJFhNi5yjqLTzwNvsW80RcUtBR6TtHtFy18nD3YA==", "2"=>"1", "coupon"=>"A2016"}
[1m[35mItem Load (0.1ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 2]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "2"]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "2"]]
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml (6.9ms)
Completed 200 OK in 9ms (Views: 8.7ms | ActiveRecord: 0.1ms)
Started DELETE "/simple_cart/cart" for 127.0.0.1 at 2016-03-10 22:36:42 +0200
Processing by SimpleCart::CartsController#destroy as HTML
Parameters: {"utf8"=>"✓", "authenticity_token"=>"5j3S+XQIhe9ROx8JUVm9QYs3yT353UyQ/rADYtZ1d9Hij1VxyLhfrjQvVYNhuI8irD73ECfJsGyFcwIRfhVp5g==", "2"=>"1", "coupon"=>""}
[1m[36mItem Load (0.1ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", 2]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "2"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "2"]]
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml (5.8ms)
Completed 200 OK in 9ms (Views: 8.3ms | ActiveRecord: 0.1ms)
Started DELETE "/simple_cart/cart" for 127.0.0.1 at 2016-03-10 22:36:43 +0200
Processing by SimpleCart::CartsController#destroy as HTML
Parameters: {"utf8"=>"✓", "authenticity_token"=>"Fs/wW/7U1NEWyP82t6y8EPeM3hW1nvoilY0ejme+AG4SfXfTQmQOkHPctbyHTY5z0IXgOGuKBt7uTh/9z94eWQ==", "2"=>"1", "coupon"=>""}
[1m[35mItem Load (0.1ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 2]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "2"]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "2"]]
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml (6.8ms)
Completed 200 OK in 9ms (Views: 8.4ms | ActiveRecord: 0.1ms)
Started DELETE "/simple_cart/cart" for 127.0.0.1 at 2016-03-10 22:36:45 +0200
Processing by SimpleCart::CartsController#destroy as HTML
Parameters: {"utf8"=>"✓", "authenticity_token"=>"U4eRYMjQyQe89lffmkmRHYHcukD7EgNARsaPz2oFYStXNRbodGATRtniHVWqqKN+ptWEbSUG/7w9BY68wmV/HA==", "2"=>"1", "coupon"=>""}
[1m[36mItem Load (0.1ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", 2]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "2"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "2"]]
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml (10.9ms)
Completed 200 OK in 14ms (Views: 13.5ms | ActiveRecord: 0.2ms)
Started DELETE "/simple_cart/cart" for 127.0.0.1 at 2016-03-10 22:37:01 +0200
Processing by SimpleCart::CartsController#destroy as HTML
Parameters: {"utf8"=>"✓", "authenticity_token"=>"9NNXYS/h+ryip9ZEHqkevNCFUZrrBdZzB476SbceHJ/wYdDpk1Eg/ceznM4uSCzf94xvtzURKo98Tfs6H34CqA==", "2"=>"1", "coupon"=>""}
[1m[35mItem Load (0.1ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 2]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "2"]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "2"]]
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml (8.6ms)
Completed 200 OK in 11ms (Views: 10.4ms | ActiveRecord: 0.2ms)
Started DELETE "/simple_cart/cart" for 127.0.0.1 at 2016-03-10 22:37:41 +0200
Processing by SimpleCart::CartsController#destroy as HTML
Parameters: {"utf8"=>"✓", "authenticity_token"=>"eSTrMjnzT9YUvJI9O4Md+Nr05mK7gZsV/72HoeQuAph9lmy6hUOVl3Go2LcLYi+b/f3YT2WVZ+mEfobSTE4crw==", "2"=>"1", "coupon"=>""}
[1m[36mItem Load (0.1ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", 2]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "2"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "2"]]
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml (8.3ms)
Completed 200 OK in 11ms (Views: 10.0ms | ActiveRecord: 0.2ms)
Started DELETE "/simple_cart/cart" for 127.0.0.1 at 2016-03-10 22:37:49 +0200
Processing by SimpleCart::CartsController#destroy as HTML
Parameters: {"utf8"=>"✓", "authenticity_token"=>"7EYWDgW6++5SotmKTbRgU1v7oMgOxks/0p0+XwDekwfo9JGGuQohrze2kwB9VVIwfPKe5dDSt8OpXj8sqL6NMA==", "2"=>"4", "coupon"=>"", "commit"=>"Update"}
[1m[35mItem Load (0.1ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 2]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "2"]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "2"]]
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml (8.3ms)
Completed 200 OK in 12ms (Views: 10.9ms | ActiveRecord: 0.1ms)
Started DELETE "/simple_cart/cart" for 127.0.0.1 at 2016-03-10 22:37:53 +0200
Processing by SimpleCart::CartsController#destroy as HTML
Parameters: {"utf8"=>"✓", "authenticity_token"=>"QvclwHxhi/hs86yrZmar9Kixd8D59hYHnnlvWe8Lpt5GRaJIwNFRuQnn5iFWh5mXj7hJ7Sfi6vvlum4qR2u46Q==", "2"=>"1", "coupon"=>"", "commit"=>"Update"}
[1m[36mItem Load (0.1ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", 2]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "2"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "2"]]
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml (5.6ms)
Completed 200 OK in 9ms (Views: 8.2ms | ActiveRecord: 0.1ms)
Started DELETE "/simple_cart/cart" for 127.0.0.1 at 2016-03-10 22:37:56 +0200
Processing by SimpleCart::CartsController#destroy as HTML
Parameters: {"utf8"=>"✓", "authenticity_token"=>"I4QOSNcThbUvi6ztdbCoWoat7Cp3/j5YvWS3N5hKpiknNonAa6Nf9Eqf5mdFUZo5oaTSB6nqwqTGp7ZEMCq4Hg==", "2"=>"1", "coupon"=>"", "commit"=>"Update"}
[1m[35mItem Load (0.1ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 2]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "2"]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "2"]]
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml (8.1ms)
Completed 200 OK in 11ms (Views: 9.9ms | ActiveRecord: 0.2ms)
Started DELETE "/simple_cart/cart" for 127.0.0.1 at 2016-03-10 22:37:58 +0200
Processing by SimpleCart::CartsController#destroy as HTML
Parameters: {"utf8"=>"✓", "authenticity_token"=>"8mPwJIRxnBSuGVB1vzZ+7sOXrvspNMX+sC3Gj0hcX5b20XesOMFGVcsNGv+P10yN5J6Q1vcgOQLL7sf84DxBoQ==", "2"=>"3", "coupon"=>"", "commit"=>"Update"}
[1m[36mItem Load (0.1ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", 2]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "2"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "2"]]
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml (7.5ms)
Completed 200 OK in 10ms (Views: 9.0ms | ActiveRecord: 0.1ms)
Started DELETE "/simple_cart/cart" for 127.0.0.1 at 2016-03-10 22:38:31 +0200
Processing by SimpleCart::CartsController#destroy as HTML
Parameters: {"utf8"=>"✓", "authenticity_token"=>"B5saETRTAbe+1ZyiMnY7gUfOO8QdrWVJ7UFoa3ceCbsDKZ2ZiOPb9tvB1igClwniYMcF6cO5mbWWgmkY334XjA==", "2"=>"1", "coupon"=>"", "commit"=>"Update"}
[1m[35mItem Load (0.1ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 2]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "2"]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "2"]]
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml (8.7ms)
Completed 200 OK in 12ms (Views: 11.6ms | ActiveRecord: 0.2ms)
Started DELETE "/simple_cart/cart" for 127.0.0.1 at 2016-03-10 22:38:33 +0200
Processing by SimpleCart::CartsController#destroy as HTML
Parameters: {"utf8"=>"✓", "authenticity_token"=>"Wi5EXSv1rArizQwCRMu3DGv6Djqxd5J9tTzuYF3VSIpenMPVl0V2S4fZRoh0KoVvTPMwF29jboHO/+8T9bVWvQ==", "2"=>"1", "coupon"=>"", "commit"=>"Update"}
[1m[36mItem Load (0.1ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", 2]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "2"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "2"]]
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml (11.4ms)
Completed 200 OK in 15ms (Views: 13.9ms | ActiveRecord: 0.2ms)
Started DELETE "/simple_cart/cart" for 127.0.0.1 at 2016-03-10 22:39:15 +0200
Processing by SimpleCart::CartsController#destroy as HTML
Parameters: {"utf8"=>"✓", "authenticity_token"=>"Wi5EXSv1rArizQwCRMu3DGv6Djqxd5J9tTzuYF3VSIpenMPVl0V2S4fZRoh0KoVvTPMwF29jboHO/+8T9bVWvQ==", "2"=>"1", "coupon"=>"", "commit"=>"Update"}
[1m[35mItem Load (0.1ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 2]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "2"]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "2"]]
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml (23.5ms)
Completed 200 OK in 26ms (Views: 25.2ms | ActiveRecord: 0.1ms)
Started PUT "/simple_cart/cart" for 127.0.0.1 at 2016-03-10 22:39:17 +0200
Processing by SimpleCart::CartsController#update as HTML
Parameters: {"utf8"=>"✓", "authenticity_token"=>"V34GPU4+hkgtgck1CLEmUYaKnU1tmLHy6WXTjzinf8JTzIG18o5cCUiVg784UBQyoYOjYLOMTQ6SptL8kMdh9Q==", "2"=>"1", "coupon"=>"", "commit"=>"Update"}
Completed 500 Internal Server Error in 1ms (ActiveRecord: 0.0ms)
NameError (uninitialized constant Cart::Coupon):
/home/leksster/ror/Rubygarage/Amazon/simple_cart/app/models/cart.rb:59:in `discount'
/home/leksster/ror/Rubygarage/Amazon/simple_cart/app/models/cart.rb:55:in `update_books'
/home/leksster/ror/Rubygarage/Amazon/simple_cart/app/controllers/simple_cart/carts_controller.rb:28:in `update'
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.5ms)
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 (17.4ms)
Started DELETE "/simple_cart/cart" for 127.0.0.1 at 2016-03-10 22:39:26 +0200
Processing by SimpleCart::CartsController#destroy as HTML
Parameters: {"utf8"=>"✓", "authenticity_token"=>"Wi5EXSv1rArizQwCRMu3DGv6Djqxd5J9tTzuYF3VSIpenMPVl0V2S4fZRoh0KoVvTPMwF29jboHO/+8T9bVWvQ==", "2"=>"1", "coupon"=>"", "commit"=>"Update"}
[1m[36mItem Load (0.1ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", 2]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "2"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "2"]]
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml (11.2ms)
Completed 200 OK in 14ms (Views: 13.0ms | ActiveRecord: 0.2ms)
Started GET "/simple_cart/cart" for 127.0.0.1 at 2016-03-10 22:39:36 +0200
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
Processing by SimpleCart::CartsController#show as HTML
[1m[35mItem Load (0.2ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 2]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "2"]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "2"]]
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml (43.5ms)
Completed 200 OK in 64ms (Views: 50.7ms | ActiveRecord: 0.8ms)
Started PUT "/simple_cart/cart" for 127.0.0.1 at 2016-03-10 22:39:39 +0200
Processing by SimpleCart::CartsController#update as HTML
Parameters: {"utf8"=>"✓", "authenticity_token"=>"sKSwXi6mIthoHLvmFiYtMXytEXeUASBM5paj6IRfVE+0FjfWkhb4mQ0I8Wwmxx9SW6QvWkoV3LCdVaKbLD9KeA==", "2"=>"1", "coupon"=>"", "commit"=>"Update"}
Completed 500 Internal Server Error in 15ms (ActiveRecord: 0.0ms)
NameError (uninitialized constant Cart::Coupon):
/home/leksster/ror/Rubygarage/Amazon/simple_cart/app/models/cart.rb:59:in `discount'
/home/leksster/ror/Rubygarage/Amazon/simple_cart/app/models/cart.rb:55:in `update_books'
/home/leksster/ror/Rubygarage/Amazon/simple_cart/app/controllers/simple_cart/carts_controller.rb:28:in `update'
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.7ms)
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 (17.0ms)
Started GET "/simple_cart/cart" for 127.0.0.1 at 2016-03-10 22:40:13 +0200
Processing by SimpleCart::CartsController#show as HTML
[1m[36mItem Load (0.1ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", 2]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "2"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "2"]]
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml (9.8ms)
Completed 200 OK in 12ms (Views: 11.3ms | ActiveRecord: 0.2ms)
Started PUT "/simple_cart/cart" for 127.0.0.1 at 2016-03-10 22:40:14 +0200
Processing by SimpleCart::CartsController#update as HTML
Parameters: {"utf8"=>"✓", "authenticity_token"=>"F1kIf+Quem1PGpCzfgIFpc5kLuLGkpBVQg5uWUBdto8T64/3WJ6gLCoO2jlO4zfG6W0QzxiGbKk5zW8q6D2ouA==", "2"=>"1", "coupon"=>"", "commit"=>"Update"}
Completed 500 Internal Server Error in 1ms (ActiveRecord: 0.0ms)
NameError (uninitialized constant Cart::Coupon):
/home/leksster/ror/Rubygarage/Amazon/simple_cart/app/models/cart.rb:59:in `discount'
/home/leksster/ror/Rubygarage/Amazon/simple_cart/app/models/cart.rb:55:in `update_books'
/home/leksster/ror/Rubygarage/Amazon/simple_cart/app/controllers/simple_cart/carts_controller.rb:28:in `update'
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 (5.1ms)
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.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 (17.3ms)
Started GET "/simple_cart/cart" for 127.0.0.1 at 2016-03-10 22:40:24 +0200
Processing by SimpleCart::CartsController#show as HTML
[1m[35mItem Load (0.1ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 2]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "2"]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "2"]]
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml (12.6ms)
Completed 200 OK in 18ms (Views: 15.8ms | ActiveRecord: 0.5ms)
Started PUT "/simple_cart/cart" for 127.0.0.1 at 2016-03-10 22:40:26 +0200
Processing by SimpleCart::CartsController#update as HTML
Parameters: {"utf8"=>"✓", "authenticity_token"=>"15Vk4yDp+X8JAyE+LHD0DKHL2NU0GpqctnW/ZIW4TsLTJ+NrnFkjPmwXa7QckcZvhsLm+OoOZmDNtr4XLdhQ9Q==", "2"=>"1", "coupon"=>"", "commit"=>"Update"}
[1m[36mItem Load (0.1ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", 2]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "2"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "2"]]
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml (10.9ms)
Completed 200 OK in 13ms (Views: 12.8ms | ActiveRecord: 0.1ms)
Started PUT "/simple_cart/cart" for 127.0.0.1 at 2016-03-10 22:40:29 +0200
Processing by SimpleCart::CartsController#update as HTML
Parameters: {"utf8"=>"✓", "authenticity_token"=>"Z5kewU5BlmQEjBe9PcoFO7c+qDRljCfQVr0RpWzzhv9jK5lJ8vFMJWGYXTcNKzdYkDeWGbuY2ywtfhDWxJOYyA==", "2"=>"2", "coupon"=>"", "commit"=>"Update"}
[1m[35mItem Load (0.2ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 2]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "2"]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "2"]]
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml (12.3ms)
Completed 200 OK in 15ms (Views: 14.6ms | ActiveRecord: 0.2ms)
Started PUT "/simple_cart/cart" for 127.0.0.1 at 2016-03-10 22:40:32 +0200
Processing by SimpleCart::CartsController#update as HTML
Parameters: {"utf8"=>"✓", "authenticity_token"=>"FMZeqcAwyAELqOzjiz0xHimmTSgdjfOOUpKieI3rGQMQdNkhfIASQG68pmm73AN9Dq9zBcOZD3IpUaMLJYsHNA==", "2"=>"5", "coupon"=>"", "commit"=>"Update"}
[1m[36mItem Load (0.1ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", 2]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "2"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "2"]]
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml (11.7ms)
Completed 200 OK in 15ms (Views: 13.9ms | ActiveRecord: 0.1ms)
Started PUT "/simple_cart/cart" for 127.0.0.1 at 2016-03-10 22:41:09 +0200
Processing by SimpleCart::CartsController#update as HTML
Parameters: {"utf8"=>"✓", "authenticity_token"=>"YemCFFH9Cd5tiCcYF+QcbZv2apig0z1YYiI1wJk9wf5lWwWc7U3TnwicbZInBS4OvP9UtX7HwaQZ4TSzMV3fyQ==", "2"=>"3", "coupon"=>"", "commit"=>"Update"}
[1m[35mItem Load (0.1ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 2]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "2"]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "2"]]
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml (13.2ms)
Completed 200 OK in 19ms (Views: 17.1ms | ActiveRecord: 0.5ms)
Started GET "/simple_cart/cart" for 127.0.0.1 at 2016-03-10 22:41:57 +0200
Processing by SimpleCart::CartsController#show as HTML
[1m[36mItem Load (0.1ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", 2]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "2"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "2"]]
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml (12.9ms)
Completed 200 OK in 16ms (Views: 15.2ms | ActiveRecord: 0.1ms)
Started PUT "/simple_cart/cart" for 127.0.0.1 at 2016-03-10 22:42:03 +0200
Processing by SimpleCart::CartsController#update as HTML
Parameters: {"utf8"=>"✓", "authenticity_token"=>"ZzhlBH/o0dyaskJBJWuD+VXNLYf7dDsJbdEnH2E4vFtjiuKMw1gLnf+mCMsVirGacsQTqiVgx/UWEiZsyViibA==", "2"=>"6", "coupon"=>"", "commit"=>"Update"}
[1m[35mItem Load (0.2ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 2]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "2"]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "2"]]
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml (15.1ms)
Completed 200 OK in 19ms (Views: 18.1ms | ActiveRecord: 0.2ms)
Started PUT "/simple_cart/cart" for 127.0.0.1 at 2016-03-10 22:42:06 +0200
Processing by SimpleCart::CartsController#update as HTML
Parameters: {"utf8"=>"✓", "authenticity_token"=>"4AJ2ii+twwLln3vtO+Gw1QYRJwe33jVqRww9QMFqYDjksPECkx0ZQ4CLMWcLAIK2IRgZKmnKyZY8zzwzaQp+Dw==", "2"=>"10", "coupon"=>"", "commit"=>"Update"}
[1m[36mItem Load (0.1ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", 2]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "2"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "2"]]
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml (10.6ms)
Completed 200 OK in 13ms (Views: 12.8ms | ActiveRecord: 0.2ms)
Started PUT "/simple_cart/cart" for 127.0.0.1 at 2016-03-10 22:42:18 +0200
Processing by SimpleCart::CartsController#update as HTML
Parameters: {"utf8"=>"✓", "authenticity_token"=>"JSu6q2gNOoS0zGF0enKD/OJCJQHGFOxCoTsGzNnUXgohmT0j1L3gxdHYK/5Kk7GfxUsbLBgAEL7a+Ae/cbRAPQ==", "2"=>"10", "coupon"=>"", "commit"=>"Update"}
[1m[35mItem Load (0.1ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 2]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "2"]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "2"]]
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml (10.4ms)
Completed 200 OK in 13ms (Views: 12.4ms | ActiveRecord: 0.2ms)
Started PUT "/simple_cart/cart" for 127.0.0.1 at 2016-03-10 22:42:22 +0200
Processing by SimpleCart::CartsController#update as HTML
Parameters: {"utf8"=>"✓", "authenticity_token"=>"0AVY4r4EtfIjNM0XP3c/Mla8sCjdvS2nsfMFFXIj5BHUt99qArRvs0Ygh50Plg1RcbWOBQOp0VvKMARm2kP6Jg==", "2"=>"7", "coupon"=>"", "commit"=>"Update"}
[1m[36mItem Load (0.1ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", 2]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "2"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "2"]]
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml (10.8ms)
Completed 200 OK in 14ms (Views: 13.1ms | ActiveRecord: 0.2ms)
Started PUT "/simple_cart/cart" for 127.0.0.1 at 2016-03-10 22:42:24 +0200
Processing by SimpleCart::CartsController#update as HTML
Parameters: {"utf8"=>"✓", "authenticity_token"=>"PwIo+Ouwkuif61D9UnlIi749VGdb8YxNBYZyTh7MY787sK9wVwBIqfr/GndimHromTRqSoXlcLF+RXM9tqx9iA==", "2"=>"3", "coupon"=>"", "commit"=>"Update"}
[1m[35mItem Load (0.1ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 2]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "2"]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "2"]]
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml (10.1ms)
Completed 200 OK in 13ms (Views: 12.0ms | ActiveRecord: 0.2ms)
Started GET "/simple_cart/cart?id=2" for 127.0.0.1 at 2016-03-10 22:42:31 +0200
Processing by SimpleCart::CartsController#show as HTML
Parameters: {"id"=>"2"}
[1m[36mItem Load (0.2ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", 2]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "2"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "2"]]
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml (10.2ms)
Completed 200 OK in 15ms (Views: 13.6ms | ActiveRecord: 0.2ms)
Started GET "/simple_cart/cart?id=2" for 127.0.0.1 at 2016-03-10 22:42:32 +0200
Processing by SimpleCart::CartsController#show as HTML
Parameters: {"id"=>"2"}
[1m[35mItem Load (0.1ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 2]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "2"]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "2"]]
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml (11.1ms)
Completed 200 OK in 14ms (Views: 13.6ms | ActiveRecord: 0.2ms)
Started GET "/simple_cart/cart?id=2" for 127.0.0.1 at 2016-03-10 22:42:35 +0200
Processing by SimpleCart::CartsController#show as HTML
Parameters: {"id"=>"2"}
[1m[36mItem Load (0.1ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", 2]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "2"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "2"]]
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml (11.3ms)
Completed 200 OK in 14ms (Views: 13.7ms | ActiveRecord: 0.1ms)
Started GET "/simple_cart/cart" for 127.0.0.1 at 2016-03-10 22:43:25 +0200
Processing by SimpleCart::CartsController#show as HTML
[1m[35mItem Load (0.1ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 2]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "2"]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "2"]]
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml (11.5ms)
Completed 200 OK in 17ms (Views: 15.4ms | ActiveRecord: 0.5ms)
Started GET "/simple_cart/cart" for 127.0.0.1 at 2016-03-10 22:43:25 +0200
Processing by SimpleCart::CartsController#show as HTML
[1m[36mItem Load (0.1ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", 2]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "2"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "2"]]
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml (10.5ms)
Completed 200 OK in 13ms (Views: 12.4ms | ActiveRecord: 0.2ms)
Started PUT "/simple_cart/cart" for 127.0.0.1 at 2016-03-10 22:43:28 +0200
Processing by SimpleCart::CartsController#update as HTML
Parameters: {"utf8"=>"✓", "authenticity_token"=>"RVseqjn3O8F5gp2VDG51dvzkFuBMU3CNDsAuSZ4ZPnRB6ZkihUfhgByW1x88j0cV2+0ozZJHjHF1Ay86NnkgQw==", "2"=>"5", "coupon"=>"", "commit"=>"Update"}
[1m[35mItem Load (0.1ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 2]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "2"]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "2"]]
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml (9.5ms)
Completed 200 OK in 13ms (Views: 12.0ms | ActiveRecord: 0.2ms)
Started GET "/simple_cart/cart?id=2" for 127.0.0.1 at 2016-03-10 22:43:30 +0200
Processing by SimpleCart::CartsController#show as HTML
Parameters: {"id"=>"2"}
[1m[36mItem Load (0.1ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", 2]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "2"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "2"]]
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml (11.2ms)
Completed 200 OK in 14ms (Views: 13.1ms | ActiveRecord: 0.1ms)
Started GET "/simple_cart/cart?id=2" for 127.0.0.1 at 2016-03-10 22:44:06 +0200
Processing by SimpleCart::CartsController#show as HTML
Parameters: {"id"=>"2"}
[1m[35mItem Load (0.1ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 2]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "2"]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "2"]]
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml (18.1ms)
Completed 200 OK in 20ms (Views: 19.8ms | ActiveRecord: 0.1ms)
Started GET "/simple_cart/cart/remove?id=2" for 127.0.0.1 at 2016-03-10 22:44:08 +0200
Processing by SimpleCart::CartsController#remove as HTML
Parameters: {"id"=>"2"}
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml (4.2ms)
Completed 200 OK in 7ms (Views: 6.7ms | ActiveRecord: 0.0ms)
Started GET "/items/2" for 127.0.0.1 at 2016-03-10 22:44:15 +0200
Processing by ItemsController#show as HTML
Parameters: {"id"=>"2"}
[1m[36mItem Load (0.1ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", 2]]
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/_buy.html.haml (9.7ms)
Rendered items/show.html.erb within layouts/application (17.9ms)
Completed 200 OK in 214ms (Views: 213.2ms | ActiveRecord: 0.1ms)
Started POST "/simple_cart/cart/2" for 127.0.0.1 at 2016-03-10 22:44:18 +0200
Processing by SimpleCart::CartsController#add as HTML
Parameters: {"utf8"=>"✓", "authenticity_token"=>"PbCVst7pcKJgWPfT8W5zqLgWCSbc10ObRpDNiGTaWXk5AhI6Ylmq4wVMvVnBj0HLnx83CwLDv2c9U8z7zLpHTg==", "qty"=>"4", "item"=>"Item", "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-10 22:44:18 +0200
Processing by SimpleCart::CartsController#show as HTML
[1m[35mItem Load (0.1ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 2]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "2"]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "2"]]
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml (8.8ms)
Completed 200 OK in 12ms (Views: 10.8ms | ActiveRecord: 0.2ms)
Started PUT "/simple_cart/cart" for 127.0.0.1 at 2016-03-10 22:44:21 +0200
Processing by SimpleCart::CartsController#update as HTML
Parameters: {"utf8"=>"✓", "authenticity_token"=>"T04/u7NeXluseL7j6poBxv9eFep2qcj8Q4Ey32d1+NJL/LgzD+6EGsls9GnaezOl2Fcrx6i9NAA4QjOszxXm5Q==", "2"=>"3", "coupon"=>"", "commit"=>"Update"}
[1m[36mItem Load (0.1ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", 2]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "2"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "2"]]
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml (8.8ms)
Completed 200 OK in 12ms (Views: 11.1ms | ActiveRecord: 0.2ms)
Started GET "/items/1" for 127.0.0.1 at 2016-03-10 22:44:27 +0200
Processing by ItemsController#show as HTML
Parameters: {"id"=>"1"}
[1m[35mItem Load (0.1ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 1]]
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/_buy.html.haml (5.4ms)
Rendered items/show.html.erb within layouts/application (6.9ms)
Completed 200 OK in 17ms (Views: 16.0ms | ActiveRecord: 0.1ms)
Started POST "/simple_cart/cart/1" for 127.0.0.1 at 2016-03-10 22:44:30 +0200
Processing by SimpleCart::CartsController#add as HTML
Parameters: {"utf8"=>"✓", "authenticity_token"=>"syyKAFiB1WF6fscvg0EuXU+pVrbimpDFOxUYXnp7Du63ng2I5DEPIB9qjaWzoBw+aKBomzyObDlA1hkt0hsQ2Q==", "qty"=>"4", "item"=>"Item", "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-10 22:44:30 +0200
Processing by SimpleCart::CartsController#show as HTML
[1m[36mItem Load (0.3ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" IN (2, 1)[0m
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" IN (2, 1)
[1m[36mItem Load (0.1ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", 2]]
[1m[35mItem Load (0.1ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 1]]
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml (15.4ms)
Completed 200 OK in 18ms (Views: 16.8ms | ActiveRecord: 0.5ms)
Started GET "/" for 127.0.0.1 at 2016-03-10 22:44:44 +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 3ms (Views: 2.8ms | ActiveRecord: 0.0ms)
Started GET "/items" for 127.0.0.1 at 2016-03-10 22:44:48 +0200
Processing by ItemsController#index as HTML
[1m[36mItem Load (0.2ms)[0m [1mSELECT "items".* FROM "items"[0m
Rendered items/index.html.erb within layouts/application (2.9ms)
Completed 200 OK in 11ms (Views: 10.6ms | ActiveRecord: 0.2ms)
Started GET "/items/1" for 127.0.0.1 at 2016-03-10 22:44:51 +0200
Processing by ItemsController#show as HTML
Parameters: {"id"=>"1"}
[1m[35mItem Load (0.2ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 1]]
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/_buy.html.haml (6.9ms)
Rendered items/show.html.erb within layouts/application (8.8ms)
Completed 200 OK in 17ms (Views: 16.2ms | ActiveRecord: 0.2ms)
Started POST "/simple_cart/cart/1" for 127.0.0.1 at 2016-03-10 22:44:53 +0200
Processing by SimpleCart::CartsController#add as HTML
Parameters: {"utf8"=>"✓", "authenticity_token"=>"lZE+uadIxPP6pHWnZQZhKIXK+E7Rmw8IZMF/1gYMx8+RI7kxG/gesp+wPy1V51NLosPGYw+P8/QfAn6lrmzZ+A==", "qty"=>"1", "item"=>"Item", "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-10 22:44:53 +0200
Processing by SimpleCart::CartsController#show as HTML
[1m[36mItem Load (0.2ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" IN (2, 1)[0m
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" IN (2, 1)
[1m[36mItem Load (0.1ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", 2]]
[1m[35mItem Load (0.1ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 1]]
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml (13.6ms)
Completed 200 OK in 16ms (Views: 14.9ms | ActiveRecord: 0.5ms)
Started GET "/simple_cart/cart" for 127.0.0.1 at 2016-03-10 22:50:26 +0200
Processing by SimpleCart::CartsController#show as HTML
[1m[36mItem Load (0.5ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" IN (2, 1)[0m
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" IN (2, 1)
[1m[36mItem Load (0.2ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", 2]]
[1m[35mItem Load (0.1ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 1]]
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml (16.5ms)
Completed 200 OK in 21ms (Views: 19.8ms | ActiveRecord: 0.8ms)
Started GET "/simple_cart/cart" for 127.0.0.1 at 2016-03-10 22:50:36 +0200
[1m[36mActiveRecord::SchemaMigration Load (0.2ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
Processing by SimpleCart::CartsController#show as HTML
[1m[35mItem Load (0.2ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" IN (2, 1)
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" IN (2, 1)[0m
[1m[35mItem Load (0.2ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 2]]
[1m[36mItem Load (0.1ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", 1]]
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml (38.4ms)
Completed 200 OK in 53ms (Views: 43.8ms | ActiveRecord: 0.7ms)
Started GET "/simple_cart/cart" for 127.0.0.1 at 2016-03-10 22:51:05 +0200
[1m[36mActiveRecord::SchemaMigration Load (0.4ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
Processing by SimpleCart::CartsController#show as HTML
[1m[35mItem Load (0.3ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" IN (2, 1)
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" IN (2, 1)[0m
[1m[35mItem Load (0.2ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 2]]
[1m[36mItem Load (0.1ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", 1]]
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml (48.9ms)
Completed 200 OK in 66ms (Views: 56.4ms | ActiveRecord: 1.0ms)
Started GET "/simple_cart/cart" for 127.0.0.1 at 2016-03-10 22:52:19 +0200
Processing by SimpleCart::CartsController#show as HTML
[1m[35mItem Load (0.2ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" IN (2, 1)
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" IN (2, 1)[0m
[1m[35mItem Load (0.1ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 2]]
[1m[36mItem Load (0.1ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", 1]]
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml (11.0ms)
Completed 200 OK in 14ms (Views: 13.2ms | ActiveRecord: 0.4ms)
Started GET "/simple_cart/cart" for 127.0.0.1 at 2016-03-10 22:52:26 +0200
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
Processing by SimpleCart::CartsController#show as HTML
[1m[35mItem Load (0.1ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" IN (2, 1)
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" IN (2, 1)[0m
[1m[35mItem Load (0.2ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 2]]
[1m[36mItem Load (0.1ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", 1]]
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml (47.5ms)
Completed 200 OK in 63ms (Views: 53.3ms | ActiveRecord: 0.7ms)
Started GET "/items/2" for 127.0.0.1 at 2016-03-10 22:52:48 +0200
Processing by ItemsController#show as HTML
Parameters: {"id"=>"2"}
[1m[35mItem Load (0.2ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 2]]
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/_buy.html.haml (7.1ms)
Rendered items/show.html.erb within layouts/application (10.1ms)
Completed 200 OK in 506ms (Views: 504.1ms | ActiveRecord: 0.2ms)
Started POST "/simple_cart/cart/2" for 127.0.0.1 at 2016-03-10 22:52:50 +0200
Processing by SimpleCart::CartsController#add as HTML
Parameters: {"utf8"=>"✓", "authenticity_token"=>"NCDmBKIRdrO+mVpeHZNHBT4sHOs+OMXQ+pKJWgPo3AowkmGMHqGs8tuNENQtcnVmGSUixuAsOSyBUYgpq4jCPQ==", "qty"=>"1", "item"=>"Item", "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-10 22:52:50 +0200
Processing by SimpleCart::CartsController#show as HTML
[1m[36mItem Load (0.3ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" IN (2, 1)[0m
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" IN (2, 1)
[1m[36mItem Load (0.1ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", 2]]
[1m[35mItem Load (0.1ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 1]]
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml (13.9ms)
Completed 200 OK in 17ms (Views: 15.7ms | ActiveRecord: 0.5ms)
Started GET "/simple_cart/cart/remove?id=1" for 127.0.0.1 at 2016-03-10 22:52:52 +0200
Processing by SimpleCart::CartsController#remove as HTML
Parameters: {"id"=>"1"}
[1m[36mItem Load (0.2ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", 2]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "2"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "2"]]
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml (11.2ms)
Completed 200 OK in 14ms (Views: 13.1ms | ActiveRecord: 0.2ms)
Started GET "/simple_cart/cart/remove?id=1" for 127.0.0.1 at 2016-03-10 22:52:53 +0200
Processing by SimpleCart::CartsController#remove as HTML
Parameters: {"id"=>"1"}
[1m[35mItem Load (0.1ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 2]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "2"]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "2"]]
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml (10.8ms)
Completed 200 OK in 13ms (Views: 12.3ms | ActiveRecord: 0.2ms)
Started PUT "/simple_cart/cart" for 127.0.0.1 at 2016-03-10 22:53:05 +0200
Processing by SimpleCart::CartsController#update as HTML
Parameters: {"utf8"=>"✓", "authenticity_token"=>"8W/XgryadLEGogcUDWbcH06U4E++BOJgFyxDm1nsIfv13VAKACqu8GO2TZ49h+58aZ3eYmAQHpxs70Lo8Yw/zA==", "2"=>"6", "coupon"=>"", "commit"=>"Update"}
[1m[36mItem Load (0.1ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", 2]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "2"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "2"]]
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml (10.5ms)
Completed 200 OK in 13ms (Views: 12.4ms | ActiveRecord: 0.1ms)
Started PUT "/simple_cart/cart" for 127.0.0.1 at 2016-03-10 22:53:52 +0200
Processing by SimpleCart::CartsController#update as HTML
Parameters: {"utf8"=>"✓", "authenticity_token"=>"mViqIh/iSkjLZVDimUAf1mYagudSzDMStIIjHhp3Wjud6i2qo1KQCa5xGmipoS21QRO8yozYz+7PQSJtshdEDA==", "2"=>"8", "coupon"=>"", "commit"=>"Update"}
[1m[35mItem Load (0.1ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 2]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "2"]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "2"]]
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml (12.5ms)
Completed 200 OK in 15ms (Views: 14.5ms | ActiveRecord: 0.1ms)
Started GET "/simple_cart/cart" for 127.0.0.1 at 2016-03-10 22:56:10 +0200
Processing by SimpleCart::CartsController#show as HTML
[1m[36mItem Load (0.1ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", 2]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "2"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "2"]]
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml (10.1ms)
Completed 200 OK in 13ms (Views: 12.2ms | ActiveRecord: 0.1ms)
Started GET "/simple_cart/cart" for 127.0.0.1 at 2016-03-10 22:56:21 +0200
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
Processing by SimpleCart::CartsController#show as HTML
[1m[35mItem Load (0.2ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 2]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "2"]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "2"]]
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml (45.3ms)
Completed 200 OK in 61ms (Views: 53.3ms | ActiveRecord: 0.6ms)
Started GET "/simple_cart/cart" for 127.0.0.1 at 2016-03-10 22:56:22 +0200
Processing by SimpleCart::CartsController#show as HTML
[1m[36mItem Load (0.1ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", 2]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "2"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "2"]]
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml (7.3ms)
Completed 200 OK in 10ms (Views: 9.4ms | ActiveRecord: 0.1ms)
Started GET "/simple_cart/cart" for 127.0.0.1 at 2016-03-10 22:56:25 +0200
Processing by SimpleCart::CartsController#show as HTML
[1m[35mItem Load (0.1ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 2]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "2"]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "2"]]
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml (8.7ms)
Completed 200 OK in 11ms (Views: 10.6ms | ActiveRecord: 0.2ms)
Started GET "/simple_cart/cart" for 127.0.0.1 at 2016-03-10 22:57:50 +0200
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
Processing by SimpleCart::CartsController#show as HTML
[1m[35mItem Load (0.2ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 2]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "2"]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "2"]]
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml (45.2ms)
Completed 200 OK in 61ms (Views: 51.7ms | ActiveRecord: 0.6ms)
Started GET "/simple_cart/cart" for 127.0.0.1 at 2016-03-10 22:57:52 +0200
Processing by SimpleCart::CartsController#show as HTML
[1m[36mItem Load (0.1ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", 2]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "2"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "2"]]
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml (10.1ms)
Completed 200 OK in 12ms (Views: 11.9ms | ActiveRecord: 0.1ms)
Started GET "/simple_cart/cart" for 127.0.0.1 at 2016-03-10 22:57:57 +0200
Processing by SimpleCart::CartsController#show as HTML
[1m[35mItem Load (0.1ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 2]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "2"]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "2"]]
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml (10.1ms)
Completed 200 OK in 13ms (Views: 12.3ms | ActiveRecord: 0.1ms)
Started GET "/simple_cart/cart" for 127.0.0.1 at 2016-03-10 22:58:19 +0200
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
Processing by SimpleCart::CartsController#show as HTML
[1m[35mItem Load (0.2ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 2]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "2"]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "2"]]
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml (42.3ms)
Completed 200 OK in 58ms (Views: 49.9ms | ActiveRecord: 0.5ms)
Started GET "/simple_cart/cart" for 127.0.0.1 at 2016-03-10 22:58:40 +0200
Processing by SimpleCart::CartsController#show as HTML
[1m[36mItem Load (0.1ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", 2]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "2"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "2"]]
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml (10.5ms)
Completed 200 OK in 14ms (Views: 12.8ms | ActiveRecord: 0.2ms)
Started PUT "/simple_cart/cart" for 127.0.0.1 at 2016-03-10 22:58:42 +0200
Processing by SimpleCart::CartsController#update as HTML
Parameters: {"utf8"=>"✓", "authenticity_token"=>"Gy3yxXl95ZplK3sC5gNXHuE89SzTtEAUfXYbJDfsjo8fn3VNxc0/2wA/MYjW4mV9xjXLAQ2gvOgGtRpXn4yQuA==", "2"=>"8", "coupon"=>"", "commit"=>"Update"}
[1m[35mItem Load (0.1ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 2]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "2"]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "2"]]
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml (6.7ms)
Completed 200 OK in 9ms (Views: 8.5ms | ActiveRecord: 0.1ms)
Started PUT "/simple_cart/cart" for 127.0.0.1 at 2016-03-10 22:58:46 +0200
Processing by SimpleCart::CartsController#update as HTML
Parameters: {"utf8"=>"✓", "authenticity_token"=>"SszxlpQRSKPzk1u/kJ/xMuIBqB/dhHLFcoNxKkcCrctOfnYeKKGS4paHETWgfsNRxQiWMgOQjjkJQHBZ72Kz/A==", "2"=>"9", "coupon"=>"", "commit"=>"Update"}
[1m[36mItem Load (0.1ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", 2]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "2"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "2"]]
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml (8.9ms)
Completed 200 OK in 12ms (Views: 10.9ms | ActiveRecord: 0.1ms)
Started GET "/simple_cart/cart" for 127.0.0.1 at 2016-03-10 23:00:13 +0200
Processing by SimpleCart::CartsController#show as HTML
[1m[35mItem Load (0.1ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 2]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "2"]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "2"]]
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml (6.6ms)
Completed 200 OK in 9ms (Views: 8.2ms | ActiveRecord: 0.1ms)
Started GET "/simple_cart/cart" for 127.0.0.1 at 2016-03-10 23:01:40 +0200
Processing by SimpleCart::CartsController#show as HTML
[1m[36mItem Load (0.1ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", 2]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "2"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "2"]]
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml (10.0ms)
Completed 200 OK in 13ms (Views: 11.9ms | ActiveRecord: 0.1ms)
Started GET "/simple_cart/cart" for 127.0.0.1 at 2016-03-10 23:02:20 +0200
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
Processing by SimpleCart::CartsController#show as HTML
[1m[35mItem Load (0.3ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 2]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "2"]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "2"]]
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml (41.2ms)
Completed 200 OK in 58ms (Views: 48.4ms | ActiveRecord: 0.7ms)
Started GET "/simple_cart/cart" for 127.0.0.1 at 2016-03-10 23:02:22 +0200
Processing by SimpleCart::CartsController#show as HTML
[1m[36mItem Load (0.1ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", 2]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "2"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "2"]]
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml (11.3ms)
Completed 200 OK in 14ms (Views: 13.0ms | ActiveRecord: 0.2ms)
Started GET "/simple_cart/cart" for 127.0.0.1 at 2016-03-10 23:04:01 +0200
Processing by SimpleCart::CartsController#show as HTML
[1m[35mItem Load (0.1ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 2]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "2"]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "2"]]
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml (9.4ms)
Completed 200 OK in 12ms (Views: 11.2ms | ActiveRecord: 0.2ms)
Started GET "/simple_cart/cart" for 127.0.0.1 at 2016-03-10 23:04:03 +0200
Processing by SimpleCart::CartsController#show as HTML
[1m[36mItem Load (0.1ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", 2]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "2"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "2"]]
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml (10.2ms)
Completed 200 OK in 13ms (Views: 11.9ms | ActiveRecord: 0.2ms)
Started GET "/simple_cart/cart" for 127.0.0.1 at 2016-03-10 23:04:19 +0200
Processing by SimpleCart::CartsController#show as HTML
[1m[35mItem Load (0.2ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 2]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "2"]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "2"]]
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml (13.3ms)
Completed 200 OK in 18ms (Views: 16.7ms | ActiveRecord: 0.2ms)
Started GET "/simple_cart/cart" for 127.0.0.1 at 2016-03-10 23:04:26 +0200
Processing by SimpleCart::CartsController#show as HTML
[1m[36mItem Load (0.3ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", 2]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "2"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "2"]]
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml (8.1ms)
Completed 200 OK in 12ms (Views: 10.8ms | ActiveRecord: 0.3ms)
Started PUT "/simple_cart/cart" for 127.0.0.1 at 2016-03-10 23:04:46 +0200
Processing by SimpleCart::CartsController#update as HTML
Parameters: {"utf8"=>"✓", "authenticity_token"=>"SszxlpQRSKPzk1u/kJ/xMuIBqB/dhHLFcoNxKkcCrctOfnYeKKGS4paHETWgfsNRxQiWMgOQjjkJQHBZ72Kz/A==", "2"=>"11", "coupon"=>"", "commit"=>"Update"}
[1m[35mItem Load (0.1ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 2]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "2"]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "2"]]
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml (8.0ms)
Completed 200 OK in 11ms (Views: 10.4ms | ActiveRecord: 0.1ms)
Started GET "/simple_cart/cart/checkout?coupon=" for 127.0.0.1 at 2016-03-10 23:04:51 +0200
ActionController::RoutingError (No route matches [GET] "/simple_cart/cart/checkout"):
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.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/_trace.html.erb (1.4ms)
Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/routes/_route.html.erb (1.2ms)
Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/routes/_route.html.erb (0.4ms)
Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/routes/_table.html.erb (2.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 (1.5ms)
Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/rescues/routing_error.html.erb within rescues/layout (29.2ms)
Started GET "/simple_cart/cart" for 127.0.0.1 at 2016-03-10 23:10:52 +0200
Processing by SimpleCart::CartsController#show as HTML
[1m[36mItem Load (0.2ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", 2]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "2"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "2"]]
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml (14.7ms)
Completed 200 OK in 19ms (Views: 18.0ms | ActiveRecord: 0.2ms)
Started GET "/simple_cart/cart" for 127.0.0.1 at 2016-03-10 23:11:06 +0200
Processing by SimpleCart::CartsController#show as HTML
[1m[35mItem Load (0.1ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 2]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "2"]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "2"]]
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml (9.6ms)
Completed 200 OK in 12ms (Views: 11.5ms | ActiveRecord: 0.1ms)
Started GET "/simple_cart/cart" for 127.0.0.1 at 2016-03-10 23:11:16 +0200
Processing by SimpleCart::CartsController#show as HTML
[1m[36mItem Load (0.1ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", 2]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "2"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "2"]]
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml (10.7ms)
Completed 200 OK in 15ms (Views: 14.2ms | ActiveRecord: 0.2ms)
Started PUT "/simple_cart/cart" for 127.0.0.1 at 2016-03-10 23:11:18 +0200
Processing by SimpleCart::CartsController#update as HTML
Parameters: {"utf8"=>"✓", "authenticity_token"=>"h0j44kCc7yiacoA29k18sK+krkPWRE18hkTl+OjTn/SD+n9q/Cw1af9myrzGrE7TiK2QbghQsYD9h+SLQLOBww==", "2"=>"11", "coupon"=>"", "commit"=>"Update"}
[1m[35mItem Load (0.1ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 2]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "2"]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "2"]]
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml (11.8ms)
Completed 200 OK in 14ms (Views: 13.6ms | ActiveRecord: 0.2ms)
Started PUT "/simple_cart/cart" for 127.0.0.1 at 2016-03-10 23:11:26 +0200
Processing by SimpleCart::CartsController#update as HTML
Parameters: {"utf8"=>"✓", "authenticity_token"=>"5bySHQ6N/FsGK/kDNKRnUvg/c+DQOsRLacsYRgO+e6nhDhWVsj0mGmM/s4kERVUx3zZNzQ4uOLcSCBk1q95lng==", "2"=>"11", "coupon"=>"A2016", "commit"=>"Update"}
[1m[36mItem Load (0.1ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", 2]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "2"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "2"]]
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml (10.4ms)
Completed 200 OK in 14ms (Views: 13.3ms | ActiveRecord: 0.2ms)
Started PUT "/simple_cart/cart" for 127.0.0.1 at 2016-03-10 23:11:29 +0200
Processing by SimpleCart::CartsController#update as HTML
Parameters: {"utf8"=>"✓", "authenticity_token"=>"5rDc/BZRPbIn8h+LZ66hUMXHRT17uA0jQk1rKkU5rbTiAlt0quHn80LmVQFXT5Mz4s57EKWs8d85jmpZ7Vmzgw==", "2"=>"9", "coupon"=>"", "commit"=>"Update"}
[1m[35mItem Load (0.1ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 2]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "2"]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "2"]]
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml (10.0ms)
Completed 200 OK in 13ms (Views: 11.8ms | ActiveRecord: 0.2ms)
Started PUT "/simple_cart/cart" for 127.0.0.1 at 2016-03-10 23:14:25 +0200
Processing by SimpleCart::CartsController#update as HTML
Parameters: {"utf8"=>"✓", "authenticity_token"=>"5rDc/BZRPbIn8h+LZ66hUMXHRT17uA0jQk1rKkU5rbTiAlt0quHn80LmVQFXT5Mz4s57EKWs8d85jmpZ7Vmzgw==", "2"=>"9", "coupon"=>"", "commit"=>"Update"}
[1m[36mItem Load (0.1ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", 2]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "2"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "2"]]
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml (12.3ms)
Completed 200 OK in 16ms (Views: 14.8ms | ActiveRecord: 0.2ms)
Started PUT "/simple_cart/cart" for 127.0.0.1 at 2016-03-10 23:14:54 +0200
Processing by SimpleCart::CartsController#update as HTML
Parameters: {"utf8"=>"✓", "authenticity_token"=>"5rDc/BZRPbIn8h+LZ66hUMXHRT17uA0jQk1rKkU5rbTiAlt0quHn80LmVQFXT5Mz4s57EKWs8d85jmpZ7Vmzgw==", "2"=>"9", "coupon"=>"", "commit"=>"Update"}
[1m[35mItem Load (0.1ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 2]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "2"]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "2"]]
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml (8.9ms)
Completed 200 OK in 12ms (Views: 10.8ms | ActiveRecord: 0.1ms)
Started PUT "/simple_cart/cart" for 127.0.0.1 at 2016-03-10 23:15:03 +0200
Processing by SimpleCart::CartsController#update as HTML
Parameters: {"utf8"=>"✓", "authenticity_token"=>"5rDc/BZRPbIn8h+LZ66hUMXHRT17uA0jQk1rKkU5rbTiAlt0quHn80LmVQFXT5Mz4s57EKWs8d85jmpZ7Vmzgw==", "2"=>"9", "coupon"=>"", "commit"=>"Update"}
[1m[36mItem Load (0.1ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", 2]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "2"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "2"]]
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml (10.8ms)
Completed 200 OK in 15ms (Views: 13.6ms | ActiveRecord: 0.2ms)
Started GET "/simple_cart" for 127.0.0.1 at 2016-03-10 23:15:08 +0200
ActionController::RoutingError (No route matches [GET] "/simple_cart"):
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.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/_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/routes/_route.html.erb (1.0ms)
Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/routes/_route.html.erb (0.4ms)
Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/routes/_table.html.erb (1.4ms)
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.9ms)
Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/rescues/routing_error.html.erb within rescues/layout (26.7ms)
Started GET "/simple_cart/cart" for 127.0.0.1 at 2016-03-10 23:18:21 +0200
Processing by SimpleCart::CartsController#show as HTML
[1m[35mItem Load (0.1ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 2]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "2"]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "2"]]
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml (20.0ms)
Completed 200 OK in 25ms (Views: 24.1ms | ActiveRecord: 0.2ms)
Started GET "/simple_cart/cart" for 127.0.0.1 at 2016-03-10 23:18:39 +0200
Processing by SimpleCart::CartsController#show as HTML
[1m[36mItem Load (0.1ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", 2]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "2"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "2"]]
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml (13.3ms)
Completed 200 OK in 16ms (Views: 15.2ms | ActiveRecord: 0.1ms)
Started GET "/simple_cart/cart" for 127.0.0.1 at 2016-03-10 23:21:58 +0200
Processing by SimpleCart::CartsController#show as HTML
[1m[35mItem Load (0.1ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 2]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "2"]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "2"]]
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml (16.5ms)
Completed 200 OK in 19ms (Views: 18.2ms | ActiveRecord: 0.2ms)
Started GET "/items/2" for 127.0.0.1 at 2016-03-10 23:22:39 +0200
Processing by ItemsController#show as HTML
Parameters: {"id"=>"2"}
[1m[36mItem Load (0.1ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", 2]]
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/_buy.html.haml (7.9ms)
Rendered items/show.html.erb within layouts/application (10.9ms)
Completed 500 Internal Server Error in 150ms (ActiveRecord: 0.1ms)
ActionView::Template::Error (couldn't find file 'jquery' with type 'application/javascript'):
2:
3:
4: Dummy
5: <%= stylesheet_link_tag 'application', media: 'all', 'data-turbolinks-track' => true %>
6: <%= javascript_include_tag 'application', 'data-turbolinks-track' => true %>
7: <%= csrf_meta_tags %>
8:
app/views/layouts/application.html.erb:5:in `_app_views_layouts_application_html_erb___4497286305816194170_22951240'
Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/rescues/_source.erb (14.1ms)
Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (7.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 (34.2ms)
Started GET "/items/2" for 127.0.0.1 at 2016-03-10 23:23:01 +0200
Processing by ItemsController#show as HTML
Parameters: {"id"=>"2"}
[1m[35mItem Load (0.2ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 2]]
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/_buy.html.haml (8.0ms)
Rendered items/show.html.erb within layouts/application (10.3ms)
Completed 200 OK in 1993ms (Views: 1991.3ms | ActiveRecord: 0.2ms)
Started POST "/simple_cart/cart/2" for 127.0.0.1 at 2016-03-10 23:23:35 +0200
Processing by SimpleCart::CartsController#add as HTML
Parameters: {"utf8"=>"✓", "authenticity_token"=>"oyk1aibYcrUUBeXOMKazA+48zZ/uzqCWmrul59yQh9Gnm7Limmio9HERr0QAR4FgyTXzsjDaXGrheKSUdPCZ5g==", "qty"=>"1", "item"=>"Item", "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-10 23:23:35 +0200
Processing by SimpleCart::CartsController#show as HTML
[1m[36mItem Load (0.1ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", 2]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "2"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "2"]]
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml (10.5ms)
Completed 200 OK in 14ms (Views: 12.9ms | ActiveRecord: 0.1ms)
Started GET "/simple_cart/cart" for 127.0.0.1 at 2016-03-10 23:25:18 +0200
Processing by SimpleCart::CartsController#show as HTML
[1m[35mItem Load (0.1ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 2]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "2"]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "2"]]
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml (12.9ms)
Completed 200 OK in 18ms (Views: 17.2ms | ActiveRecord: 0.2ms)
Started GET "/simple_cart/cart" for 127.0.0.1 at 2016-03-10 23:25:20 +0200
Processing by SimpleCart::CartsController#show as HTML
[1m[36mItem Load (0.1ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", 2]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "2"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "2"]]
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml (12.6ms)
Completed 200 OK in 15ms (Views: 14.5ms | ActiveRecord: 0.2ms)
Started GET "/simple_cart/cart" for 127.0.0.1 at 2016-03-10 23:25:22 +0200
Processing by SimpleCart::CartsController#show as HTML
[1m[35mItem Load (0.1ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 2]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "2"]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "2"]]
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml (12.1ms)
Completed 200 OK in 16ms (Views: 15.0ms | ActiveRecord: 0.1ms)
Started GET "/simple_cart/cart" for 127.0.0.1 at 2016-03-10 23:25:25 +0200
Processing by SimpleCart::CartsController#show as HTML
[1m[36mItem Load (0.2ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", 2]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "2"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "2"]]
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml (11.5ms)
Completed 200 OK in 16ms (Views: 14.8ms | ActiveRecord: 0.2ms)
Started GET "/simple_cart/cart" for 127.0.0.1 at 2016-03-10 23:29:10 +0200
Processing by SimpleCart::CartsController#show as HTML
[1m[35mItem Load (0.1ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 2]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "2"]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "2"]]
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml (11.5ms)
Completed 200 OK in 14ms (Views: 13.3ms | ActiveRecord: 0.1ms)
Started GET "/simple_cart/cart" for 127.0.0.1 at 2016-03-10 23:32:02 +0200
Processing by SimpleCart::CartsController#show as HTML
[1m[36mItem Load (0.1ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", 2]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "2"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "2"]]
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml within layouts/simple_cart/application (12.6ms)
Completed 200 OK in 49ms (Views: 47.8ms | ActiveRecord: 0.1ms)
Started GET "/assets/simple_cart/application.self-2f12d59583468bdcee27c6046669f62a778d265fc91cf385e5d36e9189ac822e.css?body=1" for 127.0.0.1 at 2016-03-10 23:32:02 +0200
Started GET "/assets/simple_cart/application.self-8f06a73c35179188914ab50e057157639fce1401c1cdca640ac9cec33746fc5b.js?body=1" for 127.0.0.1 at 2016-03-10 23:32:02 +0200
Started PUT "/simple_cart/cart" for 127.0.0.1 at 2016-03-10 23:32:18 +0200
Processing by SimpleCart::CartsController#update as HTML
Parameters: {"utf8"=>"✓", "authenticity_token"=>"NfUx7NbHya5evjD30/w52neX18tOmD4QracawuaVkgQxR7ZkancT7zuqen3jHQu5UJ7p5pCMwuzWZBuxTvWMMw==", "2"=>"10", "coupon"=>"", "commit"=>"Update"}
[1m[35mItem Load (0.1ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 2]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "2"]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "2"]]
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml within layouts/simple_cart/application (11.9ms)
Completed 200 OK in 28ms (Views: 27.5ms | ActiveRecord: 0.2ms)
Started GET "/simple_cart/cart/remove?id=2" for 127.0.0.1 at 2016-03-10 23:32:52 +0200
Processing by SimpleCart::CartsController#remove as HTML
Parameters: {"id"=>"2"}
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml within layouts/simple_cart/application (6.6ms)
Completed 200 OK in 25ms (Views: 24.7ms | ActiveRecord: 0.0ms)
Started PUT "/simple_cart/cart" for 127.0.0.1 at 2016-03-10 23:32:56 +0200
Processing by SimpleCart::CartsController#update as HTML
Parameters: {"utf8"=>"✓", "authenticity_token"=>"wv7G/iOeKzctuUn7mlSw3d74X2Pz7yR3itMp5xBNnS7GTEF2ny7xdkitA3GqtYK++fFhTi372IvxECiUuC2DGQ==", "coupon"=>"", "commit"=>"Update"}
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml within layouts/simple_cart/application (5.6ms)
Completed 200 OK in 26ms (Views: 25.1ms | ActiveRecord: 0.0ms)
Started GET "/items" for 127.0.0.1 at 2016-03-10 23:33:03 +0200
Processing by ItemsController#index as HTML
[1m[36mItem Load (0.3ms)[0m [1mSELECT "items".* FROM "items"[0m
Rendered items/index.html.erb within layouts/application (2.7ms)
Completed 200 OK in 15ms (Views: 14.4ms | ActiveRecord: 0.3ms)
Started GET "/items" for 127.0.0.1 at 2016-03-10 23:33:03 +0200
Processing by ItemsController#index as HTML
[1m[35mItem Load (0.2ms)[0m SELECT "items".* FROM "items"
Rendered items/index.html.erb within layouts/application (3.0ms)
Completed 200 OK in 13ms (Views: 12.3ms | ActiveRecord: 0.2ms)
Started GET "/items/2" for 127.0.0.1 at 2016-03-10 23:33:05 +0200
Processing by ItemsController#show as HTML
Parameters: {"id"=>"2"}
[1m[36mItem Load (0.2ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", 2]]
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/_buy.html.haml (7.8ms)
Rendered items/show.html.erb within layouts/application (9.4ms)
Completed 200 OK in 19ms (Views: 17.8ms | ActiveRecord: 0.2ms)
Started POST "/simple_cart/cart/2" for 127.0.0.1 at 2016-03-10 23:33:08 +0200
Processing by SimpleCart::CartsController#add as HTML
Parameters: {"utf8"=>"✓", "authenticity_token"=>"wg9k1K2ZqrwG/gYRYfIfGT5D5YJ2x7ZOHHlQnzTA7hzGveNcESlw/WPqTJtREy16GUrbr6jTSrJnulHsnKDwKw==", "qty"=>"4", "item"=>"Item", "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-10 23:33:08 +0200
Processing by SimpleCart::CartsController#show as HTML
[1m[35mItem Load (0.1ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 2]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "2"]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "2"]]
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml within layouts/simple_cart/application (8.8ms)
Completed 200 OK in 23ms (Views: 22.1ms | ActiveRecord: 0.2ms)
Started PUT "/simple_cart/cart" for 127.0.0.1 at 2016-03-10 23:33:40 +0200
Processing by SimpleCart::CartsController#update as HTML
Parameters: {"utf8"=>"✓", "authenticity_token"=>"tANTaExHMVmtVI8JwpqpilP5h8OCxK7bDeYuK+HgHhKwsdTg8PfrGMhAxYPye5vpdPC57lzQUid2JS9YSYAAJQ==", "2"=>"", "coupon"=>"", "commit"=>"Update"}
[1m[36mItem Load (0.1ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", 2]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "2"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "2"]]
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml within layouts/simple_cart/application (13.6ms)
Completed 200 OK in 25ms (Views: 24.4ms | ActiveRecord: 0.2ms)
Started PUT "/simple_cart/cart" for 127.0.0.1 at 2016-03-10 23:33:42 +0200
Processing by SimpleCart::CartsController#update as HTML
Parameters: {"utf8"=>"✓", "authenticity_token"=>"WJsY6e9ROgoZwowX3WSvnqeoayvr8C3tqZK8L95VAlxcKZ9hU+HgS3zWxp3thZ39gKFVBjXk0RHSUb1cdjUcaw==", "2"=>"4", "coupon"=>"", "commit"=>"Update"}
[1m[35mItem Load (0.1ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 2]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "2"]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "2"]]
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml within layouts/simple_cart/application (10.1ms)
Completed 200 OK in 31ms (Views: 30.6ms | ActiveRecord: 0.1ms)
Started GET "/simple_cart/cart/clear" for 127.0.0.1 at 2016-03-10 23:34:31 +0200
Processing by SimpleCart::CartsController#clear as HTML
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml within layouts/simple_cart/application (1.4ms)
Completed 500 Internal Server Error in 7ms (ActiveRecord: 0.0ms)
ActionView::Template::Error (undefined method `items' for nil:NilClass):
4: .thumbnail
5: .caption-full
6: = form_tag url_for(:controller => 'carts', :action => 'update'), method: :put do
7: - if @cart.items.nil?
8: empty
9: - else
10: %table.table.table-hover
/home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml:7:in `block in __home_leksster_ror__ubygarage__mazon_simple_cart_app_views_simple_cart_carts_show_html_haml___205045573133018713_35558780'
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/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml:6:in `__home_leksster_ror__ubygarage__mazon_simple_cart_app_views_simple_cart_carts_show_html_haml___205045573133018713_35558780'
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'
/home/leksster/ror/Rubygarage/Amazon/simple_cart/app/controllers/simple_cart/carts_controller.rb:49:in `clear'
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: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 (10.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 (5.2ms)
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.4ms)
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 (27.0ms)
Started PUT "/simple_cart/cart" for 127.0.0.1 at 2016-03-10 23:34:47 +0200
Processing by SimpleCart::CartsController#update as HTML
Parameters: {"utf8"=>"✓", "authenticity_token"=>"WJsY6e9ROgoZwowX3WSvnqeoayvr8C3tqZK8L95VAlxcKZ9hU+HgS3zWxp3thZ39gKFVBjXk0RHSUb1cdjUcaw==", "2"=>"4", "coupon"=>"", "commit"=>"Update"}
[1m[36mItem Load (0.2ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", 2]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "2"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "2"]]
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml within layouts/simple_cart/application (27.5ms)
Completed 200 OK in 44ms (Views: 40.0ms | ActiveRecord: 1.2ms)
Started GET "/assets/simple_cart/application.self-2f12d59583468bdcee27c6046669f62a778d265fc91cf385e5d36e9189ac822e.css?body=1" for 127.0.0.1 at 2016-03-10 23:34:47 +0200
Started GET "/assets/simple_cart/application.self-8f06a73c35179188914ab50e057157639fce1401c1cdca640ac9cec33746fc5b.js?body=1" for 127.0.0.1 at 2016-03-10 23:34:47 +0200
Started GET "/simple_cart/cart/clear" for 127.0.0.1 at 2016-03-10 23:34:52 +0200
Processing by SimpleCart::CartsController#clear as HTML
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml within layouts/simple_cart/application (1.5ms)
Completed 500 Internal Server Error in 4ms (ActiveRecord: 0.0ms)
ActionView::Template::Error (undefined method `items' for nil:NilClass):
4: .thumbnail
5: .caption-full
6: = form_tag url_for(:controller => 'carts', :action => 'update'), method: :put do
7: - if @cart.items.nil?
8: empty
9: - else
10: %table.table.table-hover
/home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml:7:in `block in __home_leksster_ror__ubygarage__mazon_simple_cart_app_views_simple_cart_carts_show_html_haml___205045573133018713_35558780'
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/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml:6:in `__home_leksster_ror__ubygarage__mazon_simple_cart_app_views_simple_cart_carts_show_html_haml___205045573133018713_35558780'
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'
/home/leksster/ror/Rubygarage/Amazon/simple_cart/app/controllers/simple_cart/carts_controller.rb:49:in `clear'
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: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 (10.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 (3.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 (1.0ms)
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 (25.2ms)
Started GET "/simple_cart/cart/clear" for 127.0.0.1 at 2016-03-10 23:35:10 +0200
Processing by SimpleCart::CartsController#clear as HTML
Redirected to http://localhost:3000/simple_cart/cart
Completed 302 Found in 6ms (ActiveRecord: 0.0ms)
Started GET "/simple_cart/cart" for 127.0.0.1 at 2016-03-10 23:35:10 +0200
Processing by SimpleCart::CartsController#show as HTML
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml within layouts/simple_cart/application (6.3ms)
Completed 200 OK in 29ms (Views: 26.5ms | ActiveRecord: 0.4ms)
Started GET "/simple_cart/cart/clear" for 127.0.0.1 at 2016-03-10 23:35:12 +0200
Processing by SimpleCart::CartsController#clear as HTML
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-10 23:35:12 +0200
Processing by SimpleCart::CartsController#show as HTML
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml within layouts/simple_cart/application (6.3ms)
Completed 200 OK in 24ms (Views: 23.5ms | ActiveRecord: 0.0ms)
Started GET "/items" for 127.0.0.1 at 2016-03-10 23:35:25 +0200
Processing by ItemsController#index as HTML
[1m[35mItem Load (0.3ms)[0m SELECT "items".* FROM "items"
Rendered items/index.html.erb within layouts/application (8.6ms)
Completed 200 OK in 23ms (Views: 22.0ms | ActiveRecord: 0.3ms)
Started GET "/items/1" for 127.0.0.1 at 2016-03-10 23:35:26 +0200
Processing by ItemsController#show as HTML
Parameters: {"id"=>"1"}
[1m[36mItem Load (0.1ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", 1]]
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/_buy.html.haml (8.1ms)
Rendered items/show.html.erb within layouts/application (9.4ms)
Completed 200 OK in 22ms (Views: 20.7ms | ActiveRecord: 0.1ms)
Started POST "/simple_cart/cart/1" for 127.0.0.1 at 2016-03-10 23:35:28 +0200
Processing by SimpleCart::CartsController#add as HTML
Parameters: {"utf8"=>"✓", "authenticity_token"=>"w7ovTUbIqaAHNgMGo5nl8q+hUNvIMemnPITcqpZXT6nHCKjF+nhz4WIiSYyTeNeRiKhu9hYlFVtHR93ZPjdRng==", "qty"=>"1", "item"=>"Item", "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-10 23:35:28 +0200
Processing by SimpleCart::CartsController#show as HTML
[1m[35mItem Load (0.1ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "1"]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "1"]]
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml within layouts/simple_cart/application (12.9ms)
Completed 200 OK in 37ms (Views: 36.7ms | ActiveRecord: 0.2ms)
Started GET "/simple_cart/cart/remove?id=1" for 127.0.0.1 at 2016-03-10 23:38:33 +0200
Processing by SimpleCart::CartsController#remove as HTML
Parameters: {"id"=>"1"}
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml within layouts/simple_cart/application (4.7ms)
Completed 200 OK in 19ms (Views: 18.1ms | ActiveRecord: 0.0ms)
Started GET "/" for 127.0.0.1 at 2016-03-10 23:38:59 +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.7ms)
Completed 200 OK in 5ms (Views: 4.7ms | ActiveRecord: 0.0ms)
Started GET "/items" for 127.0.0.1 at 2016-03-10 23:39:03 +0200
Processing by ItemsController#index as HTML
[1m[36mItem Load (0.3ms)[0m [1mSELECT "items".* FROM "items"[0m
Rendered items/index.html.erb within layouts/application (3.4ms)
Completed 200 OK in 11ms (Views: 10.5ms | ActiveRecord: 0.3ms)
Started GET "/items/2" for 127.0.0.1 at 2016-03-10 23:39:04 +0200
Processing by ItemsController#show as HTML
Parameters: {"id"=>"2"}
[1m[35mItem Load (0.1ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 2]]
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/_buy.html.haml (5.7ms)
Rendered items/show.html.erb within layouts/application (7.4ms)
Completed 200 OK in 19ms (Views: 18.7ms | ActiveRecord: 0.1ms)
Started POST "/simple_cart/cart/2" for 127.0.0.1 at 2016-03-10 23:39:06 +0200
Processing by SimpleCart::CartsController#add as HTML
Parameters: {"utf8"=>"✓", "authenticity_token"=>"YK3Z1zGnrIrfZ81oVzA21FeJzqqNjWhyTo2wBVFAqjdkH15fjRd2y7pzh+Jn0QS3cIDwh1OZlI41TrF2+SC0AA==", "qty"=>"1", "item"=>"Item", "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-10 23:39:06 +0200
Processing by SimpleCart::CartsController#show as HTML
[1m[36mItem Load (0.1ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", 2]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "2"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "2"]]
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml within layouts/simple_cart/application (11.0ms)
Completed 200 OK in 22ms (Views: 21.1ms | ActiveRecord: 0.1ms)
Started GET "/simple_cart/cart" for 127.0.0.1 at 2016-03-10 23:42:00 +0200
ActionController::RoutingError (No route matches [GET] "/simple_cart/cart"):
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.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/_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/routes/_route.html.erb (1.1ms)
Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/routes/_route.html.erb (0.3ms)
Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/routes/_table.html.erb (1.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 (1.4ms)
Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/rescues/routing_error.html.erb within rescues/layout (24.7ms)
Started GET "/cart" for 127.0.0.1 at 2016-03-10 23:42:05 +0200
ActionController::RoutingError (No route matches [GET] "/cart"):
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.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/_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/routes/_route.html.erb (1.8ms)
Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/routes/_route.html.erb (0.7ms)
Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/routes/_table.html.erb (1.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 (1.1ms)
Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/rescues/routing_error.html.erb within rescues/layout (32.2ms)
Started GET "/cart" for 127.0.0.1 at 2016-03-10 23:42:05 +0200
ActionController::RoutingError (No route matches [GET] "/cart"):
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.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/_trace.html.erb (1.4ms)
Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/routes/_route.html.erb (0.9ms)
Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/routes/_route.html.erb (0.7ms)
Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/routes/_table.html.erb (1.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 (1.2ms)
Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/rescues/routing_error.html.erb within rescues/layout (24.8ms)
Started GET "/simple_cart/cart" for 127.0.0.1 at 2016-03-10 23:42:10 +0200
ActionController::RoutingError (No route matches [GET] "/simple_cart/cart"):
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.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/_trace.html.erb (1.2ms)
Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/routes/_route.html.erb (1.3ms)
Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/routes/_route.html.erb (0.4ms)
Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/routes/_table.html.erb (1.5ms)
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.3ms)
Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/rescues/routing_error.html.erb within rescues/layout (25.2ms)
Started GET "/simple_cart" for 127.0.0.1 at 2016-03-10 23:42:11 +0200
ActionController::RoutingError (No route matches [GET] "/simple_cart"):
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.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/_trace.html.erb (1.2ms)
Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/routes/_route.html.erb (1.5ms)
Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/routes/_route.html.erb (0.6ms)
Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/routes/_table.html.erb (1.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 (1.5ms)
Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/rescues/routing_error.html.erb within rescues/layout (26.9ms)
Started GET "/items" for 127.0.0.1 at 2016-03-10 23:42:15 +0200
Processing by ItemsController#index as HTML
[1m[35mItem Load (0.4ms)[0m SELECT "items".* FROM "items"
Rendered items/index.html.erb within layouts/application (7.6ms)
Completed 200 OK in 23ms (Views: 19.3ms | ActiveRecord: 0.8ms)
Started GET "/items/2" for 127.0.0.1 at 2016-03-10 23:42:17 +0200
Processing by ItemsController#show as HTML
Parameters: {"id"=>"2"}
[1m[36mItem Load (0.2ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", 2]]
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/_buy.html.haml (7.5ms)
Rendered items/show.html.erb within layouts/application (9.2ms)
Completed 200 OK in 19ms (Views: 17.8ms | ActiveRecord: 0.2ms)
Started POST "/simple_cart/simple_cart/2" for 127.0.0.1 at 2016-03-10 23:42:18 +0200
Processing by SimpleCart::CartsController#add as HTML
Parameters: {"utf8"=>"✓", "authenticity_token"=>"OTgri1HUp6IuJNxPDXpRbh56YP8KqsBJ1zAZo/X0qnY9iqwD7WR940swlsU9m2MNOXNe0tS+PLWs8xjQXZS0QQ==", "qty"=>"1", "item"=>"Item", "commit"=>"Add to cart", "item_id"=>"2"}
Redirected to http://localhost:3000/simple_cart/simple_cart
Completed 302 Found in 2ms (ActiveRecord: 0.0ms)
Started GET "/simple_cart/simple_cart" for 127.0.0.1 at 2016-03-10 23:42:18 +0200
Processing by SimpleCart::CartsController#show as HTML
[1m[35mItem Load (0.1ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 2]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "2"]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "2"]]
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml within layouts/application (12.0ms)
Completed 200 OK in 23ms (Views: 22.2ms | ActiveRecord: 0.2ms)
Started POST "/simple_cart/simple_cart/2" for 127.0.0.1 at 2016-03-10 23:42:44 +0200
ActionController::RoutingError (No route matches [POST] "/simple_cart/simple_cart/2"):
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.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/_trace.html.erb (1.4ms)
Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/routes/_route.html.erb (1.0ms)
Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/routes/_route.html.erb (0.4ms)
Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/routes/_table.html.erb (1.6ms)
Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (1.2ms)
Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/rescues/routing_error.html.erb within rescues/layout (25.4ms)
Started GET "/items/2" for 127.0.0.1 at 2016-03-10 23:42:48 +0200
Processing by ItemsController#show as HTML
Parameters: {"id"=>"2"}
[1m[36mItem Load (0.3ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", 2]]
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/_buy.html.haml (4.7ms)
Rendered items/show.html.erb within layouts/application (6.2ms)
Completed 200 OK in 28ms (Views: 20.4ms | ActiveRecord: 0.6ms)
Started GET "/assets/scaffold.self-83b741db49389dc7cfdf85bf7537a0219cce48e085c4116afc83d55c9af47c78.css?body=1" for 127.0.0.1 at 2016-03-10 23:42:49 +0200
Started GET "/assets/items.self-b60acab5af8d245ed2b3012f77d11d8d207d8eada27756badaf4ef05770d60f6.css?body=1" for 127.0.0.1 at 2016-03-10 23:42:49 +0200
Started GET "/assets/application.self-e80e8f2318043e8af94dddc2adad5a4f09739a8ebb323b3ab31cd71d45fd9113.css?body=1" for 127.0.0.1 at 2016-03-10 23:42:49 +0200
Started GET "/assets/items.self-19a187bec6cdb96d6de80a61c16c857c613536adf9138476bd367db38d282635.js?body=1" for 127.0.0.1 at 2016-03-10 23:42:49 +0200
Started GET "/assets/application.self-8f06a73c35179188914ab50e057157639fce1401c1cdca640ac9cec33746fc5b.js?body=1" for 127.0.0.1 at 2016-03-10 23:42:49 +0200
Started POST "/simple_cart/cart/2" for 127.0.0.1 at 2016-03-10 23:42:49 +0200
Processing by SimpleCart::CartsController#add as HTML
Parameters: {"utf8"=>"✓", "authenticity_token"=>"El7VdkzdrKhR3mlzGG6+0fh7ZMjxmk5XpWj5p2MRaIQW7FL+8G126TTKI/koj4yy33Ja5S+Osqveq/jUy3F2sw==", "qty"=>"1", "item"=>"Item", "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-10 23:42:50 +0200
Processing by SimpleCart::CartsController#show as HTML
[1m[35mItem Load (0.1ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 2]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "2"]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "2"]]
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml within layouts/application (11.4ms)
Completed 200 OK in 23ms (Views: 21.8ms | ActiveRecord: 0.2ms)
Started GET "/simple_cart/cart" for 127.0.0.1 at 2016-03-10 23:43:09 +0200
Processing by SimpleCart::CartsController#show as HTML
[1m[36mItem Load (0.1ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", 2]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "2"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "2"]]
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml within layouts/application (12.5ms)
Completed 200 OK in 23ms (Views: 22.5ms | ActiveRecord: 0.2ms)
Started GET "/simple_cart/cart" for 127.0.0.1 at 2016-03-10 23:43:21 +0200
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
Processing by SimpleCart::CartsController#show as HTML
[1m[35mItem Load (0.2ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 2]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "2"]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "2"]]
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml within layouts/simple_cart/application (42.2ms)
Completed 200 OK in 211ms (Views: 202.1ms | ActiveRecord: 0.5ms)
Started GET "/assets/simple_cart/application.self-2f12d59583468bdcee27c6046669f62a778d265fc91cf385e5d36e9189ac822e.css?body=1" for 127.0.0.1 at 2016-03-10 23:43:22 +0200
Started GET "/assets/simple_cart/application.self-8f06a73c35179188914ab50e057157639fce1401c1cdca640ac9cec33746fc5b.js?body=1" for 127.0.0.1 at 2016-03-10 23:43:22 +0200
Started GET "/simple_cart/" for 127.0.0.1 at 2016-03-10 23:44:23 +0200
ActionController::RoutingError (uninitialized constant SimpleCart::CartController):
activesupport (4.2.5.2) lib/active_support/inflector/methods.rb:263:in `const_get'
activesupport (4.2.5.2) lib/active_support/inflector/methods.rb:263:in `block in constantize'
activesupport (4.2.5.2) lib/active_support/inflector/methods.rb:259:in `each'
activesupport (4.2.5.2) lib/active_support/inflector/methods.rb:259:in `inject'
activesupport (4.2.5.2) lib/active_support/inflector/methods.rb:259:in `constantize'
actionpack (4.2.5.2) lib/action_dispatch/routing/route_set.rb:70:in `controller_reference'
actionpack (4.2.5.2) lib/action_dispatch/routing/route_set.rb:60:in `controller'
actionpack (4.2.5.2) lib/action_dispatch/routing/route_set.rb:39: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/_trace.html.erb (3.6ms)
Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/routes/_route.html.erb (2.0ms)
Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/routes/_route.html.erb (0.5ms)
Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/routes/_table.html.erb (4.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 (2.0ms)
Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/rescues/routing_error.html.erb within rescues/layout (44.2ms)
Started GET "/simple_cart/cart" for 127.0.0.1 at 2016-03-10 23:44:25 +0200
Processing by SimpleCart::CartsController#show as HTML
[1m[36mItem Load (0.2ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", 2]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "2"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "2"]]
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml within layouts/simple_cart/application (27.0ms)
Completed 200 OK in 54ms (Views: 49.0ms | ActiveRecord: 0.9ms)
Started GET "/simple_cart/cart" for 127.0.0.1 at 2016-03-10 23:44:26 +0200
Processing by SimpleCart::CartsController#show as HTML
[1m[35mItem Load (0.1ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 2]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "2"]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "2"]]
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml within layouts/simple_cart/application (11.4ms)
Completed 200 OK in 26ms (Views: 25.0ms | ActiveRecord: 0.2ms)
Started GET "/simple_cart/cart" for 127.0.0.1 at 2016-03-10 23:44:28 +0200
Processing by SimpleCart::CartsController#show as HTML
[1m[36mItem Load (0.1ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", 2]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "2"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "2"]]
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml within layouts/simple_cart/application (13.6ms)
Completed 200 OK in 30ms (Views: 29.8ms | ActiveRecord: 0.1ms)
Started GET "/assets/simple_cart/application.self-8f06a73c35179188914ab50e057157639fce1401c1cdca640ac9cec33746fc5b.js?body=1" for 127.0.0.1 at 2016-03-10 23:44:28 +0200
Started GET "/assets/simple_cart/application.self-2f12d59583468bdcee27c6046669f62a778d265fc91cf385e5d36e9189ac822e.css?body=1" for 127.0.0.1 at 2016-03-10 23:44:28 +0200
Started GET "/" for 127.0.0.1 at 2016-03-10 23:44:32 +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.7ms)
Completed 200 OK in 5ms (Views: 4.4ms | ActiveRecord: 0.0ms)
Started GET "/items/2" for 127.0.0.1 at 2016-03-10 23:45:27 +0200
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
Processing by ItemsController#show as HTML
Parameters: {"id"=>"2"}
[1m[35mItem Load (0.2ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 2]]
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/_buy.html.haml (14.6ms)
Rendered items/show.html.erb within layouts/application (24.3ms)
Completed 200 OK in 203ms (Views: 181.5ms | ActiveRecord: 0.5ms)
Started POST "/simple_cart/cart/2" for 127.0.0.1 at 2016-03-10 23:45:29 +0200
Processing by SimpleCart::CartsController#add as HTML
Parameters: {"utf8"=>"✓", "authenticity_token"=>"AOqd55SI6cNf+fzl2zMtsLa1HF+zFCB6cRpMKdBqEbIEWBpvKDgzgjrttm/r0h/Tkbwicm0A3IYK2U1aeAoPhQ==", "qty"=>"1", "item"=>"Item", "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-10 23:45:29 +0200
Processing by SimpleCart::CartsController#show as HTML
[1m[36mItem Load (0.1ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", 2]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "2"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "2"]]
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml within layouts/application (17.7ms)
Completed 200 OK in 29ms (Views: 28.3ms | ActiveRecord: 0.1ms)
Started GET "/simple_cart/cart" for 127.0.0.1 at 2016-03-10 23:45:32 +0200
Processing by SimpleCart::CartsController#show as HTML
[1m[35mItem Load (0.1ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 2]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "2"]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "2"]]
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml within layouts/application (10.4ms)
Completed 200 OK in 19ms (Views: 18.6ms | ActiveRecord: 0.2ms)
Started GET "/assets/scaffold.self-83b741db49389dc7cfdf85bf7537a0219cce48e085c4116afc83d55c9af47c78.css?body=1" for 127.0.0.1 at 2016-03-10 23:45:32 +0200
Started GET "/assets/items.self-b60acab5af8d245ed2b3012f77d11d8d207d8eada27756badaf4ef05770d60f6.css?body=1" for 127.0.0.1 at 2016-03-10 23:45:32 +0200
Started GET "/assets/application.self-e80e8f2318043e8af94dddc2adad5a4f09739a8ebb323b3ab31cd71d45fd9113.css?body=1" for 127.0.0.1 at 2016-03-10 23:45:32 +0200
Started GET "/assets/application.self-8f06a73c35179188914ab50e057157639fce1401c1cdca640ac9cec33746fc5b.js?body=1" for 127.0.0.1 at 2016-03-10 23:45:32 +0200
Started GET "/assets/items.self-19a187bec6cdb96d6de80a61c16c857c613536adf9138476bd367db38d282635.js?body=1" for 127.0.0.1 at 2016-03-10 23:45:32 +0200
Started GET "/simple_cart/cart" for 127.0.0.1 at 2016-03-10 23:45:36 +0200
Processing by SimpleCart::CartsController#show as HTML
[1m[36mItem Load (0.1ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", 2]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "2"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "2"]]
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml within layouts/application (10.2ms)
Completed 200 OK in 21ms (Views: 20.7ms | ActiveRecord: 0.1ms)
Started GET "/assets/scaffold.self-83b741db49389dc7cfdf85bf7537a0219cce48e085c4116afc83d55c9af47c78.css?body=1" for 127.0.0.1 at 2016-03-10 23:45:36 +0200
Started GET "/assets/items.self-19a187bec6cdb96d6de80a61c16c857c613536adf9138476bd367db38d282635.js?body=1" for 127.0.0.1 at 2016-03-10 23:45:36 +0200
Started GET "/assets/application.self-8f06a73c35179188914ab50e057157639fce1401c1cdca640ac9cec33746fc5b.js?body=1" for 127.0.0.1 at 2016-03-10 23:45:36 +0200
Started GET "/assets/items.self-b60acab5af8d245ed2b3012f77d11d8d207d8eada27756badaf4ef05770d60f6.css?body=1" for 127.0.0.1 at 2016-03-10 23:45:36 +0200
Started GET "/assets/application.self-e80e8f2318043e8af94dddc2adad5a4f09739a8ebb323b3ab31cd71d45fd9113.css?body=1" for 127.0.0.1 at 2016-03-10 23:45:36 +0200
Started GET "/simple_cart/cart" for 127.0.0.1 at 2016-03-10 23:45:43 +0200
Processing by SimpleCart::CartsController#show as HTML
[1m[35mItem Load (0.1ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 2]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "2"]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "2"]]
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml within layouts/application (12.6ms)
Completed 200 OK in 22ms (Views: 21.2ms | ActiveRecord: 0.2ms)
Started GET "/assets/items.self-b60acab5af8d245ed2b3012f77d11d8d207d8eada27756badaf4ef05770d60f6.css?body=1" for 127.0.0.1 at 2016-03-10 23:45:43 +0200
Started GET "/assets/scaffold.self-83b741db49389dc7cfdf85bf7537a0219cce48e085c4116afc83d55c9af47c78.css?body=1" for 127.0.0.1 at 2016-03-10 23:45:43 +0200
Started GET "/assets/items.self-19a187bec6cdb96d6de80a61c16c857c613536adf9138476bd367db38d282635.js?body=1" for 127.0.0.1 at 2016-03-10 23:45:43 +0200
Started GET "/assets/application.self-8f06a73c35179188914ab50e057157639fce1401c1cdca640ac9cec33746fc5b.js?body=1" for 127.0.0.1 at 2016-03-10 23:45:43 +0200
Started GET "/assets/application.self-e80e8f2318043e8af94dddc2adad5a4f09739a8ebb323b3ab31cd71d45fd9113.css?body=1" for 127.0.0.1 at 2016-03-10 23:45:43 +0200
Started GET "/simple_cart/cart" for 127.0.0.1 at 2016-03-10 23:45:50 +0200
Processing by SimpleCart::CartsController#show as HTML
[1m[36mItem Load (0.1ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", 2]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "2"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "2"]]
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml within layouts/application (11.6ms)
Completed 200 OK in 34ms (Views: 33.1ms | ActiveRecord: 0.2ms)
Started GET "/simple_cart/cart/remove?id=2" for 127.0.0.1 at 2016-03-10 23:45:51 +0200
Processing by SimpleCart::CartsController#remove as HTML
Parameters: {"id"=>"2"}
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml within layouts/application (7.0ms)
Completed 200 OK in 23ms (Views: 22.0ms | ActiveRecord: 0.0ms)
Started PUT "/simple_cart/cart" for 127.0.0.1 at 2016-03-10 23:45:53 +0200
Processing by SimpleCart::CartsController#update as HTML
Parameters: {"utf8"=>"✓", "authenticity_token"=>"0b10h4jeczRhY5aLSukRowP3xxoLl6asb1ZABmJ0/lLVD/MPNG6pdQR33AF6CCPAJP75N9WDWlAUlUF1yhTgZQ==", "coupon"=>"", "commit"=>"Update"}
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml within layouts/application (6.1ms)
Completed 200 OK in 26ms (Views: 24.9ms | ActiveRecord: 0.0ms)
Started GET "/items/1" for 127.0.0.1 at 2016-03-10 23:45:58 +0200
Processing by ItemsController#show as HTML
Parameters: {"id"=>"1"}
[1m[35mItem Load (0.1ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 1]]
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/_buy.html.haml (7.1ms)
Rendered items/show.html.erb within layouts/application (8.8ms)
Completed 200 OK in 21ms (Views: 20.1ms | ActiveRecord: 0.1ms)
Started POST "/simple_cart/cart/1" for 127.0.0.1 at 2016-03-10 23:45:59 +0200
Processing by SimpleCart::CartsController#add as HTML
Parameters: {"utf8"=>"✓", "authenticity_token"=>"yjgLr05McYbp08otVJL59paD+z0aAqBm6+tsVHHjGA7Oiown8vyrx4zHgKdkc8uVsYrFEMQWXJqQKG0n2YMGOQ==", "qty"=>"1", "item"=>"Item", "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-10 23:45:59 +0200
Processing by SimpleCart::CartsController#show as HTML
[1m[36mItem Load (0.1ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "1"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "1"]]
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml within layouts/application (13.6ms)
Completed 200 OK in 27ms (Views: 25.5ms | ActiveRecord: 0.2ms)
Started GET "/simple_cart/cart" for 127.0.0.1 at 2016-03-10 23:46:52 +0200
Processing by SimpleCart::CartsController#show as HTML
[1m[35mItem Load (0.1ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "1"]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "1"]]
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml within layouts/application (14.1ms)
Completed 200 OK in 35ms (Views: 34.0ms | ActiveRecord: 0.1ms)
Started GET "/assets/scaffold.self-83b741db49389dc7cfdf85bf7537a0219cce48e085c4116afc83d55c9af47c78.css?body=1" for 127.0.0.1 at 2016-03-10 23:46:53 +0200
Started GET "/assets/application.self-e80e8f2318043e8af94dddc2adad5a4f09739a8ebb323b3ab31cd71d45fd9113.css?body=1" for 127.0.0.1 at 2016-03-10 23:46:53 +0200
Started GET "/assets/items.self-b60acab5af8d245ed2b3012f77d11d8d207d8eada27756badaf4ef05770d60f6.css?body=1" for 127.0.0.1 at 2016-03-10 23:46:53 +0200
Started GET "/assets/items.self-19a187bec6cdb96d6de80a61c16c857c613536adf9138476bd367db38d282635.js?body=1" for 127.0.0.1 at 2016-03-10 23:46:53 +0200
Started GET "/assets/application.self-8f06a73c35179188914ab50e057157639fce1401c1cdca640ac9cec33746fc5b.js?body=1" for 127.0.0.1 at 2016-03-10 23:46:53 +0200
Started GET "/simple_cart/cart" for 127.0.0.1 at 2016-03-10 23:46:53 +0200
Processing by SimpleCart::CartsController#show as HTML
[1m[36mItem Load (0.1ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "1"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "1"]]
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml within layouts/application (11.7ms)
Completed 200 OK in 22ms (Views: 20.9ms | ActiveRecord: 0.1ms)
Started GET "/assets/items.self-b60acab5af8d245ed2b3012f77d11d8d207d8eada27756badaf4ef05770d60f6.css?body=1" for 127.0.0.1 at 2016-03-10 23:46:54 +0200
Started GET "/assets/scaffold.self-83b741db49389dc7cfdf85bf7537a0219cce48e085c4116afc83d55c9af47c78.css?body=1" for 127.0.0.1 at 2016-03-10 23:46:54 +0200
Started GET "/assets/application.self-e80e8f2318043e8af94dddc2adad5a4f09739a8ebb323b3ab31cd71d45fd9113.css?body=1" for 127.0.0.1 at 2016-03-10 23:46:54 +0200
Started GET "/assets/items.self-19a187bec6cdb96d6de80a61c16c857c613536adf9138476bd367db38d282635.js?body=1" for 127.0.0.1 at 2016-03-10 23:46:54 +0200
Started GET "/assets/application.self-8f06a73c35179188914ab50e057157639fce1401c1cdca640ac9cec33746fc5b.js?body=1" for 127.0.0.1 at 2016-03-10 23:46:54 +0200
Started GET "/simple_cart/cart" for 127.0.0.1 at 2016-03-10 23:46:58 +0200
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
Processing by SimpleCart::CartsController#show as HTML
[1m[35mItem Load (0.3ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "1"]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "1"]]
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml within layouts/simple_cart/application (45.4ms)
Completed 200 OK in 224ms (Views: 214.7ms | ActiveRecord: 0.6ms)
Started GET "/assets/simple_cart/application.self-2f12d59583468bdcee27c6046669f62a778d265fc91cf385e5d36e9189ac822e.css?body=1" for 127.0.0.1 at 2016-03-10 23:46:58 +0200
Started GET "/assets/simple_cart/application.self-8f06a73c35179188914ab50e057157639fce1401c1cdca640ac9cec33746fc5b.js?body=1" for 127.0.0.1 at 2016-03-10 23:46:58 +0200
Started GET "/simple_cart/cart" for 127.0.0.1 at 2016-03-10 23:47:00 +0200
Processing by SimpleCart::CartsController#show as HTML
[1m[36mItem Load (0.1ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "1"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "1"]]
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml within layouts/simple_cart/application (11.0ms)
Completed 200 OK in 25ms (Views: 24.5ms | ActiveRecord: 0.1ms)
Started GET "/assets/simple_cart/application.self-2f12d59583468bdcee27c6046669f62a778d265fc91cf385e5d36e9189ac822e.css?body=1" for 127.0.0.1 at 2016-03-10 23:47:00 +0200
Started GET "/assets/simple_cart/application.self-8f06a73c35179188914ab50e057157639fce1401c1cdca640ac9cec33746fc5b.js?body=1" for 127.0.0.1 at 2016-03-10 23:47:00 +0200
Started GET "/simple_cart/" for 127.0.0.1 at 2016-03-10 23:47:03 +0200
ActionController::RoutingError (uninitialized constant SimpleCart::CartController):
activesupport (4.2.5.2) lib/active_support/inflector/methods.rb:263:in `const_get'
activesupport (4.2.5.2) lib/active_support/inflector/methods.rb:263:in `block in constantize'
activesupport (4.2.5.2) lib/active_support/inflector/methods.rb:259:in `each'
activesupport (4.2.5.2) lib/active_support/inflector/methods.rb:259:in `inject'
activesupport (4.2.5.2) lib/active_support/inflector/methods.rb:259:in `constantize'
actionpack (4.2.5.2) lib/action_dispatch/routing/route_set.rb:70:in `controller_reference'
actionpack (4.2.5.2) lib/action_dispatch/routing/route_set.rb:60:in `controller'
actionpack (4.2.5.2) lib/action_dispatch/routing/route_set.rb:39: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/_trace.html.erb (2.8ms)
Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/routes/_route.html.erb (2.7ms)
Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/routes/_route.html.erb (1.1ms)
Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/routes/_table.html.erb (4.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.7ms)
Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/rescues/routing_error.html.erb within rescues/layout (44.3ms)
Started GET "/items/2" for 127.0.0.1 at 2016-03-10 23:47:09 +0200
Processing by ItemsController#show as HTML
Parameters: {"id"=>"2"}
[1m[35mItem Load (0.1ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 2]]
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/_buy.html.haml (10.3ms)
Rendered items/show.html.erb within layouts/application (13.0ms)
Completed 200 OK in 30ms (Views: 27.8ms | ActiveRecord: 0.1ms)
Started POST "/simple_cart/cart/2" for 127.0.0.1 at 2016-03-10 23:47:10 +0200
Processing by SimpleCart::CartsController#add as HTML
Parameters: {"utf8"=>"✓", "authenticity_token"=>"o1l0Ns3dOSITENv0MUQRCN4YBznyHF4gj9nXgeyp5ven6/O+cW3jY3YEkX4BpSNr+RE5FCwIotz0GtbyRMn4wA==", "qty"=>"1", "item"=>"Item", "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-10 23:47:10 +0200
Processing by SimpleCart::CartsController#show as HTML
[1m[36mItem Load (0.2ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" IN (1, 2)[0m
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" IN (1, 2)
[1m[36mItem Load (0.1ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mItem Load (0.1ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 2]]
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml within layouts/simple_cart/application (13.5ms)
Completed 200 OK in 25ms (Views: 24.6ms | ActiveRecord: 0.4ms)
Started PUT "/simple_cart/cart" for 127.0.0.1 at 2016-03-10 23:47:13 +0200
Processing by SimpleCart::CartsController#update as HTML
Parameters: {"utf8"=>"✓", "authenticity_token"=>"lZ4lgXV4iQgg8JkHwNV3aZDM2z6NujyIuu1SyZvdeGuRLKIJychTSUXk043wNEUKt8XlE1OuwHTBLlO6M71mXA==", "1"=>"1", "2"=>"1", "coupon"=>"", "commit"=>"Update"}
[1m[36mItem Load (0.2ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" IN (1, 2)[0m
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" IN (1, 2)
[1m[36mItem Load (0.1ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mItem Load (0.1ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 2]]
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml within layouts/simple_cart/application (13.8ms)
Completed 200 OK in 28ms (Views: 27.1ms | ActiveRecord: 0.4ms)
Started PUT "/simple_cart/cart" for 127.0.0.1 at 2016-03-10 23:47:15 +0200
Processing by SimpleCart::CartsController#update as HTML
Parameters: {"utf8"=>"✓", "authenticity_token"=>"NHBPEgg7WJrQmRo4Y+nyEEkON7ggyHpSI85dqxcPjPUwwsiatIuC27WNULJTCMBzbgcJlf7chq5YDVzYv2+Swg==", "1"=>"1", "2"=>"4", "coupon"=>"", "commit"=>"Update"}
[1m[36mItem Load (0.2ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" IN (1, 2)[0m
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" IN (1, 2)
[1m[36mItem Load (0.1ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mItem Load (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 2]]
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml within layouts/simple_cart/application (12.5ms)
Completed 200 OK in 26ms (Views: 24.3ms | ActiveRecord: 0.4ms)
Started PUT "/simple_cart/cart" for 127.0.0.1 at 2016-03-10 23:47:18 +0200
Processing by SimpleCart::CartsController#update as HTML
Parameters: {"utf8"=>"✓", "authenticity_token"=>"EnY9ekUqog1tuBBX3qkiJRizdFBKhjPc4Jwatp2v5RUWxLry+Zp4TAisWt3uSBBGP7pKfZSSzyCbXxvFNc/7Ig==", "1"=>"5", "2"=>"4", "coupon"=>"", "commit"=>"Update"}
[1m[36mItem Load (0.3ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" IN (1, 2)[0m
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" IN (1, 2)
[1m[36mItem Load (0.1ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mItem Load (0.1ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 2]]
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml within layouts/simple_cart/application (18.9ms)
Completed 200 OK in 39ms (Views: 37.3ms | ActiveRecord: 0.6ms)
Started GET "/simple_cart/cart" for 127.0.0.1 at 2016-03-10 23:48:46 +0200
Processing by SimpleCart::CartsController#show as HTML
[1m[36mItem Load (0.2ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" IN (1, 2)[0m
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" IN (1, 2)
[1m[36mItem Load (0.2ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mItem Load (0.1ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 2]]
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml within layouts/simple_cart/application (17.2ms)
Completed 200 OK in 33ms (Views: 29.1ms | ActiveRecord: 0.9ms)
Started GET "/simple_cart/" for 127.0.0.1 at 2016-03-10 23:48:48 +0200
Processing by SimpleCart::CartsController#show as HTML
[1m[36mItem Load (0.2ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" IN (1, 2)[0m
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" IN (1, 2)
[1m[36mItem Load (0.1ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mItem Load (0.1ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 2]]
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml within layouts/simple_cart/application (14.6ms)
Completed 200 OK in 26ms (Views: 24.7ms | ActiveRecord: 0.4ms)
Started GET "/simple_cart/" for 127.0.0.1 at 2016-03-10 23:48:49 +0200
Processing by SimpleCart::CartsController#show as HTML
[1m[36mItem Load (0.2ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" IN (1, 2)[0m
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" IN (1, 2)
[1m[36mItem Load (0.1ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mItem Load (0.1ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 2]]
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml within layouts/simple_cart/application (13.6ms)
Completed 200 OK in 25ms (Views: 24.1ms | ActiveRecord: 0.4ms)
Started PUT "/simple_cart/cart" for 127.0.0.1 at 2016-03-10 23:48:51 +0200
Processing by SimpleCart::CartsController#update as HTML
Parameters: {"utf8"=>"✓", "authenticity_token"=>"F8XhYK+Z4/bieE8amfyH6vpYxc30OagDd80z/uUiUlYTd2boEyk5t4dsBZCpHbWJ3VH74CotVP8MDjKNTUJMYQ==", "1"=>"5", "2"=>"4", "coupon"=>"", "commit"=>"Update"}
[1m[36mItem Load (0.3ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" IN (1, 2)[0m
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" IN (1, 2)
[1m[36mItem Load (0.1ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mItem Load (0.1ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 2]]
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml within layouts/simple_cart/application (14.6ms)
Completed 200 OK in 29ms (Views: 27.6ms | ActiveRecord: 0.4ms)
Started PUT "/simple_cart/cart" for 127.0.0.1 at 2016-03-10 23:48:54 +0200
Processing by SimpleCart::CartsController#update as HTML
Parameters: {"utf8"=>"✓", "authenticity_token"=>"Eup0qaLEyCFRNhKgKHEmWZaRuqmsXljToIU42WFgaf0WWPMhHnQSYDQiWCoYkBQ6sZiEhHJKpC/bRjmqyQB3yg==", "1"=>"5", "2"=>"4", "coupon"=>"", "commit"=>"Update"}
[1m[36mItem Load (0.2ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" IN (1, 2)[0m
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" IN (1, 2)
[1m[36mItem Load (0.1ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mItem Load (0.1ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 2]]
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml within layouts/simple_cart/application (14.3ms)
Completed 200 OK in 27ms (Views: 25.9ms | ActiveRecord: 0.4ms)
Started GET "/simple_cart/cart/remove?id=1" for 127.0.0.1 at 2016-03-10 23:49:03 +0200
Processing by SimpleCart::CartsController#remove as HTML
Parameters: {"id"=>"1"}
[1m[36mItem Load (0.1ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", 2]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "2"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "2"]]
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml within layouts/simple_cart/application (10.6ms)
Completed 200 OK in 23ms (Views: 22.2ms | ActiveRecord: 0.1ms)
Started GET "/simple_cart/" for 127.0.0.1 at 2016-03-10 23:49:13 +0200
Processing by SimpleCart::CartsController#show as HTML
[1m[35mItem Load (0.2ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 2]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "2"]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "2"]]
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml within layouts/simple_cart/application (10.5ms)
Completed 200 OK in 31ms (Views: 29.9ms | ActiveRecord: 0.2ms)
Started PUT "/simple_cart/cart" for 127.0.0.1 at 2016-03-10 23:49:20 +0200
Processing by SimpleCart::CartsController#update as HTML
Parameters: {"utf8"=>"✓", "authenticity_token"=>"6wvf+rpslIbDXYYnuiD3GWTRZcmStKLx/nx98UITMHbvuVhyBtxOx6ZJzK2KwcV6Q9hb5EygXg2Fv3yC6nMuQQ==", "2"=>"3", "coupon"=>"", "commit"=>"Update"}
[1m[36mItem Load (0.1ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", 2]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "2"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "2"]]
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml within layouts/simple_cart/application (10.1ms)
Completed 200 OK in 23ms (Views: 22.4ms | ActiveRecord: 0.1ms)
Started GET "/simple_cart/" for 127.0.0.1 at 2016-03-10 23:49:59 +0200
Processing by SimpleCart::CartsController#show as HTML
[1m[35mItem Load (0.1ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 2]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "2"]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "2"]]
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml within layouts/simple_cart/application (14.0ms)
Completed 200 OK in 27ms (Views: 26.4ms | ActiveRecord: 0.2ms)
Started PUT "/simple_cart/cart" for 127.0.0.1 at 2016-03-10 23:50:06 +0200
Processing by SimpleCart::CartsController#update as HTML
Parameters: {"utf8"=>"✓", "authenticity_token"=>"w3w1EmFrsQjm5NflfmdHV7qZL6f58oeQVkFGuzuMCfzHzrKa3dtrSYPwnW9OhnU0nZARiifme2wtgkfIk+wXyw==", "2"=>"4", "coupon"=>"", "commit"=>"Update"}
[1m[36mItem Load (0.1ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", 2]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "2"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "2"]]
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml within layouts/simple_cart/application (8.6ms)
Completed 200 OK in 24ms (Views: 23.1ms | ActiveRecord: 0.1ms)
Started GET "/simple_cart/cart/clear" for 127.0.0.1 at 2016-03-10 23:50:15 +0200
Processing by SimpleCart::CartsController#clear as HTML
Redirected to http://localhost:3000/simple_cart/cart
Completed 302 Found in 8ms (ActiveRecord: 0.0ms)
Started GET "/simple_cart/cart" for 127.0.0.1 at 2016-03-10 23:50:15 +0200
Processing by SimpleCart::CartsController#show as HTML
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml within layouts/simple_cart/application (3.9ms)
Completed 200 OK in 18ms (Views: 17.1ms | ActiveRecord: 0.0ms)
Started GET "/simple_cart/cart/clear" for 127.0.0.1 at 2016-03-10 23:50:19 +0200
Processing by SimpleCart::CartsController#clear as HTML
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-10 23:50:19 +0200
Processing by SimpleCart::CartsController#show as HTML
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml within layouts/simple_cart/application (5.0ms)
Completed 200 OK in 18ms (Views: 17.4ms | ActiveRecord: 0.0ms)
Started GET "/items" for 127.0.0.1 at 2016-03-10 23:51:00 +0200
Processing by ItemsController#index as HTML
[1m[35mItem Load (0.2ms)[0m SELECT "items".* FROM "items"
Rendered items/index.html.erb within layouts/application (4.2ms)
Completed 200 OK in 19ms (Views: 18.2ms | ActiveRecord: 0.2ms)
Started GET "/items/3" for 127.0.0.1 at 2016-03-10 23:51:02 +0200
Processing by ItemsController#show as HTML
Parameters: {"id"=>"3"}
[1m[36mItem Load (0.1ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", 3]]
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/_buy.html.haml (6.3ms)
Rendered items/show.html.erb within layouts/application (9.1ms)
Completed 200 OK in 18ms (Views: 17.4ms | ActiveRecord: 0.1ms)
Started POST "/simple_cart/cart/3" for 127.0.0.1 at 2016-03-10 23:51:05 +0200
Processing by SimpleCart::CartsController#add as HTML
Parameters: {"utf8"=>"✓", "authenticity_token"=>"3mvGrMCTAaXM2NcuErD+LRg2kBs1xT1J6htXYbvs3cHa2UEkfCPb5KnMnaQiUcxOPz+uNuvRwbWR2FYSE4zD9g==", "qty"=>"4", "item"=>"Item", "commit"=>"Add to cart", "item_id"=>"3"}
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-10 23:51:05 +0200
Processing by SimpleCart::CartsController#show as HTML
[1m[35mItem Load (0.1ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 3]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "3"]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "3"]]
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml within layouts/simple_cart/application (11.1ms)
Completed 200 OK in 25ms (Views: 24.0ms | ActiveRecord: 0.2ms)
Started GET "/simple_cart/cart" for 127.0.0.1 at 2016-03-10 23:52:35 +0200
Processing by SimpleCart::CartsController#show as HTML
[1m[36mItem Load (0.1ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", 3]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "3"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "3"]]
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml within layouts/simple_cart/application (14.5ms)
Completed 200 OK in 26ms (Views: 25.3ms | ActiveRecord: 0.1ms)
Started GET "/assets/simple_cart/application.self-8f06a73c35179188914ab50e057157639fce1401c1cdca640ac9cec33746fc5b.js?body=1" for 127.0.0.1 at 2016-03-10 23:52:35 +0200
Started GET "/assets/simple_cart/application.self-2f12d59583468bdcee27c6046669f62a778d265fc91cf385e5d36e9189ac822e.css?body=1" for 127.0.0.1 at 2016-03-10 23:52:35 +0200
Started GET "/bicycles" for 127.0.0.1 at 2016-03-10 23:54:28 +0200
[1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
ActiveRecord::PendingMigrationError (
Migrations are pending. To resolve this issue, run:
bin/rake db:migrate RAILS_ENV=development
):
activerecord (4.2.5.2) lib/active_record/migration.rb:392:in `check_pending!'
activerecord (4.2.5.2) lib/active_record/migration.rb:373: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 (3.5ms)
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.8ms)
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
Migrating to CreateBicycles (20160310215421)
[1m[35m (0.1ms)[0m begin transaction
[1m[36m (0.3ms)[0m [1mCREATE TABLE "bicycles" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "price" decimal, "qty" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20160310215421"]]
[1m[36m (82.8ms)[0m [1mcommit transaction[0m
[1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
Started GET "/bicycles" for 127.0.0.1 at 2016-03-10 23:54:36 +0200
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
Processing by BicyclesController#index as HTML
[1m[35mBicycle Load (0.2ms)[0m SELECT "bicycles".* FROM "bicycles"
Rendered bicycles/index.html.erb within layouts/application (2.6ms)
Completed 200 OK in 43ms (Views: 41.9ms | ActiveRecord: 0.2ms)
Started GET "/assets/bicycles.self-e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855.css?body=1" for 127.0.0.1 at 2016-03-10 23:54:37 +0200
Started GET "/assets/scaffolds.self-03f606e4c2e4be6137e536a05288397bf7618100b8f51a17a6272e4055793680.css?body=1" for 127.0.0.1 at 2016-03-10 23:54:37 +0200
Started GET "/assets/bicycles.self-19a187bec6cdb96d6de80a61c16c857c613536adf9138476bd367db38d282635.js?body=1" for 127.0.0.1 at 2016-03-10 23:54:37 +0200
Started GET "/bicycles/new" for 127.0.0.1 at 2016-03-10 23:54:38 +0200
Processing by BicyclesController#new as HTML
Rendered bicycles/_form.html.erb (27.9ms)
Rendered bicycles/new.html.erb within layouts/application (29.4ms)
Completed 200 OK in 46ms (Views: 41.5ms | ActiveRecord: 0.2ms)
Started POST "/bicycles" for 127.0.0.1 at 2016-03-10 23:54:41 +0200
Processing by BicyclesController#create as HTML
Parameters: {"utf8"=>"✓", "authenticity_token"=>"ZvkipcjSCbHajAZOVbHx/8ZnnTzIZvbME5Wxsp7Hd1diS6UtdGLT8L+YTMRlUMOc4W6jERZyCjBoVrDBNqdpYA==", "bicycle"=>{"name"=>"215", "price"=>"22", "qty"=>"1"}, "commit"=>"Create Bicycle"}
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
[1m[35mSQL (0.4ms)[0m INSERT INTO "bicycles" ("name", "price", "qty", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["name", "215"], ["price", 22.0], ["qty", 1], ["created_at", "2016-03-10 21:54:41.819402"], ["updated_at", "2016-03-10 21:54:41.819402"]]
[1m[36m (74.6ms)[0m [1mcommit transaction[0m
Redirected to http://localhost:3000/bicycles/1
Completed 302 Found in 80ms (ActiveRecord: 75.1ms)
Started GET "/bicycles/1" for 127.0.0.1 at 2016-03-10 23:54:41 +0200
Processing by BicyclesController#show as HTML
Parameters: {"id"=>"1"}
[1m[35mBicycle Load (0.2ms)[0m SELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1 [["id", 1]]
Rendered bicycles/show.html.erb within layouts/application (1.0ms)
Completed 200 OK in 14ms (Views: 12.9ms | ActiveRecord: 0.2ms)
Started GET "/bicycles/1" for 127.0.0.1 at 2016-03-10 23:55:12 +0200
Processing by BicyclesController#show as HTML
Parameters: {"id"=>"1"}
[1m[36mBicycle Load (0.1ms)[0m [1mSELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1[0m [["id", 1]]
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/_buy.html.haml (7.8ms)
Rendered bicycles/show.html.erb within layouts/application (9.6ms)
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-10 23:55:12 +0200
Started GET "/assets/items.self-b60acab5af8d245ed2b3012f77d11d8d207d8eada27756badaf4ef05770d60f6.css?body=1" for 127.0.0.1 at 2016-03-10 23:55:12 +0200
Started GET "/assets/scaffold.self-83b741db49389dc7cfdf85bf7537a0219cce48e085c4116afc83d55c9af47c78.css?body=1" for 127.0.0.1 at 2016-03-10 23:55:12 +0200
Started GET "/assets/scaffolds.self-03f606e4c2e4be6137e536a05288397bf7618100b8f51a17a6272e4055793680.css?body=1" for 127.0.0.1 at 2016-03-10 23:55:12 +0200
Started GET "/assets/application.self-e80e8f2318043e8af94dddc2adad5a4f09739a8ebb323b3ab31cd71d45fd9113.css?body=1" for 127.0.0.1 at 2016-03-10 23:55:12 +0200
Started GET "/assets/bicycles.self-19a187bec6cdb96d6de80a61c16c857c613536adf9138476bd367db38d282635.js?body=1" for 127.0.0.1 at 2016-03-10 23:55:12 +0200
Started GET "/assets/application.self-8f06a73c35179188914ab50e057157639fce1401c1cdca640ac9cec33746fc5b.js?body=1" for 127.0.0.1 at 2016-03-10 23:55:12 +0200
Started GET "/assets/items.self-19a187bec6cdb96d6de80a61c16c857c613536adf9138476bd367db38d282635.js?body=1" for 127.0.0.1 at 2016-03-10 23:55:12 +0200
Started GET "/bicycles/1" for 127.0.0.1 at 2016-03-10 23:55:24 +0200
Processing by BicyclesController#show as HTML
Parameters: {"id"=>"1"}
[1m[35mBicycle Load (0.1ms)[0m SELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1 [["id", 1]]
Rendered bicycles/show.html.erb within layouts/application (1.6ms)
Completed 200 OK in 17ms (Views: 16.1ms | ActiveRecord: 0.1ms)
Started GET "/assets/bicycles.self-e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855.css?body=1" for 127.0.0.1 at 2016-03-10 23:55:25 +0200
Started GET "/assets/items.self-b60acab5af8d245ed2b3012f77d11d8d207d8eada27756badaf4ef05770d60f6.css?body=1" for 127.0.0.1 at 2016-03-10 23:55:25 +0200
Started GET "/assets/scaffolds.self-03f606e4c2e4be6137e536a05288397bf7618100b8f51a17a6272e4055793680.css?body=1" for 127.0.0.1 at 2016-03-10 23:55:25 +0200
Started GET "/assets/application.self-e80e8f2318043e8af94dddc2adad5a4f09739a8ebb323b3ab31cd71d45fd9113.css?body=1" for 127.0.0.1 at 2016-03-10 23:55:25 +0200
Started GET "/assets/bicycles.self-19a187bec6cdb96d6de80a61c16c857c613536adf9138476bd367db38d282635.js?body=1" for 127.0.0.1 at 2016-03-10 23:55:25 +0200
Started GET "/assets/scaffold.self-83b741db49389dc7cfdf85bf7537a0219cce48e085c4116afc83d55c9af47c78.css?body=1" for 127.0.0.1 at 2016-03-10 23:55:25 +0200
Started GET "/assets/items.self-19a187bec6cdb96d6de80a61c16c857c613536adf9138476bd367db38d282635.js?body=1" for 127.0.0.1 at 2016-03-10 23:55:25 +0200
Started GET "/assets/application.self-8f06a73c35179188914ab50e057157639fce1401c1cdca640ac9cec33746fc5b.js?body=1" for 127.0.0.1 at 2016-03-10 23:55:25 +0200
Started GET "/bicycles/1" for 127.0.0.1 at 2016-03-10 23:55:27 +0200
Processing by BicyclesController#show as HTML
Parameters: {"id"=>"1"}
[1m[36mBicycle Load (0.1ms)[0m [1mSELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1[0m [["id", 1]]
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/_buy.html.haml (7.3ms)
Rendered bicycles/show.html.erb within layouts/application (9.7ms)
Completed 200 OK in 20ms (Views: 19.3ms | ActiveRecord: 0.1ms)
Started GET "/assets/bicycles.self-e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855.css?body=1" for 127.0.0.1 at 2016-03-10 23:55:27 +0200
Started GET "/assets/items.self-b60acab5af8d245ed2b3012f77d11d8d207d8eada27756badaf4ef05770d60f6.css?body=1" for 127.0.0.1 at 2016-03-10 23:55:27 +0200
Started GET "/assets/bicycles.self-19a187bec6cdb96d6de80a61c16c857c613536adf9138476bd367db38d282635.js?body=1" for 127.0.0.1 at 2016-03-10 23:55:27 +0200
Started GET "/assets/items.self-19a187bec6cdb96d6de80a61c16c857c613536adf9138476bd367db38d282635.js?body=1" for 127.0.0.1 at 2016-03-10 23:55:27 +0200
Started GET "/assets/scaffold.self-83b741db49389dc7cfdf85bf7537a0219cce48e085c4116afc83d55c9af47c78.css?body=1" for 127.0.0.1 at 2016-03-10 23:55:27 +0200
Started GET "/assets/application.self-8f06a73c35179188914ab50e057157639fce1401c1cdca640ac9cec33746fc5b.js?body=1" for 127.0.0.1 at 2016-03-10 23:55:27 +0200
Started GET "/assets/application.self-e80e8f2318043e8af94dddc2adad5a4f09739a8ebb323b3ab31cd71d45fd9113.css?body=1" for 127.0.0.1 at 2016-03-10 23:55:27 +0200
Started GET "/assets/scaffolds.self-03f606e4c2e4be6137e536a05288397bf7618100b8f51a17a6272e4055793680.css?body=1" for 127.0.0.1 at 2016-03-10 23:55:27 +0200
Started POST "/simple_cart/cart/1" for 127.0.0.1 at 2016-03-10 23:55:29 +0200
Processing by SimpleCart::CartsController#add as HTML
Parameters: {"utf8"=>"✓", "authenticity_token"=>"luk85ueN1P17yX9Tlo/jWSrYzPvmV5eBEKdSeLOhm9+SW7tuWz0OvB7dNdmmbtE6DdHy1jhDa31rZFMLG8GF6A==", "qty"=>"4", "item"=>"Bicycle", "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-10 23:55:29 +0200
Processing by SimpleCart::CartsController#show as HTML
[1m[35mItem Load (0.2ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" IN (3, 1)
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" IN (3, 1)[0m
[1m[35mItem Load (0.3ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 3]]
[1m[36mItem Load (0.1ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", 1]]
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml within layouts/application (17.4ms)
Completed 200 OK in 33ms (Views: 31.6ms | ActiveRecord: 0.9ms)
Started GET "/simple_cart/cart" for 127.0.0.1 at 2016-03-10 23:55:34 +0200
Processing by SimpleCart::CartsController#show as HTML
[1m[35mItem Load (0.2ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" IN (3, 1)
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" IN (3, 1)[0m
[1m[35mItem Load (0.1ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 3]]
[1m[36mItem Load (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", 1]]
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml within layouts/application (15.2ms)
Completed 200 OK in 26ms (Views: 25.1ms | ActiveRecord: 0.4ms)
Started GET "/assets/bicycles.self-e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855.css?body=1" for 127.0.0.1 at 2016-03-10 23:55:34 +0200
Started GET "/assets/items.self-b60acab5af8d245ed2b3012f77d11d8d207d8eada27756badaf4ef05770d60f6.css?body=1" for 127.0.0.1 at 2016-03-10 23:55:34 +0200
Started GET "/assets/scaffolds.self-03f606e4c2e4be6137e536a05288397bf7618100b8f51a17a6272e4055793680.css?body=1" for 127.0.0.1 at 2016-03-10 23:55:34 +0200
Started GET "/assets/bicycles.self-19a187bec6cdb96d6de80a61c16c857c613536adf9138476bd367db38d282635.js?body=1" for 127.0.0.1 at 2016-03-10 23:55:34 +0200
Started GET "/assets/items.self-19a187bec6cdb96d6de80a61c16c857c613536adf9138476bd367db38d282635.js?body=1" for 127.0.0.1 at 2016-03-10 23:55:34 +0200
Started GET "/assets/application.self-8f06a73c35179188914ab50e057157639fce1401c1cdca640ac9cec33746fc5b.js?body=1" for 127.0.0.1 at 2016-03-10 23:55:34 +0200
Started GET "/assets/application.self-e80e8f2318043e8af94dddc2adad5a4f09739a8ebb323b3ab31cd71d45fd9113.css?body=1" for 127.0.0.1 at 2016-03-10 23:55:34 +0200
Started GET "/assets/scaffold.self-83b741db49389dc7cfdf85bf7537a0219cce48e085c4116afc83d55c9af47c78.css?body=1" for 127.0.0.1 at 2016-03-10 23:55:34 +0200
Started GET "/simple_cart/cart" for 127.0.0.1 at 2016-03-10 23:55:35 +0200
Processing by SimpleCart::CartsController#show as HTML
[1m[35mItem Load (0.2ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" IN (3, 1)
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" IN (3, 1)[0m
[1m[35mItem Load (0.2ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 3]]
[1m[36mItem Load (0.1ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", 1]]
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml within layouts/application (13.3ms)
Completed 200 OK in 24ms (Views: 22.8ms | ActiveRecord: 0.5ms)
Started GET "/assets/bicycles.self-e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855.css?body=1" for 127.0.0.1 at 2016-03-10 23:55:35 +0200
Started GET "/assets/application.self-e80e8f2318043e8af94dddc2adad5a4f09739a8ebb323b3ab31cd71d45fd9113.css?body=1" for 127.0.0.1 at 2016-03-10 23:55:35 +0200
Started GET "/assets/scaffold.self-83b741db49389dc7cfdf85bf7537a0219cce48e085c4116afc83d55c9af47c78.css?body=1" for 127.0.0.1 at 2016-03-10 23:55:35 +0200
Started GET "/assets/scaffolds.self-03f606e4c2e4be6137e536a05288397bf7618100b8f51a17a6272e4055793680.css?body=1" for 127.0.0.1 at 2016-03-10 23:55:35 +0200
Started GET "/assets/bicycles.self-19a187bec6cdb96d6de80a61c16c857c613536adf9138476bd367db38d282635.js?body=1" for 127.0.0.1 at 2016-03-10 23:55:35 +0200
Started GET "/assets/items.self-b60acab5af8d245ed2b3012f77d11d8d207d8eada27756badaf4ef05770d60f6.css?body=1" for 127.0.0.1 at 2016-03-10 23:55:35 +0200
Started GET "/assets/application.self-8f06a73c35179188914ab50e057157639fce1401c1cdca640ac9cec33746fc5b.js?body=1" for 127.0.0.1 at 2016-03-10 23:55:35 +0200
Started GET "/assets/items.self-19a187bec6cdb96d6de80a61c16c857c613536adf9138476bd367db38d282635.js?body=1" for 127.0.0.1 at 2016-03-10 23:55:35 +0200
Started GET "/simple_cart/cart/remove?id=3" for 127.0.0.1 at 2016-03-10 23:55:45 +0200
Processing by SimpleCart::CartsController#remove as HTML
Parameters: {"id"=>"3"}
[1m[35mItem Load (0.1ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "1"]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "1"]]
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml within layouts/application (7.5ms)
Completed 200 OK in 20ms (Views: 19.1ms | ActiveRecord: 0.1ms)
Started GET "/simple_cart/cart/remove?id=1" for 127.0.0.1 at 2016-03-10 23:55:46 +0200
Processing by SimpleCart::CartsController#remove as HTML
Parameters: {"id"=>"1"}
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml within layouts/application (5.4ms)
Completed 200 OK in 16ms (Views: 15.6ms | ActiveRecord: 0.0ms)
Started GET "/bicycle" for 127.0.0.1 at 2016-03-10 23:55:54 +0200
ActionController::RoutingError (No route matches [GET] "/bicycle"):
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.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/_trace.html.erb (1.1ms)
Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/routes/_route.html.erb (1.6ms)
Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/routes/_route.html.erb (0.5ms)
Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/routes/_table.html.erb (1.5ms)
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.6ms)
Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/rescues/routing_error.html.erb within rescues/layout (28.0ms)
Started GET "/bicycles" for 127.0.0.1 at 2016-03-10 23:55:56 +0200
Processing by BicyclesController#index as HTML
[1m[36mBicycle Load (0.2ms)[0m [1mSELECT "bicycles".* FROM "bicycles"[0m
Rendered bicycles/index.html.erb within layouts/application (1.5ms)
Completed 200 OK in 18ms (Views: 17.3ms | ActiveRecord: 0.2ms)
Started GET "/bicycles/1" for 127.0.0.1 at 2016-03-10 23:55:57 +0200
Processing by BicyclesController#show as HTML
Parameters: {"id"=>"1"}
[1m[35mBicycle Load (0.1ms)[0m SELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1 [["id", 1]]
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/_buy.html.haml (9.6ms)
Rendered bicycles/show.html.erb within layouts/application (11.6ms)
Completed 200 OK in 25ms (Views: 23.8ms | ActiveRecord: 0.1ms)
Started POST "/simple_cart/cart/1" for 127.0.0.1 at 2016-03-10 23:55:59 +0200
Processing by SimpleCart::CartsController#add as HTML
Parameters: {"utf8"=>"✓", "authenticity_token"=>"DMSU9hc7x04dddLHi8qywYIzauGAbUBj/Sq7/24vuNUIdhN+q4sdD3hhmE27K4CipTpUzF55vJ+G6bqMxk+m4g==", "qty"=>"3", "item"=>"Bicycle", "commit"=>"Add to cart", "item_id"=>"1"}
Redirected to http://localhost:3000/simple_cart/cart
Completed 302 Found in 9ms (ActiveRecord: 0.0ms)
Started GET "/simple_cart/cart" for 127.0.0.1 at 2016-03-10 23:55:59 +0200
Processing by SimpleCart::CartsController#show as HTML
[1m[36mItem Load (0.1ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "1"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "1"]]
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml within layouts/application (10.0ms)
Completed 200 OK in 20ms (Views: 19.3ms | ActiveRecord: 0.1ms)
Started GET "/bicycles/1" for 127.0.0.1 at 2016-03-10 23:56:17 +0200
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
Processing by BicyclesController#show as HTML
Parameters: {"id"=>"1"}
[1m[35mBicycle Load (0.2ms)[0m SELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1 [["id", 1]]
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/_buy.html.haml (16.4ms)
Rendered bicycles/show.html.erb within layouts/application (26.3ms)
Completed 200 OK in 205ms (Views: 184.4ms | ActiveRecord: 0.4ms)
Started GET "/assets/bicycles.self-e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855.css?body=1" for 127.0.0.1 at 2016-03-10 23:56:17 +0200
Started GET "/assets/scaffold.self-83b741db49389dc7cfdf85bf7537a0219cce48e085c4116afc83d55c9af47c78.css?body=1" for 127.0.0.1 at 2016-03-10 23:56:17 +0200
Started GET "/assets/items.self-19a187bec6cdb96d6de80a61c16c857c613536adf9138476bd367db38d282635.js?body=1" for 127.0.0.1 at 2016-03-10 23:56:17 +0200
Started GET "/assets/items.self-b60acab5af8d245ed2b3012f77d11d8d207d8eada27756badaf4ef05770d60f6.css?body=1" for 127.0.0.1 at 2016-03-10 23:56:17 +0200
Started GET "/assets/application.self-8f06a73c35179188914ab50e057157639fce1401c1cdca640ac9cec33746fc5b.js?body=1" for 127.0.0.1 at 2016-03-10 23:56:17 +0200
Started GET "/assets/scaffolds.self-03f606e4c2e4be6137e536a05288397bf7618100b8f51a17a6272e4055793680.css?body=1" for 127.0.0.1 at 2016-03-10 23:56:17 +0200
Started GET "/assets/application.self-e80e8f2318043e8af94dddc2adad5a4f09739a8ebb323b3ab31cd71d45fd9113.css?body=1" for 127.0.0.1 at 2016-03-10 23:56:17 +0200
Started GET "/assets/bicycles.self-19a187bec6cdb96d6de80a61c16c857c613536adf9138476bd367db38d282635.js?body=1" for 127.0.0.1 at 2016-03-10 23:56:17 +0200
Started POST "/simple_cart/cart/1" for 127.0.0.1 at 2016-03-10 23:56:20 +0200
Processing by SimpleCart::CartsController#add as HTML
Parameters: {"utf8"=>"✓", "authenticity_token"=>"FLAi6GcKqqvKaOfS0bmYC6yIAfw6lMeYSjHsujZWZgQQAqVg27pw6q98rVjhWKpoi4E/0eSAO2Qx8u3JnjZ4Mw==", "qty"=>"1", "item"=>"Bicycle", "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-10 23:56:20 +0200
Processing by SimpleCart::CartsController#show as HTML
[1m[36mItem Load (0.2ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "1"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "1"]]
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml within layouts/application (25.6ms)
Completed 200 OK in 41ms (Views: 39.7ms | ActiveRecord: 0.4ms)
Started GET "/items" for 127.0.0.1 at 2016-03-10 23:56:27 +0200
Processing by ItemsController#index as HTML
[1m[35mItem Load (0.2ms)[0m SELECT "items".* FROM "items"
Rendered items/index.html.erb within layouts/application (4.4ms)
Completed 200 OK in 32ms (Views: 31.1ms | ActiveRecord: 0.2ms)
Started GET "/items/1" for 127.0.0.1 at 2016-03-10 23:56:29 +0200
Processing by ItemsController#show as HTML
Parameters: {"id"=>"1"}
[1m[36mItem Load (0.1ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", 1]]
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/_buy.html.haml (6.3ms)
Rendered items/show.html.erb within layouts/application (9.0ms)
Completed 200 OK in 31ms (Views: 30.3ms | ActiveRecord: 0.1ms)
Started POST "/simple_cart/cart/1" for 127.0.0.1 at 2016-03-10 23:56:30 +0200
Processing by SimpleCart::CartsController#add as HTML
Parameters: {"utf8"=>"✓", "authenticity_token"=>"p9Xwe6OgPQXwU5zjeQHonO6/24B31Qv+oNtCO3+GbuqjZ3fzHxDnRJVH1mlJ4Nr/ybblranB9wLbGENI1+Zw3Q==", "qty"=>"1", "item"=>"Item", "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-10 23:56:30 +0200
Processing by SimpleCart::CartsController#show as HTML
[1m[35mItem Load (0.1ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "1"]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "1"]]
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml within layouts/application (14.2ms)
Completed 200 OK in 44ms (Views: 42.7ms | ActiveRecord: 0.1ms)
Started GET "/simple_cart/cart" for 127.0.0.1 at 2016-03-10 23:56:31 +0200
Processing by SimpleCart::CartsController#show as HTML
[1m[36mItem Load (0.1ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "1"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "1"]]
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml within layouts/application (14.3ms)
Completed 200 OK in 44ms (Views: 37.8ms | ActiveRecord: 0.1ms)
Started GET "/assets/bicycles.self-e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855.css?body=1" for 127.0.0.1 at 2016-03-10 23:56:31 +0200
Started GET "/assets/scaffold.self-83b741db49389dc7cfdf85bf7537a0219cce48e085c4116afc83d55c9af47c78.css?body=1" for 127.0.0.1 at 2016-03-10 23:56:31 +0200
Started GET "/assets/bicycles.self-19a187bec6cdb96d6de80a61c16c857c613536adf9138476bd367db38d282635.js?body=1" for 127.0.0.1 at 2016-03-10 23:56:31 +0200
Started GET "/assets/items.self-b60acab5af8d245ed2b3012f77d11d8d207d8eada27756badaf4ef05770d60f6.css?body=1" for 127.0.0.1 at 2016-03-10 23:56:31 +0200
Started GET "/assets/scaffolds.self-03f606e4c2e4be6137e536a05288397bf7618100b8f51a17a6272e4055793680.css?body=1" for 127.0.0.1 at 2016-03-10 23:56:31 +0200
Started GET "/assets/application.self-e80e8f2318043e8af94dddc2adad5a4f09739a8ebb323b3ab31cd71d45fd9113.css?body=1" for 127.0.0.1 at 2016-03-10 23:56:31 +0200
Started GET "/assets/application.self-8f06a73c35179188914ab50e057157639fce1401c1cdca640ac9cec33746fc5b.js?body=1" for 127.0.0.1 at 2016-03-10 23:56:31 +0200
Started GET "/assets/items.self-19a187bec6cdb96d6de80a61c16c857c613536adf9138476bd367db38d282635.js?body=1" for 127.0.0.1 at 2016-03-10 23:56:31 +0200
Started GET "/simple_cart/cart" for 127.0.0.1 at 2016-03-10 23:56:33 +0200
Processing by SimpleCart::CartsController#show as HTML
[1m[35mItem Load (0.1ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "1"]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "1"]]
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml within layouts/application (10.8ms)
Completed 200 OK in 21ms (Views: 20.7ms | ActiveRecord: 0.2ms)
Started GET "/assets/bicycles.self-e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855.css?body=1" for 127.0.0.1 at 2016-03-10 23:56:33 +0200
Started GET "/assets/items.self-b60acab5af8d245ed2b3012f77d11d8d207d8eada27756badaf4ef05770d60f6.css?body=1" for 127.0.0.1 at 2016-03-10 23:56:33 +0200
Started GET "/assets/scaffold.self-83b741db49389dc7cfdf85bf7537a0219cce48e085c4116afc83d55c9af47c78.css?body=1" for 127.0.0.1 at 2016-03-10 23:56:33 +0200
Started GET "/assets/scaffolds.self-03f606e4c2e4be6137e536a05288397bf7618100b8f51a17a6272e4055793680.css?body=1" for 127.0.0.1 at 2016-03-10 23:56:33 +0200
Started GET "/assets/bicycles.self-19a187bec6cdb96d6de80a61c16c857c613536adf9138476bd367db38d282635.js?body=1" for 127.0.0.1 at 2016-03-10 23:56:33 +0200
Started GET "/assets/items.self-19a187bec6cdb96d6de80a61c16c857c613536adf9138476bd367db38d282635.js?body=1" for 127.0.0.1 at 2016-03-10 23:56:33 +0200
Started GET "/assets/application.self-8f06a73c35179188914ab50e057157639fce1401c1cdca640ac9cec33746fc5b.js?body=1" for 127.0.0.1 at 2016-03-10 23:56:33 +0200
Started GET "/assets/application.self-e80e8f2318043e8af94dddc2adad5a4f09739a8ebb323b3ab31cd71d45fd9113.css?body=1" for 127.0.0.1 at 2016-03-10 23:56:33 +0200
Started GET "/simple_cart/cart" for 127.0.0.1 at 2016-03-10 23:56:41 +0200
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
Processing by SimpleCart::CartsController#show as HTML
[1m[35mItem Load (0.3ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "1"]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "1"]]
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml within layouts/simple_cart/application (34.5ms)
Completed 200 OK in 231ms (Views: 220.5ms | ActiveRecord: 0.7ms)
Started GET "/assets/simple_cart/application.self-2f12d59583468bdcee27c6046669f62a778d265fc91cf385e5d36e9189ac822e.css?body=1" for 127.0.0.1 at 2016-03-10 23:56:41 +0200
Started GET "/assets/simple_cart/application.self-8f06a73c35179188914ab50e057157639fce1401c1cdca640ac9cec33746fc5b.js?body=1" for 127.0.0.1 at 2016-03-10 23:56:41 +0200
Started GET "/simple_cart/cart" for 127.0.0.1 at 2016-03-10 23:56:44 +0200
Processing by SimpleCart::CartsController#show as HTML
[1m[36mItem Load (0.1ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "1"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "1"]]
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml within layouts/simple_cart/application (9.5ms)
Completed 200 OK in 22ms (Views: 20.9ms | ActiveRecord: 0.2ms)
Started GET "/assets/simple_cart/application.self-2f12d59583468bdcee27c6046669f62a778d265fc91cf385e5d36e9189ac822e.css?body=1" for 127.0.0.1 at 2016-03-10 23:56:44 +0200
Started GET "/assets/simple_cart/application.self-8f06a73c35179188914ab50e057157639fce1401c1cdca640ac9cec33746fc5b.js?body=1" for 127.0.0.1 at 2016-03-10 23:56:44 +0200
Started POST "/simple_cart/cart/1" for 127.0.0.1 at 2016-03-10 23:56:46 +0200
Processing by SimpleCart::CartsController#add as HTML
Parameters: {"utf8"=>"✓", "authenticity_token"=>"p9Xwe6OgPQXwU5zjeQHonO6/24B31Qv+oNtCO3+GbuqjZ3fzHxDnRJVH1mlJ4Nr/ybblranB9wLbGENI1+Zw3Q==", "qty"=>"1", "item"=>"Item", "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-10 23:56:46 +0200
Processing by SimpleCart::CartsController#show as HTML
[1m[35mItem Load (0.1ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "1"]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "1"]]
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml within layouts/simple_cart/application (10.5ms)
Completed 200 OK in 34ms (Views: 33.0ms | ActiveRecord: 0.2ms)
Started GET "/simple_cart/cart" for 127.0.0.1 at 2016-03-10 23:56:48 +0200
Processing by SimpleCart::CartsController#show as HTML
[1m[36mItem Load (0.1ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "1"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "1"]]
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml within layouts/simple_cart/application (14.4ms)
Completed 200 OK in 44ms (Views: 42.7ms | ActiveRecord: 0.2ms)
Started GET "/assets/simple_cart/application.self-2f12d59583468bdcee27c6046669f62a778d265fc91cf385e5d36e9189ac822e.css?body=1" for 127.0.0.1 at 2016-03-10 23:56:48 +0200
Started GET "/assets/simple_cart/application.self-8f06a73c35179188914ab50e057157639fce1401c1cdca640ac9cec33746fc5b.js?body=1" for 127.0.0.1 at 2016-03-10 23:56:48 +0200
Started GET "/items/3" for 127.0.0.1 at 2016-03-10 23:56:50 +0200
Processing by ItemsController#show as HTML
Parameters: {"id"=>"3"}
[1m[35mItem Load (0.1ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 3]]
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/_buy.html.haml (12.2ms)
Rendered items/show.html.erb within layouts/application (19.6ms)
Completed 200 OK in 48ms (Views: 47.3ms | ActiveRecord: 0.1ms)
Started GET "/bicycles" for 127.0.0.1 at 2016-03-10 23:56:54 +0200
Processing by BicyclesController#index as HTML
[1m[36mBicycle Load (0.3ms)[0m [1mSELECT "bicycles".* FROM "bicycles"[0m
Rendered bicycles/index.html.erb within layouts/application (12.8ms)
Completed 200 OK in 32ms (Views: 27.9ms | ActiveRecord: 0.9ms)
Started GET "/bicycles/1" for 127.0.0.1 at 2016-03-10 23:56:56 +0200
Processing by BicyclesController#show as HTML
Parameters: {"id"=>"1"}
[1m[35mBicycle Load (0.2ms)[0m SELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1 [["id", 1]]
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/_buy.html.haml (6.2ms)
Rendered bicycles/show.html.erb within layouts/application (8.0ms)
Completed 200 OK in 20ms (Views: 18.8ms | ActiveRecord: 0.2ms)
Started POST "/simple_cart/cart/1" for 127.0.0.1 at 2016-03-10 23:56:57 +0200
Processing by SimpleCart::CartsController#add as HTML
Parameters: {"utf8"=>"✓", "authenticity_token"=>"fiiZS24ICWdJ0Eq0UtfQdSkTn1rXe4ayUjhNVxHfk656mh7D0rjTJizEAD5iNuIWDhqhdwlvek4p+0wkub+NmQ==", "qty"=>"1", "item"=>"Bicycle", "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-10 23:56:57 +0200
Processing by SimpleCart::CartsController#show as HTML
[1m[36mItem Load (0.1ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "1"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "1"]]
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml within layouts/simple_cart/application (9.1ms)
Completed 200 OK in 21ms (Views: 20.4ms | ActiveRecord: 0.1ms)
Started GET "/simple_cart/cart" for 127.0.0.1 at 2016-03-10 23:56:58 +0200
Processing by SimpleCart::CartsController#show as HTML
[1m[35mItem Load (0.1ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "1"]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "1"]]
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml within layouts/simple_cart/application (10.3ms)
Completed 200 OK in 26ms (Views: 25.5ms | ActiveRecord: 0.1ms)
Started GET "/assets/simple_cart/application.self-2f12d59583468bdcee27c6046669f62a778d265fc91cf385e5d36e9189ac822e.css?body=1" for 127.0.0.1 at 2016-03-10 23:56:59 +0200
Started GET "/assets/simple_cart/application.self-8f06a73c35179188914ab50e057157639fce1401c1cdca640ac9cec33746fc5b.js?body=1" for 127.0.0.1 at 2016-03-10 23:56:59 +0200
Started PUT "/simple_cart/cart" for 127.0.0.1 at 2016-03-10 23:57:09 +0200
Processing by SimpleCart::CartsController#update as HTML
Parameters: {"utf8"=>"✓", "authenticity_token"=>"6NO8W/O1XtSMuj1elyrwm+bVqUooSmYjYb5yuSAir4bsYTvTTwWElemud9Sny8L4wdyXZ/Zemt8afXPKiEKxsQ==", "1"=>"7", "coupon"=>"", "commit"=>"Update"}
[1m[36mItem Load (0.1ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "1"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "1"]]
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml within layouts/simple_cart/application (11.6ms)
Completed 200 OK in 25ms (Views: 24.3ms | ActiveRecord: 0.2ms)
Started PUT "/simple_cart/cart" for 127.0.0.1 at 2016-03-10 23:57:12 +0200
Processing by SimpleCart::CartsController#update as HTML
Parameters: {"utf8"=>"✓", "authenticity_token"=>"46maiPZhVfCu4ONVsqMFAhWS7RsvLAwll88agFDq9TTnGx0AStGPscv0qd+CQjdhMpvTNvE48NnsDBvz+IrrAw==", "1"=>"11", "coupon"=>"", "commit"=>"Update"}
[1m[35mItem Load (0.1ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "1"]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "1"]]
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml within layouts/simple_cart/application (10.6ms)
Completed 200 OK in 23ms (Views: 22.3ms | ActiveRecord: 0.1ms)
Started PUT "/simple_cart/cart" for 127.0.0.1 at 2016-03-10 23:57:13 +0200
Processing by SimpleCart::CartsController#update as HTML
Parameters: {"utf8"=>"✓", "authenticity_token"=>"2KVXQEL9TECHikHNuohNCCyf0+oWt4lFb8DsuMOyWofcF9DI/k2WAeKeC0eKaX9rC5btx8ijdbkUA+3La9JEsA==", "1"=>"11", "coupon"=>"", "commit"=>"Update"}
[1m[36mItem Load (0.1ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "1"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "1"]]
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml within layouts/simple_cart/application (12.2ms)
Completed 200 OK in 24ms (Views: 23.1ms | ActiveRecord: 0.1ms)
Started PUT "/simple_cart/cart" for 127.0.0.1 at 2016-03-10 23:57:16 +0200
Processing by SimpleCart::CartsController#update as HTML
Parameters: {"utf8"=>"✓", "authenticity_token"=>"Pu3YUb4yKL2pG8WOVqXg/AGI23rLITGu1wgfYS2XpnY6X1/ZAoLy/MwPjwRmRNKfJoHlVxU1zVKsyx4Shfe4QQ==", "1"=>"20", "coupon"=>"", "commit"=>"Update"}
[1m[35mItem Load (0.2ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "1"]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "1"]]
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml within layouts/simple_cart/application (10.4ms)
Completed 200 OK in 23ms (Views: 22.6ms | ActiveRecord: 0.2ms)
Started GET "/simple_cart/cart" for 127.0.0.1 at 2016-03-10 23:58:17 +0200
Processing by SimpleCart::CartsController#show as HTML
[1m[36mItem Load (0.1ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "1"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "1"]]
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml within layouts/simple_cart/application (12.6ms)
Completed 200 OK in 29ms (Views: 26.6ms | ActiveRecord: 0.6ms)
Started PUT "/simple_cart/cart" for 127.0.0.1 at 2016-03-10 23:58:24 +0200
Processing by SimpleCart::CartsController#update as HTML
Parameters: {"utf8"=>"✓", "authenticity_token"=>"/P53tEpcxf75WjSmX3TUmG0EdrD3jkFVkaG9zVNQ57j4TPA89uwfv5xOfixvleb7Sg1InSmavanqYry++zD5jw==", "1"=>"23", "coupon"=>"", "commit"=>"Update"}
[1m[35mItem Load (0.1ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "1"]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "1"]]
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml within layouts/simple_cart/application (8.1ms)
Completed 200 OK in 24ms (Views: 23.3ms | ActiveRecord: 0.1ms)
Started GET "/bicycles" for 127.0.0.1 at 2016-03-10 23:58:44 +0200
Processing by BicyclesController#index as HTML
[1m[36mBicycle Load (0.2ms)[0m [1mSELECT "bicycles".* FROM "bicycles"[0m
Rendered bicycles/index.html.erb within layouts/application (13.4ms)
Completed 200 OK in 32ms (Views: 28.6ms | ActiveRecord: 0.4ms)
Started GET "/bicycles/1" for 127.0.0.1 at 2016-03-10 23:58:46 +0200
Processing by BicyclesController#show as HTML
Parameters: {"id"=>"1"}
[1m[35mBicycle Load (0.2ms)[0m SELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1 [["id", 1]]
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/_buy.html.haml (7.7ms)
Rendered bicycles/show.html.erb within layouts/application (9.3ms)
Completed 200 OK in 23ms (Views: 21.7ms | ActiveRecord: 0.2ms)
Started POST "/simple_cart/cart/1" for 127.0.0.1 at 2016-03-10 23:58:49 +0200
Processing by SimpleCart::CartsController#add as HTML
Parameters: {"utf8"=>"✓", "authenticity_token"=>"BqaPn9EhUmWlpx/3h0AqOg0ttdXTe7IEsl8FymkOXHQCFAgXbZGIJMCzVX23oRhZKiSL+A1vTvjJnAS5wW5CQw==", "qty"=>"1", "item"=>"Bicycle", "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-10 23:58:49 +0200
Processing by SimpleCart::CartsController#show as HTML
[1m[36mItem Load (0.1ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "1"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "1"]]
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml within layouts/simple_cart/application (10.3ms)
Completed 200 OK in 22ms (Views: 21.8ms | ActiveRecord: 0.1ms)
Started GET "/items/2" for 127.0.0.1 at 2016-03-11 00:13:03 +0200
Processing by ItemsController#show as HTML
Parameters: {"id"=>"2"}
[1m[35mItem Load (0.1ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 2]]
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/_buy.html.haml (6.1ms)
Rendered items/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-11 00:13:04 +0200
Processing by SimpleCart::CartsController#add as HTML
Parameters: {"utf8"=>"✓", "authenticity_token"=>"TysoDrghgBNr0ITqWxPzaNEMOfpUPtJ88yyvl5b87flLma+GBJFaUg7EzmBr8sEL9gUH14oqLoCI767kPpzzzg==", "qty"=>"1", "klass"=>"{:value=>Item(id: integer, name: string, price: decimal, qty: integer, created_at: datetime, updated_at: datetime)}", "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-11 00:13:04 +0200
Processing by SimpleCart::CartsController#show as HTML
[1m[36mItem Load (0.2ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" IN (1, 2)[0m
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" IN (1, 2)
[1m[36mItem Load (0.1ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mItem Load (0.1ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 2]]
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml within layouts/simple_cart/application (13.5ms)
Completed 200 OK in 25ms (Views: 24.5ms | ActiveRecord: 0.4ms)
Started POST "/simple_cart/cart/2" for 127.0.0.1 at 2016-03-11 00:13:46 +0200
Processing by SimpleCart::CartsController#add as HTML
Parameters: {"utf8"=>"✓", "authenticity_token"=>"TysoDrghgBNr0ITqWxPzaNEMOfpUPtJ88yyvl5b87flLma+GBJFaUg7EzmBr8sEL9gUH14oqLoCI767kPpzzzg==", "qty"=>"1", "klass"=>"{:value=>Item(id: integer, name: string, price: decimal, qty: integer, created_at: datetime, updated_at: datetime)}", "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-11 00:13:46 +0200
Processing by SimpleCart::CartsController#show as HTML
[1m[36mItem Load (0.3ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" IN (1, 2)[0m
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" IN (1, 2)
[1m[36mItem Load (0.1ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mItem Load (0.1ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 2]]
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml within layouts/simple_cart/application (17.9ms)
Completed 200 OK in 37ms (Views: 35.4ms | ActiveRecord: 0.5ms)
Started GET "/simple_cart/cart" for 127.0.0.1 at 2016-03-11 00:19:20 +0200
Processing by SimpleCart::CartsController#show as HTML
[1m[36mItem Load (0.1ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" IN (1, 2)[0m
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" IN (1, 2)
[1m[36mItem Load (0.2ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mItem Load (0.4ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 2]]
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml within layouts/simple_cart/application (18.8ms)
Completed 200 OK in 33ms (Views: 30.2ms | ActiveRecord: 1.2ms)
Started GET "/assets/simple_cart/application.self-2f12d59583468bdcee27c6046669f62a778d265fc91cf385e5d36e9189ac822e.css?body=1" for 127.0.0.1 at 2016-03-11 00:19:21 +0200
Started GET "/assets/simple_cart/application.self-8f06a73c35179188914ab50e057157639fce1401c1cdca640ac9cec33746fc5b.js?body=1" for 127.0.0.1 at 2016-03-11 00:19:21 +0200
Started PUT "/simple_cart/cart" for 127.0.0.1 at 2016-03-11 00:19:24 +0200
Processing by SimpleCart::CartsController#update as HTML
Parameters: {"utf8"=>"✓", "authenticity_token"=>"QUbEwzL+7mZnS+1ZHtIjykXJZrz0BvT5EV0G8f7UrbRF9ENLjk40JwJfp9MuMxGpYsBYkSoSCAVqngeCVrSzgw==", "1"=>"23", "2"=>"2", "coupon"=>"", "commit"=>"Update"}
[1m[36mItem Load (0.2ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" IN (1, 2)[0m
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" IN (1, 2)
[1m[36mItem Load (0.1ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mItem Load (0.1ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 2]]
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml within layouts/simple_cart/application (15.6ms)
Completed 200 OK in 26ms (Views: 25.5ms | ActiveRecord: 0.5ms)
Started GET "/items/2" for 127.0.0.1 at 2016-03-11 00:19:28 +0200
Processing by ItemsController#show as HTML
Parameters: {"id"=>"2"}
[1m[36mItem Load (0.1ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", 2]]
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/_buy.html.haml (6.9ms)
Rendered items/show.html.erb within layouts/application (8.2ms)
Completed 200 OK in 32ms (Views: 30.6ms | ActiveRecord: 0.1ms)
Started POST "/simple_cart/cart/2" for 127.0.0.1 at 2016-03-11 00:19:30 +0200
Processing by SimpleCart::CartsController#add as HTML
Parameters: {"utf8"=>"✓", "authenticity_token"=>"uva0ZI45tDnsPWZo8qfvrAQXnvZt2YiIVsI6rE0DSHe+RDPsMolueIkpLOLCRt3PIx6g27PNdHQtATvf5WNWQA==", "qty"=>"1", "klass"=>"Item", "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-11 00:19:30 +0200
Processing by SimpleCart::CartsController#show as HTML
[1m[35mItem Load (0.2ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" IN (1, 2, 0)
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml within layouts/simple_cart/application (5.3ms)
Completed 500 Internal Server Error in 8ms (ActiveRecord: 0.2ms)
ActiveRecord::RecordNotFound (Couldn't find all Items with 'id': (1, 2, klass) (found 2 results, but was looking for 3)):
activerecord (4.2.5.2) lib/active_record/relation/finder_methods.rb:324:in `raise_record_not_found_exception!'
activerecord (4.2.5.2) lib/active_record/relation/finder_methods.rb:467:in `find_some'
activerecord (4.2.5.2) lib/active_record/relation/finder_methods.rb:426:in `find_with_ids'
activerecord (4.2.5.2) lib/active_record/relation/finder_methods.rb:71:in `find'
activerecord (4.2.5.2) lib/active_record/querying.rb:3:in `find'
activerecord (4.2.5.2) lib/active_record/core.rb:131:in `find'
/home/leksster/ror/Rubygarage/Amazon/simple_cart/app/models/cart.rb:22:in `items'
/home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml:7:in `block in __home_leksster_ror__ubygarage__mazon_simple_cart_app_views_simple_cart_carts_show_html_haml__3856346825667108544_70040581922920'
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/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml:6:in `__home_leksster_ror__ubygarage__mazon_simple_cart_app_views_simple_cart_carts_show_html_haml__3856346825667108544_70040581922920'
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 (10.1ms)
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 (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 (24.4ms)
Started GET "/items/2" for 127.0.0.1 at 2016-03-11 00:20:16 +0200
Processing by ItemsController#show as HTML
Parameters: {"id"=>"2"}
[1m[36mItem Load (0.2ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", 2]]
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/_buy.html.haml (7.2ms)
Rendered items/show.html.erb within layouts/application (8.5ms)
Completed 200 OK in 27ms (Views: 21.0ms | ActiveRecord: 0.6ms)
Started GET "/assets/bicycles.self-e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855.css?body=1" for 127.0.0.1 at 2016-03-11 00:20:17 +0200
Started GET "/assets/items.self-b60acab5af8d245ed2b3012f77d11d8d207d8eada27756badaf4ef05770d60f6.css?body=1" for 127.0.0.1 at 2016-03-11 00:20:17 +0200
Started GET "/assets/scaffolds.self-03f606e4c2e4be6137e536a05288397bf7618100b8f51a17a6272e4055793680.css?body=1" for 127.0.0.1 at 2016-03-11 00:20:17 +0200
Started GET "/assets/scaffold.self-83b741db49389dc7cfdf85bf7537a0219cce48e085c4116afc83d55c9af47c78.css?body=1" for 127.0.0.1 at 2016-03-11 00:20:17 +0200
Started GET "/assets/application.self-8f06a73c35179188914ab50e057157639fce1401c1cdca640ac9cec33746fc5b.js?body=1" for 127.0.0.1 at 2016-03-11 00:20:17 +0200
Started GET "/assets/items.self-19a187bec6cdb96d6de80a61c16c857c613536adf9138476bd367db38d282635.js?body=1" for 127.0.0.1 at 2016-03-11 00:20:17 +0200
Started GET "/assets/bicycles.self-19a187bec6cdb96d6de80a61c16c857c613536adf9138476bd367db38d282635.js?body=1" for 127.0.0.1 at 2016-03-11 00:20:17 +0200
Started GET "/assets/application.self-e80e8f2318043e8af94dddc2adad5a4f09739a8ebb323b3ab31cd71d45fd9113.css?body=1" for 127.0.0.1 at 2016-03-11 00:20:17 +0200
Started POST "/simple_cart/cart/2" for 127.0.0.1 at 2016-03-11 00:20:18 +0200
Processing by SimpleCart::CartsController#add as HTML
Parameters: {"utf8"=>"✓", "authenticity_token"=>"Oenfoic38+T3rwTtNjks7G8ANNh2guHps2x1JS7R1uk9W1gqm4cppZK7TmcG2B6PSAkK9aiWHRXIr3RWhrHI3g==", "qty"=>"1", "klass"=>"Item", "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-11 00:20:18 +0200
Processing by SimpleCart::CartsController#show as HTML
[1m[35mItem Load (0.2ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" IN (1, 2, 0)
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml within layouts/application (2.6ms)
Completed 500 Internal Server Error in 7ms (ActiveRecord: 0.2ms)
ActiveRecord::RecordNotFound (Couldn't find all Items with 'id': (1, 2, klass) (found 2 results, but was looking for 3)):
activerecord (4.2.5.2) lib/active_record/relation/finder_methods.rb:324:in `raise_record_not_found_exception!'
activerecord (4.2.5.2) lib/active_record/relation/finder_methods.rb:467:in `find_some'
activerecord (4.2.5.2) lib/active_record/relation/finder_methods.rb:426:in `find_with_ids'
activerecord (4.2.5.2) lib/active_record/relation/finder_methods.rb:71:in `find'
activerecord (4.2.5.2) lib/active_record/querying.rb:3:in `find'
activerecord (4.2.5.2) lib/active_record/core.rb:131:in `find'
/home/leksster/ror/Rubygarage/Amazon/simple_cart/app/models/cart.rb:22:in `items'
/home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml:7:in `block in __home_leksster_ror__ubygarage__mazon_simple_cart_app_views_simple_cart_carts_show_html_haml__3856346825667108544_70040581922920'
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/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml:6:in `__home_leksster_ror__ubygarage__mazon_simple_cart_app_views_simple_cart_carts_show_html_haml__3856346825667108544_70040581922920'
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 (8.3ms)
Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (2.8ms)
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 (22.1ms)
Started GET "/simple_cart/" for 127.0.0.1 at 2016-03-11 00:22:20 +0200
Processing by SimpleCart::CartsController#show as HTML
[1m[36mItem Load (0.1ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" IN (1, 2, 0)[0m
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml within layouts/simple_cart/application (6.0ms)
Completed 500 Internal Server Error in 12ms (ActiveRecord: 0.5ms)
ActiveRecord::RecordNotFound (Couldn't find all Items with 'id': (1, 2, klass) (found 2 results, but was looking for 3)):
activerecord (4.2.5.2) lib/active_record/relation/finder_methods.rb:324:in `raise_record_not_found_exception!'
activerecord (4.2.5.2) lib/active_record/relation/finder_methods.rb:467:in `find_some'
activerecord (4.2.5.2) lib/active_record/relation/finder_methods.rb:426:in `find_with_ids'
activerecord (4.2.5.2) lib/active_record/relation/finder_methods.rb:71:in `find'
activerecord (4.2.5.2) lib/active_record/querying.rb:3:in `find'
activerecord (4.2.5.2) lib/active_record/core.rb:131:in `find'
/home/leksster/ror/Rubygarage/Amazon/simple_cart/app/models/cart.rb:22:in `items'
/home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml:7:in `block in __home_leksster_ror__ubygarage__mazon_simple_cart_app_views_simple_cart_carts_show_html_haml__3856346825667108544_70040581922920'
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/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml:6:in `__home_leksster_ror__ubygarage__mazon_simple_cart_app_views_simple_cart_carts_show_html_haml__3856346825667108544_70040581922920'
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 (12.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 (3.2ms)
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 (28.7ms)
Started GET "/simple_cart/" for 127.0.0.1 at 2016-03-11 00:22:20 +0200
Processing by SimpleCart::CartsController#show as HTML
[1m[35mItem Load (0.2ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" IN (1, 2, 0)
Rendered /home/leksster/ror/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 5ms (ActiveRecord: 0.2ms)
ActiveRecord::RecordNotFound (Couldn't find all Items with 'id': (1, 2, klass) (found 2 results, but was looking for 3)):
activerecord (4.2.5.2) lib/active_record/relation/finder_methods.rb:324:in `raise_record_not_found_exception!'
activerecord (4.2.5.2) lib/active_record/relation/finder_methods.rb:467:in `find_some'
activerecord (4.2.5.2) lib/active_record/relation/finder_methods.rb:426:in `find_with_ids'
activerecord (4.2.5.2) lib/active_record/relation/finder_methods.rb:71:in `find'
activerecord (4.2.5.2) lib/active_record/querying.rb:3:in `find'
activerecord (4.2.5.2) lib/active_record/core.rb:131:in `find'
/home/leksster/ror/Rubygarage/Amazon/simple_cart/app/models/cart.rb:22:in `items'
/home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml:7:in `block in __home_leksster_ror__ubygarage__mazon_simple_cart_app_views_simple_cart_carts_show_html_haml__3856346825667108544_70040581922920'
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/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml:6:in `__home_leksster_ror__ubygarage__mazon_simple_cart_app_views_simple_cart_carts_show_html_haml__3856346825667108544_70040581922920'
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 (8.4ms)
Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (3.4ms)
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 (22.0ms)
Started GET "/simple_cart/" for 127.0.0.1 at 2016-03-11 00:22:32 +0200
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
Processing by SimpleCart::CartsController#show as HTML
[1m[35mItem Load (0.2ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" IN (1, 2, 0)
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml within layouts/simple_cart/application (17.1ms)
Completed 500 Internal Server Error in 42ms (ActiveRecord: 0.4ms)
ActiveRecord::RecordNotFound (Couldn't find all Items with 'id': (1, 2, klass) (found 2 results, but was looking for 3)):
activerecord (4.2.5.2) lib/active_record/relation/finder_methods.rb:324:in `raise_record_not_found_exception!'
activerecord (4.2.5.2) lib/active_record/relation/finder_methods.rb:467:in `find_some'
activerecord (4.2.5.2) lib/active_record/relation/finder_methods.rb:426:in `find_with_ids'
activerecord (4.2.5.2) lib/active_record/relation/finder_methods.rb:71:in `find'
activerecord (4.2.5.2) lib/active_record/querying.rb:3:in `find'
activerecord (4.2.5.2) lib/active_record/core.rb:131:in `find'
/home/leksster/ror/Rubygarage/Amazon/simple_cart/app/models/cart.rb:22:in `items'
/home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml:7:in `block in __home_leksster_ror__ubygarage__mazon_simple_cart_app_views_simple_cart_carts_show_html_haml___4019778103359939435_70003806316520'
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/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml:6:in `__home_leksster_ror__ubygarage__mazon_simple_cart_app_views_simple_cart_carts_show_html_haml___4019778103359939435_70003806316520'
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 (6.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 (3.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.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 (21.1ms)
Started GET "/simple_cart/" for 127.0.0.1 at 2016-03-11 00:22:56 +0200
Processing by SimpleCart::CartsController#show as HTML
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml within layouts/simple_cart/application (14.1ms)
Completed 200 OK in 186ms (Views: 185.5ms | ActiveRecord: 0.0ms)
Started GET "/assets/simple_cart/application.self-2f12d59583468bdcee27c6046669f62a778d265fc91cf385e5d36e9189ac822e.css?body=1" for 127.0.0.1 at 2016-03-11 00:22:57 +0200
Started GET "/assets/simple_cart/application.self-8f06a73c35179188914ab50e057157639fce1401c1cdca640ac9cec33746fc5b.js?body=1" for 127.0.0.1 at 2016-03-11 00:22:57 +0200
Started GET "/items/2" for 127.0.0.1 at 2016-03-11 00:23:01 +0200
Processing by ItemsController#show as HTML
Parameters: {"id"=>"2"}
[1m[36mItem Load (0.2ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", 2]]
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/_buy.html.haml (9.7ms)
Rendered items/show.html.erb within layouts/application (13.1ms)
Completed 200 OK in 56ms (Views: 54.1ms | ActiveRecord: 0.2ms)
Started POST "/simple_cart/cart/2" for 127.0.0.1 at 2016-03-11 00:23:02 +0200
Processing by SimpleCart::CartsController#add as HTML
Parameters: {"utf8"=>"✓", "authenticity_token"=>"sdXXPObofUq6/Cf54gPhm0/RYmTKNRUVFRt35UchfkMahfQPtAj5rNzffvt/Fj/X5QlBv1TNPK00IZfVNpJHKw==", "qty"=>"1", "klass"=>"Item", "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-11 00:23:02 +0200
Processing by SimpleCart::CartsController#show as HTML
[1m[35mItem Load (0.1ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 2]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "2"]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "2"]]
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml within layouts/simple_cart/application (13.5ms)
Completed 200 OK in 27ms (Views: 26.1ms | ActiveRecord: 0.1ms)
Started GET "/simple_cart/cart" for 127.0.0.1 at 2016-03-11 00:25:36 +0200
Processing by SimpleCart::CartsController#show as HTML
[1m[36mItem Load (0.1ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", 2]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "2"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "2"]]
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml within layouts/simple_cart/application (19.0ms)
Completed 200 OK in 47ms (Views: 44.3ms | ActiveRecord: 0.6ms)
Started GET "/assets/simple_cart/application.self-2f12d59583468bdcee27c6046669f62a778d265fc91cf385e5d36e9189ac822e.css?body=1" for 127.0.0.1 at 2016-03-11 00:25:37 +0200
Started GET "/assets/simple_cart/application.self-8f06a73c35179188914ab50e057157639fce1401c1cdca640ac9cec33746fc5b.js?body=1" for 127.0.0.1 at 2016-03-11 00:25:37 +0200
Started GET "/items/2" for 127.0.0.1 at 2016-03-11 00:26:03 +0200
Processing by ItemsController#show as HTML
Parameters: {"id"=>"2"}
[1m[35mItem Load (0.1ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 2]]
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/_buy.html.haml (7.5ms)
Rendered items/show.html.erb within layouts/application (9.2ms)
Completed 200 OK in 35ms (Views: 33.7ms | ActiveRecord: 0.1ms)
Started POST "/simple_cart/cart/2" for 127.0.0.1 at 2016-03-11 00:26:04 +0200
Processing by SimpleCart::CartsController#add as HTML
Parameters: {"utf8"=>"✓", "authenticity_token"=>"q/QWtIeRm81n4GYqLqPJYG01Xctp7Th/X7+GbAD9JToApDWH1XEfKwHDPyizthcsx+1+EPcVEcd+hWZccU4cUg==", "qty"=>"1", "klass"=>"Item", "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-11 00:26:04 +0200
Processing by SimpleCart::CartsController#show as HTML
[1m[36mItem Load (0.2ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", 2]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "2"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "2"]]
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml within layouts/simple_cart/application (12.7ms)
Completed 200 OK in 32ms (Views: 31.7ms | ActiveRecord: 0.2ms)
Started GET "/simple_cart/cart" for 127.0.0.1 at 2016-03-11 00:26:55 +0200
Processing by SimpleCart::CartsController#show as HTML
[1m[35mItem Load (0.2ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 2]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "2"]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "2"]]
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml within layouts/simple_cart/application (20.4ms)
Completed 200 OK in 35ms (Views: 33.0ms | ActiveRecord: 0.7ms)
Started GET "/assets/simple_cart/application.self-2f12d59583468bdcee27c6046669f62a778d265fc91cf385e5d36e9189ac822e.css?body=1" for 127.0.0.1 at 2016-03-11 00:26:55 +0200
Started GET "/assets/simple_cart/application.self-8f06a73c35179188914ab50e057157639fce1401c1cdca640ac9cec33746fc5b.js?body=1" for 127.0.0.1 at 2016-03-11 00:26:55 +0200
Started GET "/simple_cart/cart" for 127.0.0.1 at 2016-03-11 00:27:32 +0200
Processing by SimpleCart::CartsController#show as HTML
[1m[36mItem Load (0.2ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", 2]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "2"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "2"]]
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml within layouts/simple_cart/application (14.7ms)
Completed 200 OK in 31ms (Views: 28.8ms | ActiveRecord: 0.7ms)
Started GET "/assets/simple_cart/application.self-2f12d59583468bdcee27c6046669f62a778d265fc91cf385e5d36e9189ac822e.css?body=1" for 127.0.0.1 at 2016-03-11 00:27:32 +0200
Started GET "/assets/simple_cart/application.self-8f06a73c35179188914ab50e057157639fce1401c1cdca640ac9cec33746fc5b.js?body=1" for 127.0.0.1 at 2016-03-11 00:27:32 +0200
Started GET "/simple_cart/cart" for 127.0.0.1 at 2016-03-11 00:27:46 +0200
Processing by SimpleCart::CartsController#show as HTML
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml within layouts/simple_cart/application (16.0ms)
Completed 500 Internal Server Error in 21ms (ActiveRecord: 0.0ms)
ActionView::Template::Error (undefined local variable or method `webconsole' for #<#:0x007f56123519b0>):
3: .col-md-12
4: .thumbnail
5: .caption-full
6: =webconsole
7: = form_tag url_for(:controller => 'carts', :action => 'update'), method: :put do
8: - if @cart.items.nil?
9: empty
/home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml:6:in `__home_leksster_ror__ubygarage__mazon_simple_cart_app_views_simple_cart_carts_show_html_haml___4019778103359939435_70003824426580'
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 (8.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.4ms)
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/template_error.html.erb within rescues/layout (22.6ms)
Started GET "/simple_cart/cart" for 127.0.0.1 at 2016-03-11 00:28:13 +0200
Processing by SimpleCart::CartsController#show as HTML
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml within layouts/simple_cart/application (18.0ms)
Completed 500 Internal Server Error in 21ms (ActiveRecord: 0.0ms)
ActionView::Template::Error (undefined local variable or method `console' for #<#:0x007f56106c0800>):
3: .col-md-12
4: .thumbnail
5: .caption-full
6: = console
7: = form_tag url_for(:controller => 'carts', :action => 'update'), method: :put do
8: - if @cart.items.nil?
9: empty
/home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml:6:in `__home_leksster_ror__ubygarage__mazon_simple_cart_app_views_simple_cart_carts_show_html_haml___4019778103359939435_70003809711100'
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 (12.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.5ms)
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/template_error.html.erb within rescues/layout (26.2ms)
Started GET "/simple_cart/cart" for 127.0.0.1 at 2016-03-11 00:29:24 +0200
Processing by SimpleCart::CartsController#show as HTML
[1m[35mItem Load (0.2ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 2]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "2"]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "2"]]
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml within layouts/simple_cart/application (22.2ms)
Completed 200 OK in 34ms (Views: 33.0ms | ActiveRecord: 0.8ms)
Started PUT "/simple_cart/cart" for 127.0.0.1 at 2016-03-11 00:29:30 +0200
Processing by SimpleCart::CartsController#update as HTML
Parameters: {"utf8"=>"✓", "authenticity_token"=>"yqey9d3AMf6PbMIXzOj8PFI67Xydru6NaNR8SuezLXlh95HGjyC1GOlPmxVR/SJw+OLOpwNWxzVJ7px6lgAUEQ==", "2"=>"2", "coupon"=>"", "commit"=>"Update"}
[1m[36mItem Load (0.1ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", 2]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "2"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "2"]]
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml within layouts/simple_cart/application (11.2ms)
Completed 200 OK in 24ms (Views: 23.6ms | ActiveRecord: 0.2ms)
Started PUT "/simple_cart/cart" for 127.0.0.1 at 2016-03-11 00:29:32 +0200
Processing by SimpleCart::CartsController#update as HTML
Parameters: {"utf8"=>"✓", "authenticity_token"=>"ZcUgRByzYRrUxtP7XQkhxDzm6oxk75w+5p/CReccmZ7OlQN3TlPl/LLlivnAHP+Ilj7JV/oXtYbHpSJ1lq+g9g==", "2"=>"5", "coupon"=>"", "commit"=>"Update"}
[1m[35mItem Load (0.1ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 2]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "2"]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "2"]]
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml within layouts/simple_cart/application (10.6ms)
Completed 200 OK in 23ms (Views: 21.7ms | ActiveRecord: 0.2ms)
Started GET "/simple_cart/cart" for 127.0.0.1 at 2016-03-11 00:33:11 +0200
Processing by SimpleCart::CartsController#show as HTML
[1m[36mItem Load (0.2ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", 2]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "2"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "2"]]
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml within layouts/simple_cart/application (14.2ms)
Completed 200 OK in 29ms (Views: 26.4ms | ActiveRecord: 0.8ms)
Started GET "/bicycles" for 127.0.0.1 at 2016-03-11 00:33:17 +0200
Processing by BicyclesController#index as HTML
[1m[35mBicycle Load (0.2ms)[0m SELECT "bicycles".* FROM "bicycles"
Rendered bicycles/index.html.erb within layouts/application (5.8ms)
Completed 200 OK in 20ms (Views: 18.4ms | ActiveRecord: 0.3ms)
Started GET "/bicycles/1" for 127.0.0.1 at 2016-03-11 00:33:19 +0200
Processing by BicyclesController#show as HTML
Parameters: {"id"=>"1"}
[1m[36mBicycle Load (0.3ms)[0m [1mSELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1[0m [["id", 1]]
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/_buy.html.haml (6.3ms)
Rendered bicycles/show.html.erb within layouts/application (8.6ms)
Completed 200 OK in 21ms (Views: 19.8ms | ActiveRecord: 0.3ms)
Started POST "/simple_cart/cart/1" for 127.0.0.1 at 2016-03-11 00:33:20 +0200
Processing by SimpleCart::CartsController#add as HTML
Parameters: {"utf8"=>"✓", "authenticity_token"=>"fZ6ZHLwbryQcLW3V7I49K+5wrA/L2KvY7t/+tRQJNKLWzrov7vsrwnoONNdxm+NnRKiP1FUggmDP5R6FZboNyg==", "qty"=>"1", "klass"=>"Bicycle", "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-11 00:33:20 +0200
Processing by SimpleCart::CartsController#show as HTML
[1m[35mBicycle Load (0.2ms)[0m SELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" IN (2, 1)
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml within layouts/simple_cart/application (2.8ms)
Completed 500 Internal Server Error in 6ms (ActiveRecord: 0.2ms)
ActiveRecord::RecordNotFound (Couldn't find all Bicycles with 'id': (2, 1) (found 1 results, but was looking for 2)):
activerecord (4.2.5.2) lib/active_record/relation/finder_methods.rb:324:in `raise_record_not_found_exception!'
activerecord (4.2.5.2) lib/active_record/relation/finder_methods.rb:467:in `find_some'
activerecord (4.2.5.2) lib/active_record/relation/finder_methods.rb:426:in `find_with_ids'
activerecord (4.2.5.2) lib/active_record/relation/finder_methods.rb:71:in `find'
activerecord (4.2.5.2) lib/active_record/querying.rb:3:in `find'
activerecord (4.2.5.2) lib/active_record/core.rb:131:in `find'
/home/leksster/ror/Rubygarage/Amazon/simple_cart/app/models/cart.rb:23:in `items'
/home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml:7:in `block in __home_leksster_ror__ubygarage__mazon_simple_cart_app_views_simple_cart_carts_show_html_haml___4019778103359939435_70003825720420'
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/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml:6:in `__home_leksster_ror__ubygarage__mazon_simple_cart_app_views_simple_cart_carts_show_html_haml___4019778103359939435_70003825720420'
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 (8.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 (3.2ms)
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.3ms)
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 (23.4ms)
Started POST "/simple_cart/cart/1" for 127.0.0.1 at 2016-03-11 00:33:33 +0200
Processing by SimpleCart::CartsController#add as HTML
Parameters: {"utf8"=>"✓", "authenticity_token"=>"fZ6ZHLwbryQcLW3V7I49K+5wrA/L2KvY7t/+tRQJNKLWzrov7vsrwnoONNdxm+NnRKiP1FUggmDP5R6FZboNyg==", "qty"=>"3", "klass"=>"Bicycle", "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-11 00:33:33 +0200
Processing by SimpleCart::CartsController#show as HTML
[1m[36mBicycle Load (0.4ms)[0m [1mSELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" IN (2, 1)[0m
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml within layouts/simple_cart/application (3.3ms)
Completed 500 Internal Server Error in 6ms (ActiveRecord: 0.4ms)
ActiveRecord::RecordNotFound (Couldn't find all Bicycles with 'id': (2, 1) (found 1 results, but was looking for 2)):
activerecord (4.2.5.2) lib/active_record/relation/finder_methods.rb:324:in `raise_record_not_found_exception!'
activerecord (4.2.5.2) lib/active_record/relation/finder_methods.rb:467:in `find_some'
activerecord (4.2.5.2) lib/active_record/relation/finder_methods.rb:426:in `find_with_ids'
activerecord (4.2.5.2) lib/active_record/relation/finder_methods.rb:71:in `find'
activerecord (4.2.5.2) lib/active_record/querying.rb:3:in `find'
activerecord (4.2.5.2) lib/active_record/core.rb:131:in `find'
/home/leksster/ror/Rubygarage/Amazon/simple_cart/app/models/cart.rb:23:in `items'
/home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml:7:in `block in __home_leksster_ror__ubygarage__mazon_simple_cart_app_views_simple_cart_carts_show_html_haml___4019778103359939435_70003825720420'
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/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml:6:in `__home_leksster_ror__ubygarage__mazon_simple_cart_app_views_simple_cart_carts_show_html_haml___4019778103359939435_70003825720420'
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 (11.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 (3.2ms)
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.4ms)
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.9ms)
Started POST "/simple_cart/cart/1" for 127.0.0.1 at 2016-03-11 00:33:58 +0200
Processing by SimpleCart::CartsController#add as HTML
Parameters: {"utf8"=>"✓", "authenticity_token"=>"fZ6ZHLwbryQcLW3V7I49K+5wrA/L2KvY7t/+tRQJNKLWzrov7vsrwnoONNdxm+NnRKiP1FUggmDP5R6FZboNyg==", "qty"=>"3", "klass"=>"Bicycle", "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-11 00:33:58 +0200
Processing by SimpleCart::CartsController#show as HTML
[1m[35mBicycle Load (0.1ms)[0m SELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1[0m [["id", "1"]]
[1m[35mItem Load (0.1ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 1]]
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml within layouts/simple_cart/application (10.0ms)
Completed 200 OK in 22ms (Views: 21.1ms | ActiveRecord: 0.2ms)
Started GET "/bicycles" for 127.0.0.1 at 2016-03-11 00:36:01 +0200
Processing by BicyclesController#index as HTML
[1m[36mBicycle Load (0.2ms)[0m [1mSELECT "bicycles".* FROM "bicycles"[0m
Rendered bicycles/index.html.erb within layouts/application (1.4ms)
Completed 200 OK in 13ms (Views: 12.3ms | ActiveRecord: 0.2ms)
Started GET "/bicycles/new" for 127.0.0.1 at 2016-03-11 00:36:03 +0200
Processing by BicyclesController#new as HTML
Rendered bicycles/_form.html.erb (6.7ms)
Rendered bicycles/new.html.erb within layouts/application (8.7ms)
Completed 200 OK in 21ms (Views: 21.0ms | ActiveRecord: 0.0ms)
Started POST "/bicycles" for 127.0.0.1 at 2016-03-11 00:36:07 +0200
Processing by BicyclesController#create as HTML
Parameters: {"utf8"=>"✓", "authenticity_token"=>"TE+CnqSPIrBooBilEwAQbJa55gmu3nNCxMH9kBMck1odUYCaThDfN0XQ0Eb7tH4T3Fx5j9PNqIV+9/4TNXkJZg==", "bicycle"=>{"name"=>"11", "price"=>"111", "qty"=>"2"}, "commit"=>"Create Bicycle"}
[1m[35m (0.1ms)[0m begin transaction
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO "bicycles" ("name", "price", "qty", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["name", "11"], ["price", 111.0], ["qty", 2], ["created_at", "2016-03-10 22:36:07.070844"], ["updated_at", "2016-03-10 22:36:07.070844"]]
[1m[35m (77.9ms)[0m commit transaction
Redirected to http://localhost:3000/bicycles/2
Completed 302 Found in 83ms (ActiveRecord: 78.9ms)
Started GET "/bicycles/2" for 127.0.0.1 at 2016-03-11 00:36:07 +0200
Processing by BicyclesController#show as HTML
Parameters: {"id"=>"2"}
[1m[36mBicycle Load (0.2ms)[0m [1mSELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1[0m [["id", 2]]
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/_buy.html.haml (7.3ms)
Rendered bicycles/show.html.erb within layouts/application (9.4ms)
Completed 200 OK in 27ms (Views: 25.6ms | ActiveRecord: 0.2ms)
Started POST "/simple_cart/cart/2" for 127.0.0.1 at 2016-03-11 00:36:08 +0200
Processing by SimpleCart::CartsController#add as HTML
Parameters: {"utf8"=>"✓", "authenticity_token"=>"FxmpFWDh5rDCWQOR6UHjxXM87fxaRejmT5q/jjQpIQxGB6sRin4bN+8py3IB9Y26OdlyeidWMyH1rLwNEky7MA==", "qty"=>"1", "klass"=>"Bicycle", "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-11 00:36:08 +0200
Processing by SimpleCart::CartsController#show as HTML
[1m[35mBicycle Load (0.2ms)[0m SELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" IN (1, 2)
[1m[36mCACHE (0.0ms)[0m [1mSELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" IN (1, 2)[0m
[1m[35mItem Load (0.1ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mItem Load (0.1ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", 2]]
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml within layouts/simple_cart/application (15.3ms)
Completed 200 OK in 27ms (Views: 26.2ms | ActiveRecord: 0.4ms)
Started GET "/simple_cart/cart" for 127.0.0.1 at 2016-03-11 00:38:12 +0200
SyntaxError (/home/leksster/ror/Rubygarage/Amazon/simple_cart/app/controllers/simple_cart/carts_controller.rb:23: syntax error, unexpected tIDENTIFIER, expecting tSTRING_DEND
...d_item("#{params[:klass]_params[:item_id]}".to_s, params[:qt...
... ^):
/home/leksster/ror/Rubygarage/Amazon/simple_cart/app/controllers/simple_cart/carts_controller.rb:23: syntax error, unexpected tIDENTIFIER, expecting tSTRING_DEND
...d_item("#{params[:klass]_params[:item_id]}".to_s, params[:qt...
... ^
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'
activesupport (4.2.5.2) lib/active_support/inflector/methods.rb:263:in `const_get'
activesupport (4.2.5.2) lib/active_support/inflector/methods.rb:263:in `block in constantize'
activesupport (4.2.5.2) lib/active_support/inflector/methods.rb:259:in `each'
activesupport (4.2.5.2) lib/active_support/inflector/methods.rb:259:in `inject'
activesupport (4.2.5.2) lib/active_support/inflector/methods.rb:259:in `constantize'
activesupport (4.2.5.2) lib/active_support/dependencies.rb:566:in `get'
activesupport (4.2.5.2) lib/active_support/dependencies.rb:597:in `constantize'
actionpack (4.2.5.2) lib/action_dispatch/routing/route_set.rb:70:in `controller_reference'
actionpack (4.2.5.2) lib/action_dispatch/routing/route_set.rb:60:in `controller'
actionpack (4.2.5.2) lib/action_dispatch/routing/route_set.rb:39: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 (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 (3.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 (1.3ms)
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.9ms)
Started GET "/simple_cart/cart" for 127.0.0.1 at 2016-03-11 00:38:48 +0200
SyntaxError (/home/leksster/ror/Rubygarage/Amazon/simple_cart/app/controllers/simple_cart/carts_controller.rb:23: syntax error, unexpected tIDENTIFIER, expecting ')'
...t.add_item("#{params[:klass]}"_"#{params[:item_id]}".to_s, p...
... ^
/home/leksster/ror/Rubygarage/Amazon/simple_cart/app/controllers/simple_cart/carts_controller.rb:23: syntax error, unexpected ')', expecting keyword_end):
/home/leksster/ror/Rubygarage/Amazon/simple_cart/app/controllers/simple_cart/carts_controller.rb:23: syntax error, unexpected tIDENTIFIER, expecting ')'
...t.add_item("#{params[:klass]}"_"#{params[:item_id]}".to_s, p...
... ^
/home/leksster/ror/Rubygarage/Amazon/simple_cart/app/controllers/simple_cart/carts_controller.rb:23: 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'
activesupport (4.2.5.2) lib/active_support/inflector/methods.rb:263:in `const_get'
activesupport (4.2.5.2) lib/active_support/inflector/methods.rb:263:in `block in constantize'
activesupport (4.2.5.2) lib/active_support/inflector/methods.rb:259:in `each'
activesupport (4.2.5.2) lib/active_support/inflector/methods.rb:259:in `inject'
activesupport (4.2.5.2) lib/active_support/inflector/methods.rb:259:in `constantize'
activesupport (4.2.5.2) lib/active_support/dependencies.rb:566:in `get'
activesupport (4.2.5.2) lib/active_support/dependencies.rb:597:in `constantize'
actionpack (4.2.5.2) lib/action_dispatch/routing/route_set.rb:70:in `controller_reference'
actionpack (4.2.5.2) lib/action_dispatch/routing/route_set.rb:60:in `controller'
actionpack (4.2.5.2) lib/action_dispatch/routing/route_set.rb:39: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 (4.4ms)
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 (1.2ms)
Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/rescues/diagnostics.html.erb within rescues/layout (18.0ms)
Started GET "/simple_cart/cart" for 127.0.0.1 at 2016-03-11 00:39:11 +0200
Processing by SimpleCart::CartsController#show as HTML
[1m[35mBicycle Load (0.2ms)[0m SELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" IN (1, 2)
[1m[36mCACHE (0.0ms)[0m [1mSELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" IN (1, 2)[0m
[1m[35mItem Load (0.2ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mItem Load (0.1ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", 2]]
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml within layouts/simple_cart/application (26.8ms)
Completed 200 OK in 42ms (Views: 39.3ms | ActiveRecord: 1.1ms)
Started GET "/assets/simple_cart/application.self-2f12d59583468bdcee27c6046669f62a778d265fc91cf385e5d36e9189ac822e.css?body=1" for 127.0.0.1 at 2016-03-11 00:39:12 +0200
Started GET "/assets/simple_cart/application.self-8f06a73c35179188914ab50e057157639fce1401c1cdca640ac9cec33746fc5b.js?body=1" for 127.0.0.1 at 2016-03-11 00:39:12 +0200
Started GET "/bicycles" for 127.0.0.1 at 2016-03-11 00:39:24 +0200
Processing by BicyclesController#index as HTML
[1m[35mBicycle Load (0.2ms)[0m SELECT "bicycles".* FROM "bicycles"
Rendered bicycles/index.html.erb within layouts/application (2.8ms)
Completed 200 OK in 20ms (Views: 19.6ms | ActiveRecord: 0.2ms)
Started GET "/bicycles/1" for 127.0.0.1 at 2016-03-11 00:39:25 +0200
Processing by BicyclesController#show as HTML
Parameters: {"id"=>"1"}
[1m[36mBicycle Load (0.1ms)[0m [1mSELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1[0m [["id", 1]]
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/_buy.html.haml (4.4ms)
Rendered bicycles/show.html.erb within layouts/application (5.6ms)
Completed 200 OK in 21ms (Views: 19.7ms | ActiveRecord: 0.1ms)
Started POST "/simple_cart/cart/1" for 127.0.0.1 at 2016-03-11 00:39:26 +0200
Processing by SimpleCart::CartsController#add as HTML
Parameters: {"utf8"=>"✓", "authenticity_token"=>"nxxTy4vEFzqXj6gxkEIREpoPgO7xlSaucQLDllDHIsfOAlHPYVvqvbr/YNJ49n9t0OofaIyG/WnLNMAVdqK4+w==", "qty"=>"1", "klass"=>"Bicycle", "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-11 00:39:26 +0200
Processing by SimpleCart::CartsController#show as HTML
[1m[35mBicycle Load (0.3ms)[0m SELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" IN (1, 2, 0)
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml within layouts/simple_cart/application (3.7ms)
Completed 500 Internal Server Error in 7ms (ActiveRecord: 0.3ms)
ActiveRecord::RecordNotFound (Couldn't find all Bicycles with 'id': (1, 2, Bicycle_1) (found 2 results, but was looking for 3)):
activerecord (4.2.5.2) lib/active_record/relation/finder_methods.rb:324:in `raise_record_not_found_exception!'
activerecord (4.2.5.2) lib/active_record/relation/finder_methods.rb:467:in `find_some'
activerecord (4.2.5.2) lib/active_record/relation/finder_methods.rb:426:in `find_with_ids'
activerecord (4.2.5.2) lib/active_record/relation/finder_methods.rb:71:in `find'
activerecord (4.2.5.2) lib/active_record/querying.rb:3:in `find'
activerecord (4.2.5.2) lib/active_record/core.rb:131:in `find'
/home/leksster/ror/Rubygarage/Amazon/simple_cart/app/models/cart.rb:22:in `items'
/home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml:8:in `block in __home_leksster_ror__ubygarage__mazon_simple_cart_app_views_simple_cart_carts_show_html_haml___4019778103359939435_70003706434440'
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/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml:7:in `__home_leksster_ror__ubygarage__mazon_simple_cart_app_views_simple_cart_carts_show_html_haml___4019778103359939435_70003706434440'
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.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 (3.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 (22.3ms)
Started GET "/simple_cart/cart" for 127.0.0.1 at 2016-03-11 00:39:35 +0200
Processing by SimpleCart::CartsController#show as HTML
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml within layouts/simple_cart/application (3.2ms)
Completed 200 OK in 22ms (Views: 21.7ms | ActiveRecord: 0.0ms)
Started GET "/items" for 127.0.0.1 at 2016-03-11 00:39:40 +0200
Processing by ItemsController#index as HTML
[1m[36mItem Load (0.2ms)[0m [1mSELECT "items".* FROM "items"[0m
Rendered items/index.html.erb within layouts/application (4.6ms)
Completed 200 OK in 20ms (Views: 19.4ms | ActiveRecord: 0.2ms)
Started GET "/items/1" for 127.0.0.1 at 2016-03-11 00:39:42 +0200
Processing by ItemsController#show as HTML
Parameters: {"id"=>"1"}
[1m[35mItem Load (0.2ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 1]]
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/_buy.html.haml (5.3ms)
Rendered items/show.html.erb within layouts/application (6.7ms)
Completed 200 OK in 20ms (Views: 18.9ms | ActiveRecord: 0.2ms)
Started POST "/simple_cart/cart/1" for 127.0.0.1 at 2016-03-11 00:39:44 +0200
Processing by SimpleCart::CartsController#add as HTML
Parameters: {"utf8"=>"✓", "authenticity_token"=>"m03K7jXcLBAe06AfaK+Sa9xTUmmwKNQG+Q1Ohau+xXxdXffirgog5heuCXR76usfn6UQLDwIBRjzg7Xkxqlr7Q==", "qty"=>"1", "klass"=>"Item", "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-11 00:39:44 +0200
Processing by SimpleCart::CartsController#show as HTML
[1m[36mItem Load (0.1ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", 0]]
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml within layouts/simple_cart/application (2.5ms)
Completed 500 Internal Server Error in 6ms (ActiveRecord: 0.1ms)
ActiveRecord::RecordNotFound (Couldn't find Item with 'id'=Item_1):
activerecord (4.2.5.2) lib/active_record/relation/finder_methods.rb:324:in `raise_record_not_found_exception!'
activerecord (4.2.5.2) lib/active_record/relation/finder_methods.rb:444:in `find_one'
activerecord (4.2.5.2) lib/active_record/relation/finder_methods.rb:423:in `find_with_ids'
activerecord (4.2.5.2) lib/active_record/relation/finder_methods.rb:71:in `find'
activerecord (4.2.5.2) lib/active_record/querying.rb:3:in `find'
activerecord (4.2.5.2) lib/active_record/core.rb:131:in `find'
/home/leksster/ror/Rubygarage/Amazon/simple_cart/app/models/cart.rb:22:in `items'
/home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml:8:in `block in __home_leksster_ror__ubygarage__mazon_simple_cart_app_views_simple_cart_carts_show_html_haml___4019778103359939435_70003706434440'
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/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml:7:in `__home_leksster_ror__ubygarage__mazon_simple_cart_app_views_simple_cart_carts_show_html_haml___4019778103359939435_70003706434440'
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.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.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 (0.7ms)
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 (21.2ms)
Started GET "/simple_cart/cart" for 127.0.0.1 at 2016-03-11 00:40:23 +0200
Processing by SimpleCart::CartsController#show as HTML
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml within layouts/simple_cart/application (0.8ms)
Completed 200 OK in 16ms (Views: 14.3ms | ActiveRecord: 0.0ms)
Started GET "/bicycles" for 127.0.0.1 at 2016-03-11 00:40:30 +0200
Processing by BicyclesController#index as HTML
[1m[35mBicycle Load (0.3ms)[0m SELECT "bicycles".* FROM "bicycles"
Rendered bicycles/index.html.erb within layouts/application (6.0ms)
Completed 200 OK in 21ms (Views: 19.1ms | ActiveRecord: 0.5ms)
Started GET "/bicycles/1" for 127.0.0.1 at 2016-03-11 00:40:31 +0200
Processing by BicyclesController#show as HTML
Parameters: {"id"=>"1"}
[1m[36mBicycle Load (0.2ms)[0m [1mSELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1[0m [["id", 1]]
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/_buy.html.haml (7.0ms)
Rendered bicycles/show.html.erb within layouts/application (8.7ms)
Completed 200 OK in 22ms (Views: 20.6ms | ActiveRecord: 0.2ms)
Started POST "/simple_cart/cart/1" for 127.0.0.1 at 2016-03-11 00:40:32 +0200
Processing by SimpleCart::CartsController#add as HTML
Parameters: {"utf8"=>"✓", "authenticity_token"=>"kSqjj1o4dR3POGSxD3fgj6lpx0HUpGj/IMQEhyXPa3hXOp6Dwe5568ZFzdocMpn76p+FBFiEueEqSv/mSNjF6Q==", "qty"=>"1", "klass"=>"Bicycle", "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-11 00:40:32 +0200
Processing by SimpleCart::CartsController#show as HTML
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml within layouts/simple_cart/application (1.1ms)
Completed 200 OK in 14ms (Views: 13.5ms | ActiveRecord: 0.0ms)
Started GET "/bicycles/2" for 127.0.0.1 at 2016-03-11 00:40:44 +0200
Processing by BicyclesController#show as HTML
Parameters: {"id"=>"2"}
[1m[35mBicycle Load (0.1ms)[0m SELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1 [["id", 2]]
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/_buy.html.haml (6.7ms)
Rendered bicycles/show.html.erb within layouts/application (8.4ms)
Completed 200 OK in 21ms (Views: 20.1ms | ActiveRecord: 0.1ms)
Started POST "/simple_cart/cart/2" for 127.0.0.1 at 2016-03-11 00:40:46 +0200
Processing by SimpleCart::CartsController#add as HTML
Parameters: {"utf8"=>"✓", "authenticity_token"=>"+Q4vuFg4maZ8KpSE9uP5aSraPOrti+qFsinskAOWVlA/HhK0w+6VUHVXPe/lpoAdaSx+r2GrO5u4pxfxboH4wQ==", "qty"=>"4", "klass"=>"Bicycle", "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-11 00:40:46 +0200
Processing by SimpleCart::CartsController#show as HTML
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml within layouts/simple_cart/application (0.9ms)
Completed 200 OK in 13ms (Views: 13.0ms | ActiveRecord: 0.0ms)
Started GET "/simple_cart/cart" for 127.0.0.1 at 2016-03-11 00:42:11 +0200
Processing by SimpleCart::CartsController#show as HTML
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml within layouts/simple_cart/application (2.4ms)
Completed 500 Internal Server Error in 8ms (ActiveRecord: 0.0ms)
ActionView::Template::Error (undefined method `name' for ["Item_1", 1]:Array):
27: %td
28: / = image_tag(book.cover.url)
29: %td
30: = item.name
31: %td
32: = number_to_currency(item.price)
33: %td
/home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml:30:in `block (2 levels) in __home_leksster_ror__ubygarage__mazon_simple_cart_app_views_simple_cart_carts_show_html_haml___4019778103359939435_70003706434440'
/home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml:25:in `each'
/home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml:25:in `each_with_index'
/home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml:25:in `block in __home_leksster_ror__ubygarage__mazon_simple_cart_app_views_simple_cart_carts_show_html_haml___4019778103359939435_70003706434440'
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/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml:7:in `__home_leksster_ror__ubygarage__mazon_simple_cart_app_views_simple_cart_carts_show_html_haml___4019778103359939435_70003706434440'
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 (8.5ms)
Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (10.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 (30.3ms)
Started GET "/simple_cart/cart" for 127.0.0.1 at 2016-03-11 00:42:28 +0200
Processing by SimpleCart::CartsController#show as HTML
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml within layouts/simple_cart/application (3.3ms)
Completed 500 Internal Server Error in 10ms (ActiveRecord: 0.0ms)
ActionView::Template::Error (undefined method `name' for ["Item_1", 1]:Array):
27: %td
28: / = image_tag(book.cover.url)
29: %td
30: = item.name
31: %td
32: = number_to_currency(item.price)
33: %td
/home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml:30:in `block (2 levels) in __home_leksster_ror__ubygarage__mazon_simple_cart_app_views_simple_cart_carts_show_html_haml___4019778103359939435_70003706434440'
/home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml:25:in `each'
/home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml:25:in `each_with_index'
/home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml:25:in `block in __home_leksster_ror__ubygarage__mazon_simple_cart_app_views_simple_cart_carts_show_html_haml___4019778103359939435_70003706434440'
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/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml:7:in `__home_leksster_ror__ubygarage__mazon_simple_cart_app_views_simple_cart_carts_show_html_haml___4019778103359939435_70003706434440'
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 (11.7ms)
Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (3.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 (1.1ms)
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 (28.0ms)
Started GET "/simple_cart/cart" for 127.0.0.1 at 2016-03-11 00:42:30 +0200
Processing by SimpleCart::CartsController#show as HTML
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml within layouts/simple_cart/application (2.5ms)
Completed 500 Internal Server Error in 6ms (ActiveRecord: 0.0ms)
ActionView::Template::Error (undefined method `name' for ["Item_1", 1]:Array):
27: %td
28: / = image_tag(book.cover.url)
29: %td
30: = item.name
31: %td
32: = number_to_currency(item.price)
33: %td
/home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml:30:in `block (2 levels) in __home_leksster_ror__ubygarage__mazon_simple_cart_app_views_simple_cart_carts_show_html_haml___4019778103359939435_70003706434440'
/home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml:25:in `each'
/home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml:25:in `each_with_index'
/home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml:25:in `block in __home_leksster_ror__ubygarage__mazon_simple_cart_app_views_simple_cart_carts_show_html_haml___4019778103359939435_70003706434440'
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/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml:7:in `__home_leksster_ror__ubygarage__mazon_simple_cart_app_views_simple_cart_carts_show_html_haml___4019778103359939435_70003706434440'
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 (8.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 (3.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/template_error.html.erb within rescues/layout (21.7ms)
Started GET "/simple_cart/cart" for 127.0.0.1 at 2016-03-11 00:42:35 +0200
Processing by SimpleCart::CartsController#show as HTML
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml within layouts/simple_cart/application (0.9ms)
Completed 200 OK in 17ms (Views: 15.8ms | ActiveRecord: 0.0ms)
Started GET "/simple_cart/cart" for 127.0.0.1 at 2016-03-11 00:43:15 +0200
Processing by SimpleCart::CartsController#show as HTML
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml within layouts/simple_cart/application (1.4ms)
Completed 500 Internal Server Error in 6ms (ActiveRecord: 0.0ms)
ActionView::Template::Error (undefined method `<' for []:Array):
5: .thumbnail
6: .caption-full
7: = form_tag url_for(:controller => 'carts', :action => 'update'), method: :put do
8: - if @cart.items.nil?
9: empty
10: - else
11: %table.table.table-hover
/home/leksster/ror/Rubygarage/Amazon/simple_cart/app/models/cart.rb:24:in `block in items'
/home/leksster/ror/Rubygarage/Amazon/simple_cart/app/models/cart.rb:23:in `each'
/home/leksster/ror/Rubygarage/Amazon/simple_cart/app/models/cart.rb:23:in `items'
/home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml:8:in `block in __home_leksster_ror__ubygarage__mazon_simple_cart_app_views_simple_cart_carts_show_html_haml___4019778103359939435_70003706434440'
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/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml:7:in `__home_leksster_ror__ubygarage__mazon_simple_cart_app_views_simple_cart_carts_show_html_haml___4019778103359939435_70003706434440'
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.7ms)
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 (1.0ms)
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 (21.0ms)
Started GET "/simple_cart/cart" for 127.0.0.1 at 2016-03-11 00:43:22 +0200
Processing by SimpleCart::CartsController#show as HTML
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml within layouts/simple_cart/application (2.2ms)
Completed 500 Internal Server Error in 7ms (ActiveRecord: 0.0ms)
ActionView::Template::Error (undefined method `name' for "Item_1":String):
27: %td
28: / = image_tag(book.cover.url)
29: %td
30: = item.name
31: %td
32: = number_to_currency(item.price)
33: %td
/home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml:30:in `block (2 levels) in __home_leksster_ror__ubygarage__mazon_simple_cart_app_views_simple_cart_carts_show_html_haml___4019778103359939435_70003706434440'
/home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml:25:in `each'
/home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml:25:in `each_with_index'
/home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml:25:in `block in __home_leksster_ror__ubygarage__mazon_simple_cart_app_views_simple_cart_carts_show_html_haml___4019778103359939435_70003706434440'
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/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml:7:in `__home_leksster_ror__ubygarage__mazon_simple_cart_app_views_simple_cart_carts_show_html_haml___4019778103359939435_70003706434440'
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.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 (1.0ms)
Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/rescues/template_error.html.erb within rescues/layout (20.9ms)
Started GET "/simple_cart/cart" for 127.0.0.1 at 2016-03-11 00:44:27 +0200
Processing by SimpleCart::CartsController#show as HTML
[1m[36mItem Load (0.1ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", 0]]
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml within layouts/simple_cart/application (12.3ms)
Completed 500 Internal Server Error in 16ms (ActiveRecord: 0.5ms)
ActiveRecord::RecordNotFound (Couldn't find Item with 'id'=Item_1):
activerecord (4.2.5.2) lib/active_record/core.rb:155:in `find'
/home/leksster/ror/Rubygarage/Amazon/simple_cart/app/models/cart.rb:13:in `block in subtotal'
/home/leksster/ror/Rubygarage/Amazon/simple_cart/app/models/cart.rb:12:in `each'
/home/leksster/ror/Rubygarage/Amazon/simple_cart/app/models/cart.rb:12:in `subtotal'
/home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml:46:in `block in __home_leksster_ror__ubygarage__mazon_simple_cart_app_views_simple_cart_carts_show_html_haml___4019778103359939435_70003825434040'
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/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml:7:in `__home_leksster_ror__ubygarage__mazon_simple_cart_app_views_simple_cart_carts_show_html_haml___4019778103359939435_70003825434040'
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 (8.3ms)
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.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 (21.5ms)
Started GET "/simple_cart/cart" for 127.0.0.1 at 2016-03-11 00:44:49 +0200
Processing by SimpleCart::CartsController#show as HTML
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml within layouts/simple_cart/application (11.6ms)
Completed 200 OK in 25ms (Views: 24.7ms | ActiveRecord: 0.0ms)
Started GET "/assets/simple_cart/application.self-2f12d59583468bdcee27c6046669f62a778d265fc91cf385e5d36e9189ac822e.css?body=1" for 127.0.0.1 at 2016-03-11 00:44:49 +0200
Started GET "/assets/simple_cart/application.self-8f06a73c35179188914ab50e057157639fce1401c1cdca640ac9cec33746fc5b.js?body=1" for 127.0.0.1 at 2016-03-11 00:44:49 +0200
Started GET "/simple_cart/cart" for 127.0.0.1 at 2016-03-11 00:44:57 +0200
Processing by SimpleCart::CartsController#show as HTML
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml within layouts/simple_cart/application (4.7ms)
Completed 200 OK in 18ms (Views: 17.1ms | ActiveRecord: 0.0ms)
Started GET "/assets/simple_cart/application.self-2f12d59583468bdcee27c6046669f62a778d265fc91cf385e5d36e9189ac822e.css?body=1" for 127.0.0.1 at 2016-03-11 00:44:58 +0200
Started GET "/assets/simple_cart/application.self-8f06a73c35179188914ab50e057157639fce1401c1cdca640ac9cec33746fc5b.js?body=1" for 127.0.0.1 at 2016-03-11 00:44:58 +0200
Started GET "/simple_cart/cart" for 127.0.0.1 at 2016-03-11 00:48:49 +0200
Processing by SimpleCart::CartsController#show as HTML
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml within layouts/simple_cart/application (5.2ms)
Completed 200 OK in 20ms (Views: 18.2ms | ActiveRecord: 0.0ms)
Started GET "/assets/simple_cart/application.self-8f06a73c35179188914ab50e057157639fce1401c1cdca640ac9cec33746fc5b.js?body=1" for 127.0.0.1 at 2016-03-11 00:48:49 +0200
Started GET "/assets/simple_cart/application.self-2f12d59583468bdcee27c6046669f62a778d265fc91cf385e5d36e9189ac822e.css?body=1" for 127.0.0.1 at 2016-03-11 00:48:49 +0200
Started GET "/simple_cart/cart" for 127.0.0.1 at 2016-03-11 00:49:13 +0200
Processing by SimpleCart::CartsController#show as HTML
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml within layouts/simple_cart/application (12.4ms)
Completed 200 OK in 25ms (Views: 24.1ms | ActiveRecord: 0.0ms)
Started GET "/assets/simple_cart/application.self-2f12d59583468bdcee27c6046669f62a778d265fc91cf385e5d36e9189ac822e.css?body=1" for 127.0.0.1 at 2016-03-11 00:49:13 +0200
Started GET "/assets/simple_cart/application.self-8f06a73c35179188914ab50e057157639fce1401c1cdca640ac9cec33746fc5b.js?body=1" for 127.0.0.1 at 2016-03-11 00:49:13 +0200
Started GET "/simple_cart/cart" for 127.0.0.1 at 2016-03-11 00:50:24 +0200
Processing by SimpleCart::CartsController#show as HTML
[1m[35mItem Load (0.2ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mBicycle Load (0.2ms)[0m [1mSELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mBicycle Load (0.1ms)[0m SELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1 [["id", 2]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "1"]]
[1m[35mCACHE (0.0ms)[0m SELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1 [["id", "1"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1[0m [["id", "2"]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "1"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1[0m [["id", "1"]]
[1m[35mCACHE (0.0ms)[0m SELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1 [["id", "2"]]
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml within layouts/simple_cart/application (15.8ms)
Completed 200 OK in 32ms (Views: 29.3ms | ActiveRecord: 1.2ms)
Started GET "/assets/simple_cart/application.self-8f06a73c35179188914ab50e057157639fce1401c1cdca640ac9cec33746fc5b.js?body=1" for 127.0.0.1 at 2016-03-11 00:50:24 +0200
Started GET "/assets/simple_cart/application.self-2f12d59583468bdcee27c6046669f62a778d265fc91cf385e5d36e9189ac822e.css?body=1" for 127.0.0.1 at 2016-03-11 00:50:24 +0200
Started GET "/simple_cart/cart" for 127.0.0.1 at 2016-03-11 00:50:49 +0200
Processing by SimpleCart::CartsController#show as HTML
[1m[36mItem Load (0.2ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mBicycle Load (0.1ms)[0m SELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mBicycle Load (0.1ms)[0m [1mSELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1[0m [["id", 2]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "1"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1[0m [["id", "1"]]
[1m[35mCACHE (0.0ms)[0m SELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1 [["id", "2"]]
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml within layouts/simple_cart/application (22.4ms)
Completed 500 Internal Server Error in 26ms (ActiveRecord: 0.3ms)
ActionView::Template::Error (undefined local variable or method `book' for #<#:0x007f56126bc5a0>):
25: - @cart.items.each_with_index do |item, index|
26: %tr
27: %td
28: = image_tag(book.cover.url)
29: %td
30: = item.name
31: %td
/home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml:28:in `block (2 levels) in __home_leksster_ror__ubygarage__mazon_simple_cart_app_views_simple_cart_carts_show_html_haml___4019778103359939435_70003826471940'
/home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml:25:in `each'
/home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml:25:in `each_with_index'
/home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml:25:in `block in __home_leksster_ror__ubygarage__mazon_simple_cart_app_views_simple_cart_carts_show_html_haml___4019778103359939435_70003826471940'
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/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml:7:in `__home_leksster_ror__ubygarage__mazon_simple_cart_app_views_simple_cart_carts_show_html_haml___4019778103359939435_70003826471940'
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.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 (3.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 (1.0ms)
Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/rescues/template_error.html.erb within rescues/layout (22.0ms)
Started GET "/simple_cart/cart" for 127.0.0.1 at 2016-03-11 00:50:57 +0200
Processing by SimpleCart::CartsController#show as HTML
[1m[36mItem Load (0.1ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mBicycle Load (0.3ms)[0m SELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mBicycle Load (0.2ms)[0m [1mSELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1[0m [["id", 2]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "1"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1[0m [["id", "1"]]
[1m[35mCACHE (0.0ms)[0m SELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1 [["id", "2"]]
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml within layouts/simple_cart/application (13.2ms)
Completed 500 Internal Server Error in 16ms (ActiveRecord: 0.7ms)
ActionView::Template::Error (nil can't be coerced into BigDecimal):
33: %td
34: = number_field_tag item.id, "#{@cart.session[item.id.to_s]}", class: 'form-control', min: '1', max: '99', :id => item.id.to_s
35: %td
36: = number_to_currency(item.price * @cart.session[item.id.to_s])
37: %td
38: = link_to 'X', simple_cart.remove_cart_path(:id => item.id)
39: %tr
/home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml:36:in `*'
/home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml:36:in `block (2 levels) in __home_leksster_ror__ubygarage__mazon_simple_cart_app_views_simple_cart_carts_show_html_haml___4019778103359939435_70003840604620'
/home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml:25:in `each'
/home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml:25:in `each_with_index'
/home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml:25:in `block in __home_leksster_ror__ubygarage__mazon_simple_cart_app_views_simple_cart_carts_show_html_haml___4019778103359939435_70003840604620'
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/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml:7:in `__home_leksster_ror__ubygarage__mazon_simple_cart_app_views_simple_cart_carts_show_html_haml___4019778103359939435_70003840604620'
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 (3.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 (1.1ms)
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 (24.6ms)
Started GET "/simple_cart/cart" for 127.0.0.1 at 2016-03-11 00:51:23 +0200
Processing by SimpleCart::CartsController#show as HTML
[1m[36mItem Load (0.1ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mBicycle Load (0.1ms)[0m SELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mBicycle Load (0.1ms)[0m [1mSELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1[0m [["id", 2]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "1"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1[0m [["id", "1"]]
[1m[35mCACHE (0.0ms)[0m SELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1 [["id", "2"]]
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml within layouts/simple_cart/application (29.5ms)
Completed 200 OK in 44ms (Views: 43.3ms | ActiveRecord: 0.4ms)
Started GET "/assets/simple_cart/application.self-2f12d59583468bdcee27c6046669f62a778d265fc91cf385e5d36e9189ac822e.css?body=1" for 127.0.0.1 at 2016-03-11 00:51:23 +0200
Started GET "/assets/simple_cart/application.self-8f06a73c35179188914ab50e057157639fce1401c1cdca640ac9cec33746fc5b.js?body=1" for 127.0.0.1 at 2016-03-11 00:51:23 +0200
Started PUT "/simple_cart/cart" for 127.0.0.1 at 2016-03-11 00:51:30 +0200
Processing by SimpleCart::CartsController#update as HTML
Parameters: {"utf8"=>"✓", "authenticity_token"=>"FUZXQic4sfA/Lv6eVspixWHzA8i9Ox2He8eVdNSnTI7TVmpOvO69BjZTV/VFjxuxIgVBjTEbzJlxSW4VubDiHw==", "1"=>"", "2"=>"", "coupon"=>"", "commit"=>"Update"}
[1m[36mItem Load (0.1ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mBicycle Load (0.1ms)[0m SELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mBicycle Load (0.2ms)[0m [1mSELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1[0m [["id", 2]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "1"]]
[1m[36mCACHE (0.1ms)[0m [1mSELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1[0m [["id", "1"]]
[1m[35mCACHE (0.0ms)[0m SELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1 [["id", "2"]]
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml within layouts/simple_cart/application (20.0ms)
Completed 200 OK in 32ms (Views: 31.1ms | ActiveRecord: 0.5ms)
Started PUT "/simple_cart/cart" for 127.0.0.1 at 2016-03-11 00:52:10 +0200
Processing by SimpleCart::CartsController#update as HTML
Parameters: {"utf8"=>"✓", "authenticity_token"=>"FUZXQic4sfA/Lv6eVspixWHzA8i9Ox2He8eVdNSnTI7TVmpOvO69BjZTV/VFjxuxIgVBjTEbzJlxSW4VubDiHw==", "1"=>"", "2"=>"", "coupon"=>"", "commit"=>"Update"}
[1m[36mItem Load (0.2ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mBicycle Load (0.2ms)[0m SELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mBicycle Load (0.1ms)[0m [1mSELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1[0m [["id", 2]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "1"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1[0m [["id", "1"]]
[1m[35mCACHE (0.0ms)[0m SELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1 [["id", "2"]]
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml within layouts/simple_cart/application (30.4ms)
Completed 200 OK in 47ms (Views: 45.7ms | ActiveRecord: 0.5ms)
Started GET "/assets/simple_cart/application.self-8f06a73c35179188914ab50e057157639fce1401c1cdca640ac9cec33746fc5b.js?body=1" for 127.0.0.1 at 2016-03-11 00:52:10 +0200
Started GET "/assets/simple_cart/application.self-2f12d59583468bdcee27c6046669f62a778d265fc91cf385e5d36e9189ac822e.css?body=1" for 127.0.0.1 at 2016-03-11 00:52:10 +0200
Started PUT "/simple_cart/cart" for 127.0.0.1 at 2016-03-11 00:53:24 +0200
Processing by SimpleCart::CartsController#update as HTML
Parameters: {"utf8"=>"✓", "authenticity_token"=>"FUZXQic4sfA/Lv6eVspixWHzA8i9Ox2He8eVdNSnTI7TVmpOvO69BjZTV/VFjxuxIgVBjTEbzJlxSW4VubDiHw==", "1"=>"", "2"=>"", "coupon"=>"", "commit"=>"Update"}
[1m[36mItem Load (0.1ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mBicycle Load (0.1ms)[0m SELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mBicycle Load (0.0ms)[0m [1mSELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1[0m [["id", 2]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "1"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1[0m [["id", "1"]]
[1m[35mCACHE (0.0ms)[0m SELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1 [["id", "2"]]
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml within layouts/simple_cart/application (25.6ms)
Completed 200 OK in 40ms (Views: 39.0ms | ActiveRecord: 0.3ms)
Started GET "/assets/simple_cart/application.self-2f12d59583468bdcee27c6046669f62a778d265fc91cf385e5d36e9189ac822e.css?body=1" for 127.0.0.1 at 2016-03-11 00:53:25 +0200
Started GET "/assets/simple_cart/application.self-8f06a73c35179188914ab50e057157639fce1401c1cdca640ac9cec33746fc5b.js?body=1" for 127.0.0.1 at 2016-03-11 00:53:25 +0200
Started PUT "/simple_cart/cart" for 127.0.0.1 at 2016-03-11 00:54:03 +0200
Processing by SimpleCart::CartsController#update as HTML
Parameters: {"utf8"=>"✓", "authenticity_token"=>"FUZXQic4sfA/Lv6eVspixWHzA8i9Ox2He8eVdNSnTI7TVmpOvO69BjZTV/VFjxuxIgVBjTEbzJlxSW4VubDiHw==", "1"=>"", "2"=>"", "coupon"=>"", "commit"=>"Update"}
[1m[36mItem Load (0.2ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mBicycle Load (0.1ms)[0m SELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mBicycle Load (0.1ms)[0m [1mSELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1[0m [["id", 2]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "1"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1[0m [["id", "1"]]
[1m[35mCACHE (0.0ms)[0m SELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1 [["id", "2"]]
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml within layouts/simple_cart/application (23.6ms)
Completed 200 OK in 44ms (Views: 42.5ms | ActiveRecord: 0.5ms)
Started GET "/assets/simple_cart/application.self-2f12d59583468bdcee27c6046669f62a778d265fc91cf385e5d36e9189ac822e.css?body=1" for 127.0.0.1 at 2016-03-11 00:54:03 +0200
Started GET "/assets/simple_cart/application.self-8f06a73c35179188914ab50e057157639fce1401c1cdca640ac9cec33746fc5b.js?body=1" for 127.0.0.1 at 2016-03-11 00:54:03 +0200
Started PUT "/simple_cart/cart" for 127.0.0.1 at 2016-03-11 00:54:09 +0200
Processing by SimpleCart::CartsController#update as HTML
Parameters: {"utf8"=>"✓", "authenticity_token"=>"FUZXQic4sfA/Lv6eVspixWHzA8i9Ox2He8eVdNSnTI7TVmpOvO69BjZTV/VFjxuxIgVBjTEbzJlxSW4VubDiHw==", "1"=>"", "2"=>"", "coupon"=>"", "commit"=>"Update"}
[1m[36mItem Load (0.1ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mBicycle Load (0.1ms)[0m SELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mBicycle Load (0.1ms)[0m [1mSELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1[0m [["id", 2]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "1"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1[0m [["id", "1"]]
[1m[35mCACHE (0.0ms)[0m SELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1 [["id", "2"]]
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml within layouts/simple_cart/application (21.5ms)
Completed 200 OK in 34ms (Views: 32.9ms | ActiveRecord: 0.3ms)
Started GET "/assets/simple_cart/application.self-8f06a73c35179188914ab50e057157639fce1401c1cdca640ac9cec33746fc5b.js?body=1" for 127.0.0.1 at 2016-03-11 00:54:09 +0200
Started GET "/assets/simple_cart/application.self-2f12d59583468bdcee27c6046669f62a778d265fc91cf385e5d36e9189ac822e.css?body=1" for 127.0.0.1 at 2016-03-11 00:54:09 +0200
Started PUT "/simple_cart/cart" for 127.0.0.1 at 2016-03-11 00:54:59 +0200
Processing by SimpleCart::CartsController#update as HTML
Parameters: {"utf8"=>"✓", "authenticity_token"=>"FUZXQic4sfA/Lv6eVspixWHzA8i9Ox2He8eVdNSnTI7TVmpOvO69BjZTV/VFjxuxIgVBjTEbzJlxSW4VubDiHw==", "1"=>"", "2"=>"", "coupon"=>"", "commit"=>"Update"}
[1m[36mItem Load (0.2ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mBicycle Load (0.1ms)[0m SELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mBicycle Load (0.1ms)[0m [1mSELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1[0m [["id", 2]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "1"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1[0m [["id", "1"]]
[1m[35mCACHE (0.0ms)[0m SELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1 [["id", "2"]]
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml within layouts/simple_cart/application (22.4ms)
Completed 200 OK in 35ms (Views: 33.9ms | ActiveRecord: 0.3ms)
Started GET "/assets/simple_cart/application.self-2f12d59583468bdcee27c6046669f62a778d265fc91cf385e5d36e9189ac822e.css?body=1" for 127.0.0.1 at 2016-03-11 00:54:59 +0200
Started GET "/assets/simple_cart/application.self-8f06a73c35179188914ab50e057157639fce1401c1cdca640ac9cec33746fc5b.js?body=1" for 127.0.0.1 at 2016-03-11 00:54:59 +0200
Started PUT "/simple_cart/cart" for 127.0.0.1 at 2016-03-11 00:55:13 +0200
Processing by SimpleCart::CartsController#update as HTML
Parameters: {"utf8"=>"✓", "authenticity_token"=>"FUZXQic4sfA/Lv6eVspixWHzA8i9Ox2He8eVdNSnTI7TVmpOvO69BjZTV/VFjxuxIgVBjTEbzJlxSW4VubDiHw==", "1"=>"", "2"=>"", "coupon"=>"", "commit"=>"Update"}
[1m[36mItem Load (0.1ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mBicycle Load (0.0ms)[0m SELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mBicycle Load (0.0ms)[0m [1mSELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1[0m [["id", 2]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "1"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1[0m [["id", "1"]]
[1m[35mCACHE (0.0ms)[0m SELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1 [["id", "2"]]
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml within layouts/simple_cart/application (21.8ms)
Completed 200 OK in 34ms (Views: 33.4ms | ActiveRecord: 0.2ms)
Started GET "/assets/simple_cart/application.self-2f12d59583468bdcee27c6046669f62a778d265fc91cf385e5d36e9189ac822e.css?body=1" for 127.0.0.1 at 2016-03-11 00:55:13 +0200
Started GET "/assets/simple_cart/application.self-8f06a73c35179188914ab50e057157639fce1401c1cdca640ac9cec33746fc5b.js?body=1" for 127.0.0.1 at 2016-03-11 00:55:13 +0200
Started PUT "/simple_cart/cart" for 127.0.0.1 at 2016-03-11 00:55:25 +0200
Processing by SimpleCart::CartsController#update as HTML
Parameters: {"utf8"=>"✓", "authenticity_token"=>"FUZXQic4sfA/Lv6eVspixWHzA8i9Ox2He8eVdNSnTI7TVmpOvO69BjZTV/VFjxuxIgVBjTEbzJlxSW4VubDiHw==", "1"=>"", "2"=>"", "coupon"=>"", "commit"=>"Update"}
[1m[36mItem Load (0.2ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mBicycle Load (0.1ms)[0m SELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mBicycle Load (0.1ms)[0m [1mSELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1[0m [["id", 2]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "1"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1[0m [["id", "1"]]
[1m[35mCACHE (0.0ms)[0m SELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1 [["id", "2"]]
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml within layouts/simple_cart/application (26.4ms)
Completed 200 OK in 40ms (Views: 38.4ms | ActiveRecord: 0.5ms)
Started GET "/assets/simple_cart/application.self-8f06a73c35179188914ab50e057157639fce1401c1cdca640ac9cec33746fc5b.js?body=1" for 127.0.0.1 at 2016-03-11 00:55:25 +0200
Started GET "/assets/simple_cart/application.self-2f12d59583468bdcee27c6046669f62a778d265fc91cf385e5d36e9189ac822e.css?body=1" for 127.0.0.1 at 2016-03-11 00:55:25 +0200
Started PUT "/simple_cart/cart" for 127.0.0.1 at 2016-03-11 00:56:19 +0200
Processing by SimpleCart::CartsController#update as HTML
Parameters: {"utf8"=>"✓", "authenticity_token"=>"FUZXQic4sfA/Lv6eVspixWHzA8i9Ox2He8eVdNSnTI7TVmpOvO69BjZTV/VFjxuxIgVBjTEbzJlxSW4VubDiHw==", "1"=>"", "2"=>"", "coupon"=>"", "commit"=>"Update"}
[1m[36mItem Load (0.1ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mBicycle Load (0.2ms)[0m SELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mBicycle Load (0.1ms)[0m [1mSELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1[0m [["id", 2]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "1"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1[0m [["id", "1"]]
[1m[35mCACHE (0.0ms)[0m SELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1 [["id", "2"]]
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml within layouts/simple_cart/application (27.1ms)
Completed 200 OK in 53ms (Views: 51.4ms | ActiveRecord: 0.4ms)
Started GET "/assets/simple_cart/application.self-2f12d59583468bdcee27c6046669f62a778d265fc91cf385e5d36e9189ac822e.css?body=1" for 127.0.0.1 at 2016-03-11 00:56:19 +0200
Started GET "/assets/simple_cart/application.self-8f06a73c35179188914ab50e057157639fce1401c1cdca640ac9cec33746fc5b.js?body=1" for 127.0.0.1 at 2016-03-11 00:56:19 +0200
Started PUT "/simple_cart/cart" for 127.0.0.1 at 2016-03-11 00:57:08 +0200
Processing by SimpleCart::CartsController#update as HTML
Parameters: {"utf8"=>"✓", "authenticity_token"=>"FUZXQic4sfA/Lv6eVspixWHzA8i9Ox2He8eVdNSnTI7TVmpOvO69BjZTV/VFjxuxIgVBjTEbzJlxSW4VubDiHw==", "1"=>"", "2"=>"", "coupon"=>"", "commit"=>"Update"}
[1m[36mItem Load (0.2ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mBicycle Load (0.1ms)[0m SELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mBicycle Load (0.1ms)[0m [1mSELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1[0m [["id", 2]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "1"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1[0m [["id", "1"]]
[1m[35mCACHE (0.0ms)[0m SELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1 [["id", "2"]]
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml within layouts/simple_cart/application (24.5ms)
Completed 200 OK in 38ms (Views: 36.8ms | ActiveRecord: 0.4ms)
Started GET "/assets/simple_cart/application.self-2f12d59583468bdcee27c6046669f62a778d265fc91cf385e5d36e9189ac822e.css?body=1" for 127.0.0.1 at 2016-03-11 00:57:08 +0200
Started GET "/assets/simple_cart/application.self-8f06a73c35179188914ab50e057157639fce1401c1cdca640ac9cec33746fc5b.js?body=1" for 127.0.0.1 at 2016-03-11 00:57:08 +0200
Started PUT "/simple_cart/cart" for 127.0.0.1 at 2016-03-11 00:57:35 +0200
Processing by SimpleCart::CartsController#update as HTML
Parameters: {"utf8"=>"✓", "authenticity_token"=>"FUZXQic4sfA/Lv6eVspixWHzA8i9Ox2He8eVdNSnTI7TVmpOvO69BjZTV/VFjxuxIgVBjTEbzJlxSW4VubDiHw==", "1"=>"", "2"=>"", "coupon"=>"", "commit"=>"Update"}
[1m[36mItem Load (0.1ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mBicycle Load (0.1ms)[0m SELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mBicycle Load (0.1ms)[0m [1mSELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1[0m [["id", 2]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "1"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1[0m [["id", "1"]]
[1m[35mCACHE (0.0ms)[0m SELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1 [["id", "2"]]
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml within layouts/simple_cart/application (24.9ms)
Completed 200 OK in 39ms (Views: 38.0ms | ActiveRecord: 0.4ms)
Started GET "/assets/simple_cart/application.self-2f12d59583468bdcee27c6046669f62a778d265fc91cf385e5d36e9189ac822e.css?body=1" for 127.0.0.1 at 2016-03-11 00:57:36 +0200
Started GET "/assets/simple_cart/application.self-8f06a73c35179188914ab50e057157639fce1401c1cdca640ac9cec33746fc5b.js?body=1" for 127.0.0.1 at 2016-03-11 00:57:36 +0200
Started PUT "/simple_cart/cart" for 127.0.0.1 at 2016-03-11 00:58:00 +0200
Processing by SimpleCart::CartsController#update as HTML
Parameters: {"utf8"=>"✓", "authenticity_token"=>"FUZXQic4sfA/Lv6eVspixWHzA8i9Ox2He8eVdNSnTI7TVmpOvO69BjZTV/VFjxuxIgVBjTEbzJlxSW4VubDiHw==", "1"=>"", "2"=>"", "coupon"=>"", "commit"=>"Update"}
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml within layouts/simple_cart/application (6.4ms)
Completed 500 Internal Server Error in 9ms (ActiveRecord: 0.0ms)
SyntaxError (/home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml:64: syntax error, unexpected keyword_ensure, expecting end-of-input):
/home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml:64: syntax error, unexpected keyword_ensure, expecting end-of-input
actionview (4.2.5.2) lib/action_view/template.rb:296:in `module_eval'
actionview (4.2.5.2) lib/action_view/template.rb:296:in `compile'
actionview (4.2.5.2) lib/action_view/template.rb:245:in `block (2 levels) in compile!'
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:244:in `block in compile!'
actionview (4.2.5.2) lib/action_view/template.rb:232:in `synchronize'
actionview (4.2.5.2) lib/action_view/template.rb:232:in `compile!'
actionview (4.2.5.2) lib/action_view/template.rb:144: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'
/home/leksster/ror/Rubygarage/Amazon/simple_cart/app/controllers/simple_cart/carts_controller.rb:30:in `update'
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 (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 (3.5ms)
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 "/simple_cart/cart" for 127.0.0.1 at 2016-03-11 00:58:02 +0200
Processing by SimpleCart::CartsController#show as HTML
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml within layouts/simple_cart/application (5.0ms)
Completed 500 Internal Server Error in 7ms (ActiveRecord: 0.0ms)
SyntaxError (/home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml:64: syntax error, unexpected keyword_ensure, expecting end-of-input):
/home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml:64: syntax error, unexpected keyword_ensure, expecting end-of-input
actionview (4.2.5.2) lib/action_view/template.rb:296:in `module_eval'
actionview (4.2.5.2) lib/action_view/template.rb:296:in `compile'
actionview (4.2.5.2) lib/action_view/template.rb:245:in `block (2 levels) in compile!'
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:244:in `block in compile!'
actionview (4.2.5.2) lib/action_view/template.rb:232:in `synchronize'
actionview (4.2.5.2) lib/action_view/template.rb:232:in `compile!'
actionview (4.2.5.2) lib/action_view/template.rb:144: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.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 (1.2ms)
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.9ms)
Started GET "/simple_cart/cart" for 127.0.0.1 at 2016-03-11 00:59:43 +0200
Processing by SimpleCart::CartsController#show as HTML
[1m[36mItem Load (0.1ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mBicycle Load (0.1ms)[0m SELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mBicycle Load (0.1ms)[0m [1mSELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1[0m [["id", 2]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "1"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1[0m [["id", "1"]]
[1m[35mCACHE (0.0ms)[0m SELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1 [["id", "2"]]
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml within layouts/simple_cart/application (21.9ms)
Completed 200 OK in 34ms (Views: 33.1ms | ActiveRecord: 0.3ms)
Started GET "/assets/simple_cart/application.self-2f12d59583468bdcee27c6046669f62a778d265fc91cf385e5d36e9189ac822e.css?body=1" for 127.0.0.1 at 2016-03-11 00:59:43 +0200
Started GET "/assets/simple_cart/application.self-8f06a73c35179188914ab50e057157639fce1401c1cdca640ac9cec33746fc5b.js?body=1" for 127.0.0.1 at 2016-03-11 00:59:43 +0200
Started GET "/simple_cart/cart" for 127.0.0.1 at 2016-03-11 00:59:52 +0200
Processing by SimpleCart::CartsController#show as HTML
[1m[36mItem Load (0.1ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mBicycle Load (0.1ms)[0m SELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mBicycle Load (0.1ms)[0m [1mSELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1[0m [["id", 2]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "1"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1[0m [["id", "1"]]
[1m[35mCACHE (0.0ms)[0m SELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1 [["id", "2"]]
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml within layouts/simple_cart/application (21.2ms)
Completed 200 OK in 33ms (Views: 32.2ms | ActiveRecord: 0.4ms)
Started GET "/assets/simple_cart/application.self-8f06a73c35179188914ab50e057157639fce1401c1cdca640ac9cec33746fc5b.js?body=1" for 127.0.0.1 at 2016-03-11 00:59:53 +0200
Started GET "/assets/simple_cart/application.self-2f12d59583468bdcee27c6046669f62a778d265fc91cf385e5d36e9189ac822e.css?body=1" for 127.0.0.1 at 2016-03-11 00:59:53 +0200
Started GET "/simple_cart/cart" for 127.0.0.1 at 2016-03-11 00:59:58 +0200
Processing by SimpleCart::CartsController#show as HTML
[1m[36mItem Load (0.1ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mBicycle Load (0.1ms)[0m SELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mBicycle Load (0.1ms)[0m [1mSELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1[0m [["id", 2]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "1"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1[0m [["id", "1"]]
[1m[35mCACHE (0.0ms)[0m SELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1 [["id", "2"]]
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml within layouts/simple_cart/application (21.7ms)
Completed 200 OK in 35ms (Views: 33.8ms | ActiveRecord: 0.4ms)
Started GET "/assets/simple_cart/application.self-2f12d59583468bdcee27c6046669f62a778d265fc91cf385e5d36e9189ac822e.css?body=1" for 127.0.0.1 at 2016-03-11 00:59:58 +0200
Started GET "/assets/simple_cart/application.self-8f06a73c35179188914ab50e057157639fce1401c1cdca640ac9cec33746fc5b.js?body=1" for 127.0.0.1 at 2016-03-11 00:59:58 +0200
Started PUT "/simple_cart/cart" for 127.0.0.1 at 2016-03-11 01:00:03 +0200
Processing by SimpleCart::CartsController#update as HTML
Parameters: {"utf8"=>"✓", "authenticity_token"=>"Tho2Hw9yxLlpqh33dlt8Yj6FjD1AtET2Eb8b/nc26/6ICgsTlKTIT2DXtJxlHgUWfXPOeMyUlegbMeCfGiFFbw==", "1"=>"", "2"=>"", "coupon"=>"", "commit"=>"Update"}
[1m[36mItem Load (0.2ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mBicycle Load (0.1ms)[0m SELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mBicycle Load (0.1ms)[0m [1mSELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1[0m [["id", 2]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "1"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1[0m [["id", "1"]]
[1m[35mCACHE (0.0ms)[0m SELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1 [["id", "2"]]
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml within layouts/simple_cart/application (14.5ms)
Completed 200 OK in 28ms (Views: 26.5ms | ActiveRecord: 0.5ms)
Started PUT "/simple_cart/cart" for 127.0.0.1 at 2016-03-11 01:00:26 +0200
Processing by SimpleCart::CartsController#update as HTML
Parameters: {"utf8"=>"✓", "authenticity_token"=>"Tho2Hw9yxLlpqh33dlt8Yj6FjD1AtET2Eb8b/nc26/6ICgsTlKTIT2DXtJxlHgUWfXPOeMyUlegbMeCfGiFFbw==", "1"=>"", "2"=>"", "coupon"=>"", "commit"=>"Update"}
[1m[36mItem Load (0.2ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mBicycle Load (0.2ms)[0m SELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mBicycle Load (0.1ms)[0m [1mSELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1[0m [["id", 2]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "1"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1[0m [["id", "1"]]
[1m[35mCACHE (0.0ms)[0m SELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1 [["id", "2"]]
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml within layouts/simple_cart/application (26.8ms)
Completed 200 OK in 47ms (Views: 46.4ms | ActiveRecord: 0.5ms)
Started GET "/assets/simple_cart/application.self-2f12d59583468bdcee27c6046669f62a778d265fc91cf385e5d36e9189ac822e.css?body=1" for 127.0.0.1 at 2016-03-11 01:00:26 +0200
Started GET "/assets/simple_cart/application.self-8f06a73c35179188914ab50e057157639fce1401c1cdca640ac9cec33746fc5b.js?body=1" for 127.0.0.1 at 2016-03-11 01:00:26 +0200
Started GET "/simple_cart/cart" for 127.0.0.1 at 2016-03-11 01:00:31 +0200
Processing by SimpleCart::CartsController#show as HTML
[1m[36mItem Load (0.1ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mBicycle Load (0.1ms)[0m SELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mBicycle Load (0.1ms)[0m [1mSELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1[0m [["id", 2]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "1"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1[0m [["id", "1"]]
[1m[35mCACHE (0.0ms)[0m SELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1 [["id", "2"]]
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml within layouts/simple_cart/application (13.8ms)
Completed 200 OK in 26ms (Views: 24.7ms | ActiveRecord: 0.3ms)
Started GET "/simple_cart/cart" for 127.0.0.1 at 2016-03-11 01:00:33 +0200
Processing by SimpleCart::CartsController#show as HTML
[1m[36mItem Load (0.1ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mBicycle Load (0.1ms)[0m SELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mBicycle Load (0.1ms)[0m [1mSELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1[0m [["id", 2]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "1"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1[0m [["id", "1"]]
[1m[35mCACHE (0.0ms)[0m SELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1 [["id", "2"]]
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml within layouts/simple_cart/application (13.8ms)
Completed 200 OK in 30ms (Views: 29.0ms | ActiveRecord: 0.3ms)
Started GET "/assets/simple_cart/application.self-2f12d59583468bdcee27c6046669f62a778d265fc91cf385e5d36e9189ac822e.css?body=1" for 127.0.0.1 at 2016-03-11 01:00:34 +0200
Started GET "/assets/simple_cart/application.self-8f06a73c35179188914ab50e057157639fce1401c1cdca640ac9cec33746fc5b.js?body=1" for 127.0.0.1 at 2016-03-11 01:00:34 +0200
Started GET "/simple_cart/" for 127.0.0.1 at 2016-03-11 01:00:37 +0200
Processing by SimpleCart::CartsController#show as HTML
[1m[36mItem Load (0.1ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mBicycle Load (0.1ms)[0m SELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mBicycle Load (0.1ms)[0m [1mSELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1[0m [["id", 2]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "1"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1[0m [["id", "1"]]
[1m[35mCACHE (0.0ms)[0m SELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1 [["id", "2"]]
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml within layouts/simple_cart/application (12.6ms)
Completed 200 OK in 25ms (Views: 24.2ms | ActiveRecord: 0.3ms)
Started GET "/items/2" for 127.0.0.1 at 2016-03-11 01:00:39 +0200
Processing by ItemsController#show as HTML
Parameters: {"id"=>"2"}
[1m[36mItem Load (0.1ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", 2]]
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/_buy.html.haml (6.6ms)
Rendered items/show.html.erb within layouts/application (8.0ms)
Completed 200 OK in 24ms (Views: 22.7ms | ActiveRecord: 0.1ms)
Started POST "/simple_cart/cart/2" for 127.0.0.1 at 2016-03-11 01:00:40 +0200
Processing by SimpleCart::CartsController#add as HTML
Parameters: {"utf8"=>"✓", "authenticity_token"=>"igucF0RY108KRNB6ykQp27qDYhkgOhM381t3Q9453CdMG6Eb347buQM5eRHZAVCv+XUgXKwawin51Ywisy5ytg==", "qty"=>"1", "klass"=>"Item", "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-11 01:00:40 +0200
Processing by SimpleCart::CartsController#show as HTML
[1m[35mItem Load (0.1ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mBicycle Load (0.1ms)[0m [1mSELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mBicycle Load (0.0ms)[0m SELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1 [["id", 2]]
[1m[36mItem Load (0.1ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", 2]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "1"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1[0m [["id", "1"]]
[1m[35mCACHE (0.0ms)[0m SELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1 [["id", "2"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "2"]]
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml within layouts/simple_cart/application (22.4ms)
Completed 200 OK in 36ms (Views: 34.8ms | ActiveRecord: 0.3ms)
Started POST "/simple_cart/cart/2" for 127.0.0.1 at 2016-03-11 01:00:45 +0200
Processing by SimpleCart::CartsController#add as HTML
Parameters: {"utf8"=>"✓", "authenticity_token"=>"igucF0RY108KRNB6ykQp27qDYhkgOhM381t3Q9453CdMG6Eb347buQM5eRHZAVCv+XUgXKwawin51Ywisy5ytg==", "qty"=>"1", "klass"=>"Item", "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-11 01:00:45 +0200
Processing by SimpleCart::CartsController#show as HTML
[1m[35mItem Load (0.1ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mBicycle Load (0.1ms)[0m [1mSELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mBicycle Load (0.1ms)[0m SELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1 [["id", 2]]
[1m[36mItem Load (0.1ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", 2]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "1"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1[0m [["id", "1"]]
[1m[35mCACHE (0.0ms)[0m SELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1 [["id", "2"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "2"]]
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml within layouts/simple_cart/application (20.2ms)
Completed 200 OK in 34ms (Views: 33.0ms | ActiveRecord: 0.5ms)
Started GET "/simple_cart/cart/remove?id=1" for 127.0.0.1 at 2016-03-11 01:00:58 +0200
Processing by SimpleCart::CartsController#remove as HTML
Parameters: {"id"=>"1"}
[1m[35mItem Load (0.1ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mBicycle Load (0.1ms)[0m [1mSELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mBicycle Load (0.1ms)[0m SELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1 [["id", 2]]
[1m[36mItem Load (0.1ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", 2]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "1"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1[0m [["id", "1"]]
[1m[35mCACHE (0.0ms)[0m SELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1 [["id", "2"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "2"]]
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml within layouts/simple_cart/application (17.2ms)
Completed 200 OK in 30ms (Views: 28.7ms | ActiveRecord: 0.4ms)
Started GET "/simple_cart/cart/remove?id=1" for 127.0.0.1 at 2016-03-11 01:01:02 +0200
Processing by SimpleCart::CartsController#remove as HTML
Parameters: {"id"=>"1"}
[1m[35mItem Load (0.2ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mBicycle Load (0.1ms)[0m [1mSELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mBicycle Load (0.1ms)[0m SELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1 [["id", 2]]
[1m[36mItem Load (0.1ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", 2]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "1"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1[0m [["id", "1"]]
[1m[35mCACHE (0.0ms)[0m SELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1 [["id", "2"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "2"]]
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml within layouts/simple_cart/application (19.6ms)
Completed 200 OK in 36ms (Views: 34.3ms | ActiveRecord: 0.5ms)
Started GET "/simple_cart/cart/remove?id=1" for 127.0.0.1 at 2016-03-11 01:02:14 +0200
Processing by SimpleCart::CartsController#remove as HTML
Parameters: {"id"=>"1"}
[1m[35mItem Load (0.1ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mBicycle Load (0.1ms)[0m [1mSELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mBicycle Load (0.1ms)[0m SELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1 [["id", 2]]
[1m[36mItem Load (0.1ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", 2]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "1"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1[0m [["id", "1"]]
[1m[35mCACHE (0.0ms)[0m SELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1 [["id", "2"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "2"]]
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml within layouts/simple_cart/application (26.6ms)
Completed 200 OK in 39ms (Views: 38.1ms | ActiveRecord: 0.4ms)
Started GET "/assets/simple_cart/application.self-2f12d59583468bdcee27c6046669f62a778d265fc91cf385e5d36e9189ac822e.css?body=1" for 127.0.0.1 at 2016-03-11 01:02:14 +0200
Started GET "/assets/simple_cart/application.self-8f06a73c35179188914ab50e057157639fce1401c1cdca640ac9cec33746fc5b.js?body=1" for 127.0.0.1 at 2016-03-11 01:02:14 +0200
Started PUT "/simple_cart/cart" for 127.0.0.1 at 2016-03-11 01:02:39 +0200
Processing by SimpleCart::CartsController#update as HTML
Parameters: {"utf8"=>"✓", "authenticity_token"=>"SEd1wouNN5GBdRMW7dV2MeGt7jYBAEQusd6hCX5fLWaOV0jOEFs7Z4gIun3+kA9Folusc40glTC7UFpoE0iD9w==", "1"=>"1", "2"=>"2", "coupon"=>"", "commit"=>"Update"}
[1m[35mItem Load (0.1ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mBicycle Load (0.1ms)[0m [1mSELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mBicycle Load (0.0ms)[0m SELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1 [["id", 2]]
[1m[36mItem Load (0.1ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", 2]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "1"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1[0m [["id", "1"]]
[1m[35mCACHE (0.0ms)[0m SELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1 [["id", "2"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "2"]]
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml within layouts/simple_cart/application (24.6ms)
Completed 200 OK in 39ms (Views: 37.6ms | ActiveRecord: 0.3ms)
Started PUT "/simple_cart/cart" for 127.0.0.1 at 2016-03-11 01:02:42 +0200
Processing by SimpleCart::CartsController#update as HTML
Parameters: {"utf8"=>"✓", "authenticity_token"=>"HvaShWfn9t+JrlaWw90OVUzgTJGj8rRDr05YNEs85a7Y5q+J/DH6KYDT//3QmHchDxYO1C/SZV2lwKNVJitLPw==", "1"=>"1", "2"=>"2", "coupon"=>"", "commit"=>"Update"}
[1m[35mItem Load (0.1ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mBicycle Load (0.1ms)[0m [1mSELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mBicycle Load (0.1ms)[0m SELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1 [["id", 2]]
[1m[36mItem Load (0.2ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", 2]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "1"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1[0m [["id", "1"]]
[1m[35mCACHE (0.0ms)[0m SELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1 [["id", "2"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "2"]]
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml within layouts/simple_cart/application (24.1ms)
Completed 200 OK in 39ms (Views: 37.2ms | ActiveRecord: 0.6ms)
Started PUT "/simple_cart/cart" for 127.0.0.1 at 2016-03-11 01:02:47 +0200
Processing by SimpleCart::CartsController#update as HTML
Parameters: {"utf8"=>"✓", "authenticity_token"=>"9OADy2aqnyrO2cYddL2POqdccD3yWSc0Jhq8x7qEfpQy8D7H/XyT3Mekb3Zn+PZO5KoyeH559ioslEem15PQBQ==", "1"=>"1", "2"=>"1", "coupon"=>"", "commit"=>"Update"}
[1m[35mItem Load (0.1ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mBicycle Load (0.1ms)[0m [1mSELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mBicycle Load (0.1ms)[0m SELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1 [["id", 2]]
[1m[36mItem Load (0.1ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", 2]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "1"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1[0m [["id", "1"]]
[1m[35mCACHE (0.0ms)[0m SELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1 [["id", "2"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "2"]]
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml within layouts/simple_cart/application (22.7ms)
Completed 200 OK in 36ms (Views: 35.3ms | ActiveRecord: 0.4ms)
Started PUT "/simple_cart/cart" for 127.0.0.1 at 2016-03-11 01:02:53 +0200
Processing by SimpleCart::CartsController#update as HTML
Parameters: {"utf8"=>"✓", "authenticity_token"=>"lo9kB89Q45akjA0t4wmUQ+HikXrmfNL2CZiRTP15NxBQn1kLVIbvYK3xpEbwTO03ohTTP2pcA+gDFmotkG6ZgQ==", "1"=>"1", "2"=>"", "coupon"=>"", "commit"=>"Update"}
[1m[35mItem Load (0.1ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mBicycle Load (0.1ms)[0m [1mSELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mBicycle Load (0.0ms)[0m SELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1 [["id", 2]]
[1m[36mItem Load (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", 2]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "1"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1[0m [["id", "1"]]
[1m[35mCACHE (0.0ms)[0m SELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1 [["id", "2"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "2"]]
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml within layouts/simple_cart/application (22.0ms)
Completed 200 OK in 36ms (Views: 35.4ms | ActiveRecord: 0.4ms)
Started PUT "/simple_cart/cart" for 127.0.0.1 at 2016-03-11 01:06:33 +0200
Processing by SimpleCart::CartsController#update as HTML
Parameters: {"utf8"=>"✓", "authenticity_token"=>"lo9kB89Q45akjA0t4wmUQ+HikXrmfNL2CZiRTP15NxBQn1kLVIbvYK3xpEbwTO03ohTTP2pcA+gDFmotkG6ZgQ==", "1"=>"1", "2"=>"", "coupon"=>"", "commit"=>"Update"}
[1m[35mItem Load (0.1ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mBicycle Load (0.1ms)[0m [1mSELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mBicycle Load (0.0ms)[0m SELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1 [["id", 2]]
[1m[36mItem Load (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", 2]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "1"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1[0m [["id", "1"]]
[1m[35mCACHE (0.0ms)[0m SELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1 [["id", "2"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "2"]]
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml within layouts/simple_cart/application (29.6ms)
Completed 200 OK in 42ms (Views: 41.1ms | ActiveRecord: 0.3ms)
Started GET "/assets/simple_cart/application.self-2f12d59583468bdcee27c6046669f62a778d265fc91cf385e5d36e9189ac822e.css?body=1" for 127.0.0.1 at 2016-03-11 01:06:33 +0200
Started GET "/assets/simple_cart/application.self-8f06a73c35179188914ab50e057157639fce1401c1cdca640ac9cec33746fc5b.js?body=1" for 127.0.0.1 at 2016-03-11 01:06:33 +0200
Started PUT "/simple_cart/cart" for 127.0.0.1 at 2016-03-11 01:06:36 +0200
Processing by SimpleCart::CartsController#update as HTML
Parameters: {"utf8"=>"✓", "authenticity_token"=>"Yj8V0puM2P2Tm0Dt1m8MuoV0CxAUtXA5MA57PzPGXUKkLyjeAFrUC5rm6YbFKnXOxoJJVZiVoSc6gIBeXtHz0w==", "Item_1"=>"1", "Bicycle_1"=>"1", "Bicycle_2"=>"1", "Item_2"=>"3", "coupon"=>"", "commit"=>"Update"}
[1m[35mItem Load (0.1ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mBicycle Load (0.1ms)[0m [1mSELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mBicycle Load (0.1ms)[0m SELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1 [["id", 2]]
[1m[36mItem Load (0.1ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", 2]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "1"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1[0m [["id", "1"]]
[1m[35mCACHE (0.0ms)[0m SELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1 [["id", "2"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "2"]]
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml within layouts/simple_cart/application (25.5ms)
Completed 200 OK in 38ms (Views: 37.4ms | ActiveRecord: 0.6ms)
Started PUT "/simple_cart/cart" for 127.0.0.1 at 2016-03-11 01:06:39 +0200
Processing by SimpleCart::CartsController#update as HTML
Parameters: {"utf8"=>"✓", "authenticity_token"=>"JAwKFOL4i0/iFQYGRNLvtOW2qnjN4AqC6sU3wZ2yzE/iHDcYeS6Huetor21Xl5bApkDoPUHA25zgS8yg8KVi3g==", "Item_1"=>"1", "Bicycle_1"=>"1", "Bicycle_2"=>"5", "Item_2"=>"3", "coupon"=>"", "commit"=>"Update"}
[1m[35mItem Load (0.1ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mBicycle Load (0.1ms)[0m [1mSELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mBicycle Load (0.1ms)[0m SELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1 [["id", 2]]
[1m[36mItem Load (0.1ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", 2]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "1"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1[0m [["id", "1"]]
[1m[35mCACHE (0.0ms)[0m SELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1 [["id", "2"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "2"]]
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml within layouts/simple_cart/application (28.8ms)
Completed 200 OK in 43ms (Views: 41.4ms | ActiveRecord: 0.5ms)
Started PUT "/simple_cart/cart" for 127.0.0.1 at 2016-03-11 01:06:41 +0200
Processing by SimpleCart::CartsController#update as HTML
Parameters: {"utf8"=>"✓", "authenticity_token"=>"scgL2+EDF04ZJfW9yESHFOxiX6lRj7D28T3EFku3wSJ32DbXetUbuBBYXNbbAf5gr5Qd7N2vYej7sz93JqBvsw==", "Item_1"=>"1", "Bicycle_1"=>"4", "Bicycle_2"=>"5", "Item_2"=>"3", "coupon"=>"", "commit"=>"Update"}
[1m[35mItem Load (0.1ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mBicycle Load (0.1ms)[0m [1mSELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mBicycle Load (0.0ms)[0m SELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1 [["id", 2]]
[1m[36mItem Load (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", 2]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "1"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1[0m [["id", "1"]]
[1m[35mCACHE (0.0ms)[0m SELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1 [["id", "2"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "2"]]
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml within layouts/simple_cart/application (30.2ms)
Completed 200 OK in 43ms (Views: 42.4ms | ActiveRecord: 0.3ms)
Started PUT "/simple_cart/cart" for 127.0.0.1 at 2016-03-11 01:06:42 +0200
Processing by SimpleCart::CartsController#update as HTML
Parameters: {"utf8"=>"✓", "authenticity_token"=>"Kphze5OwGAESisOdj33WMiMWMpFH9lGSNzDBv2JmPhnsiE53CGYU9xv3avacOK9GYOBw1MvWgIw9vjreD3GQiA==", "Item_1"=>"1", "Bicycle_1"=>"4", "Bicycle_2"=>"5", "Item_2"=>"3", "coupon"=>"", "commit"=>"Update"}
[1m[35mItem Load (0.1ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mBicycle Load (0.1ms)[0m [1mSELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mBicycle Load (0.1ms)[0m SELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1 [["id", 2]]
[1m[36mItem Load (0.2ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", 2]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "1"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1[0m [["id", "1"]]
[1m[35mCACHE (0.0ms)[0m SELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1 [["id", "2"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "2"]]
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml within layouts/simple_cart/application (32.5ms)
Completed 200 OK in 47ms (Views: 45.6ms | ActiveRecord: 0.6ms)
Started PUT "/simple_cart/cart" for 127.0.0.1 at 2016-03-11 01:07:07 +0200
Processing by SimpleCart::CartsController#update as HTML
Parameters: {"utf8"=>"✓", "authenticity_token"=>"Kphze5OwGAESisOdj33WMiMWMpFH9lGSNzDBv2JmPhnsiE53CGYU9xv3avacOK9GYOBw1MvWgIw9vjreD3GQiA==", "Item_1"=>"1", "Bicycle_1"=>"4", "Bicycle_2"=>"5", "Item_2"=>"3", "coupon"=>"", "commit"=>"Update"}
[1m[35mItem Load (0.1ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mBicycle Load (0.1ms)[0m [1mSELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mBicycle Load (0.1ms)[0m SELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1 [["id", 2]]
[1m[36mItem Load (0.1ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", 2]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "1"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1[0m [["id", "1"]]
[1m[35mCACHE (0.0ms)[0m SELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1 [["id", "2"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "2"]]
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml within layouts/simple_cart/application (27.9ms)
Completed 200 OK in 40ms (Views: 39.4ms | ActiveRecord: 0.4ms)
Started GET "/assets/simple_cart/application.self-2f12d59583468bdcee27c6046669f62a778d265fc91cf385e5d36e9189ac822e.css?body=1" for 127.0.0.1 at 2016-03-11 01:07:08 +0200
Started GET "/assets/simple_cart/application.self-8f06a73c35179188914ab50e057157639fce1401c1cdca640ac9cec33746fc5b.js?body=1" for 127.0.0.1 at 2016-03-11 01:07:08 +0200
Started GET "/simple_cart/cart/remove?id=Item_1" for 127.0.0.1 at 2016-03-11 01:07:09 +0200
Processing by SimpleCart::CartsController#remove as HTML
Parameters: {"id"=>"Item_1"}
[1m[35mBicycle Load (0.1ms)[0m SELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mBicycle Load (0.1ms)[0m [1mSELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1[0m [["id", 2]]
[1m[35mItem Load (0.1ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 2]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1[0m [["id", "1"]]
[1m[35mCACHE (0.0ms)[0m SELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1 [["id", "2"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "2"]]
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml within layouts/simple_cart/application (16.4ms)
Completed 200 OK in 30ms (Views: 29.0ms | ActiveRecord: 0.3ms)
Started GET "/simple_cart/cart/remove?id=Bicycle_1" for 127.0.0.1 at 2016-03-11 01:07:11 +0200
Processing by SimpleCart::CartsController#remove as HTML
Parameters: {"id"=>"Bicycle_1"}
[1m[35mBicycle Load (0.2ms)[0m SELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1 [["id", 2]]
[1m[36mItem Load (0.1ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", 2]]
[1m[35mCACHE (0.0ms)[0m SELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1 [["id", "2"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "2"]]
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml within layouts/simple_cart/application (15.0ms)
Completed 200 OK in 29ms (Views: 27.7ms | ActiveRecord: 0.3ms)
Started GET "/simple_cart/cart/clear" for 127.0.0.1 at 2016-03-11 01:07:37 +0200
Processing by SimpleCart::CartsController#clear as HTML
Redirected to http://localhost:3000/simple_cart/cart
Completed 302 Found in 7ms (ActiveRecord: 0.0ms)
Started GET "/simple_cart/cart" for 127.0.0.1 at 2016-03-11 01:07:37 +0200
Processing by SimpleCart::CartsController#show as HTML
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml within layouts/simple_cart/application (3.6ms)
Completed 200 OK in 17ms (Views: 16.6ms | ActiveRecord: 0.0ms)
Started GET "/items" for 127.0.0.1 at 2016-03-11 01:07:43 +0200
Processing by ItemsController#index as HTML
[1m[35mItem Load (0.2ms)[0m SELECT "items".* FROM "items"
Rendered items/index.html.erb within layouts/application (3.7ms)
Completed 200 OK in 27ms (Views: 26.6ms | ActiveRecord: 0.2ms)
Started GET "/items/3" for 127.0.0.1 at 2016-03-11 01:07:45 +0200
Processing by ItemsController#show as HTML
Parameters: {"id"=>"3"}
[1m[36mItem Load (0.1ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", 3]]
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/_buy.html.haml (7.8ms)
Rendered items/show.html.erb within layouts/application (9.3ms)
Completed 200 OK in 23ms (Views: 22.1ms | ActiveRecord: 0.1ms)
Started POST "/simple_cart/cart/3" for 127.0.0.1 at 2016-03-11 01:07:46 +0200
Processing by SimpleCart::CartsController#add as HTML
Parameters: {"utf8"=>"✓", "authenticity_token"=>"WPUaBvEb0Xh7UKxj/1YHSNi1C7D2S8Mg/Rz8dLia636e5ScKas3djnItBQjsE348m0NJ9XprEj73kgcV1Y1F7w==", "qty"=>"1", "klass"=>"Item", "commit"=>"Add to cart", "item_id"=>"3"}
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-11 01:07:46 +0200
Processing by SimpleCart::CartsController#show as HTML
[1m[35mItem Load (0.1ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 3]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "3"]]
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml within layouts/simple_cart/application (8.7ms)
Completed 200 OK in 23ms (Views: 21.9ms | ActiveRecord: 0.1ms)
Started GET "/cart" for 127.0.0.1 at 2016-03-11 01:07:50 +0200
ActionController::RoutingError (No route matches [GET] "/cart"):
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.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/_trace.html.erb (1.4ms)
Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/routes/_route.html.erb (2.5ms)
Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/routes/_route.html.erb (0.4ms)
Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/routes/_table.html.erb (2.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 (1.7ms)
Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/rescues/routing_error.html.erb within rescues/layout (34.9ms)
Started GET "/bicycles" for 127.0.0.1 at 2016-03-11 01:07:51 +0200
Processing by BicyclesController#index as HTML
[1m[35mBicycle Load (0.2ms)[0m SELECT "bicycles".* FROM "bicycles"
Rendered bicycles/index.html.erb within layouts/application (2.1ms)
Completed 200 OK in 18ms (Views: 17.3ms | ActiveRecord: 0.2ms)
Started GET "/bicycles/1" for 127.0.0.1 at 2016-03-11 01:07:53 +0200
Processing by BicyclesController#show as HTML
Parameters: {"id"=>"1"}
[1m[36mBicycle Load (0.1ms)[0m [1mSELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1[0m [["id", 1]]
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/_buy.html.haml (6.0ms)
Rendered bicycles/show.html.erb within layouts/application (7.8ms)
Completed 200 OK in 22ms (Views: 21.2ms | ActiveRecord: 0.1ms)
Started POST "/simple_cart/cart/1" for 127.0.0.1 at 2016-03-11 01:07:54 +0200
Processing by SimpleCart::CartsController#add as HTML
Parameters: {"utf8"=>"✓", "authenticity_token"=>"98LivjrwsTOtxo2816P98fO7oPovrUhXoTOJp2RN8GAx0t+yoSa9xaS7JNfE5oSFsE3iv6ONmUmrvXLGCVpe8Q==", "qty"=>"1", "klass"=>"Bicycle", "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-11 01:07:54 +0200
Processing by SimpleCart::CartsController#show as HTML
[1m[35mItem Load (0.1ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 3]]
[1m[36mBicycle Load (0.2ms)[0m [1mSELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "3"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1[0m [["id", "1"]]
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml within layouts/simple_cart/application (12.8ms)
Completed 200 OK in 27ms (Views: 26.6ms | ActiveRecord: 0.3ms)
Started PUT "/simple_cart/cart" for 127.0.0.1 at 2016-03-11 01:07:58 +0200
Processing by SimpleCart::CartsController#update as HTML
Parameters: {"utf8"=>"✓", "authenticity_token"=>"CphUDmzp8byU/MDMcFia5xwljJPfzhqNU/tPQ3LlLcHMiGkC9z/9Sp2BaadjHeOTX9PO1lPuy5NZdbQiH/KDUA==", "Item_3"=>"4", "Bicycle_1"=>"1", "coupon"=>"", "commit"=>"Update"}
[1m[35mItem Load (0.1ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 3]]
[1m[36mBicycle Load (0.1ms)[0m [1mSELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "3"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1[0m [["id", "1"]]
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml within layouts/simple_cart/application (14.6ms)
Completed 200 OK in 28ms (Views: 26.6ms | ActiveRecord: 0.2ms)
Started PUT "/simple_cart/cart" for 127.0.0.1 at 2016-03-11 01:08:12 +0200
Processing by SimpleCart::CartsController#update as HTML
Parameters: {"utf8"=>"✓", "authenticity_token"=>"CphUDmzp8byU/MDMcFia5xwljJPfzhqNU/tPQ3LlLcHMiGkC9z/9Sp2BaadjHeOTX9PO1lPuy5NZdbQiH/KDUA==", "Item_3"=>"4", "Bicycle_1"=>"1", "coupon"=>"", "commit"=>"Update"}
[1m[35mItem Load (0.1ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 3]]
[1m[36mBicycle Load (0.1ms)[0m [1mSELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "3"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1[0m [["id", "1"]]
[1m[35mItem Load (0.1ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 0]]
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml within layouts/simple_cart/application (18.9ms)
Completed 500 Internal Server Error in 22ms (ActiveRecord: 0.4ms)
ActiveRecord::RecordNotFound (Couldn't find Item with 'id'=Item_3):
activerecord (4.2.5.2) lib/active_record/core.rb:155:in `find'
/home/leksster/ror/Rubygarage/Amazon/simple_cart/app/models/cart.rb:13:in `block in subtotal'
/home/leksster/ror/Rubygarage/Amazon/simple_cart/app/models/cart.rb:12:in `each'
/home/leksster/ror/Rubygarage/Amazon/simple_cart/app/models/cart.rb:12:in `subtotal'
/home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml:47:in `block in __home_leksster_ror__ubygarage__mazon_simple_cart_app_views_simple_cart_carts_show_html_haml___4019778103359939435_70003823068780'
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/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml:7:in `__home_leksster_ror__ubygarage__mazon_simple_cart_app_views_simple_cart_carts_show_html_haml___4019778103359939435_70003823068780'
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'
/home/leksster/ror/Rubygarage/Amazon/simple_cart/app/controllers/simple_cart/carts_controller.rb:30:in `update'
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 (8.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 (3.2ms)
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.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 (23.2ms)
Started PUT "/simple_cart/cart" for 127.0.0.1 at 2016-03-11 01:09:59 +0200
Processing by SimpleCart::CartsController#update as HTML
Parameters: {"utf8"=>"✓", "authenticity_token"=>"CphUDmzp8byU/MDMcFia5xwljJPfzhqNU/tPQ3LlLcHMiGkC9z/9Sp2BaadjHeOTX9PO1lPuy5NZdbQiH/KDUA==", "Item_3"=>"4", "Bicycle_1"=>"1", "coupon"=>"", "commit"=>"Update"}
[1m[36mItem Load (0.1ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", 3]]
[1m[35mBicycle Load (0.2ms)[0m SELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "3"]]
[1m[35mCACHE (0.0ms)[0m SELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1 [["id", "1"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "3"]]
[1m[35mCACHE (0.0ms)[0m SELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1 [["id", "1"]]
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml within layouts/simple_cart/application (21.0ms)
Completed 200 OK in 38ms (Views: 34.8ms | ActiveRecord: 1.0ms)
Started GET "/assets/simple_cart/application.self-8f06a73c35179188914ab50e057157639fce1401c1cdca640ac9cec33746fc5b.js?body=1" for 127.0.0.1 at 2016-03-11 01:09:59 +0200
Started PUT "/simple_cart/cart" for 127.0.0.1 at 2016-03-11 01:10:33 +0200
Processing by SimpleCart::CartsController#update as HTML
Parameters: {"utf8"=>"✓", "authenticity_token"=>"qvLiy7U1/hQ7QEPIgsHgnu814ICpwKHcQMWqI4cXsYNs4t/HLuPy4jI96qORhJnqrMOixSXgcMJKS1FC6gAfEg==", "Item_3"=>"4", "Bicycle_1"=>"5", "coupon"=>"", "commit"=>"Update"}
[1m[36mItem Load (0.2ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", 3]]
[1m[35mBicycle Load (0.1ms)[0m SELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "3"]]
[1m[35mCACHE (0.0ms)[0m SELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1 [["id", "1"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "3"]]
[1m[35mCACHE (0.0ms)[0m SELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1 [["id", "1"]]
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml within layouts/simple_cart/application (17.5ms)
Completed 200 OK in 40ms (Views: 38.4ms | ActiveRecord: 0.4ms)
Started GET "/simple_cart/cart/remove?id=Item_3" for 127.0.0.1 at 2016-03-11 01:10:42 +0200
Processing by SimpleCart::CartsController#remove as HTML
Parameters: {"id"=>"Item_3"}
[1m[36mBicycle Load (0.1ms)[0m [1mSELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mCACHE (0.0ms)[0m SELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1 [["id", "1"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1[0m [["id", "1"]]
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml within layouts/simple_cart/application (10.3ms)
Completed 200 OK in 23ms (Views: 22.6ms | ActiveRecord: 0.1ms)
Started PUT "/simple_cart/cart" for 127.0.0.1 at 2016-03-11 01:11:20 +0200
Processing by SimpleCart::CartsController#update as HTML
Parameters: {"utf8"=>"✓", "authenticity_token"=>"4dIRERyxC8+NM59TMiaNl6p05eoDLMT92IJh9H0UY94nwiwdh2cHOYRONjghY/Tj6YKnr48MFePSDJqVEAPNTw==", "Bicycle_1"=>"7", "coupon"=>"", "commit"=>"Update"}
[1m[35mBicycle Load (0.1ms)[0m SELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1[0m [["id", "1"]]
[1m[35mCACHE (0.0ms)[0m SELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1 [["id", "1"]]
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml within layouts/simple_cart/application (10.2ms)
Completed 200 OK in 24ms (Views: 23.6ms | ActiveRecord: 0.1ms)
Started GET "/bicycles" for 127.0.0.1 at 2016-03-11 01:12:18 +0200
Processing by BicyclesController#index as HTML
[1m[36mBicycle Load (0.2ms)[0m [1mSELECT "bicycles".* FROM "bicycles"[0m
Rendered bicycles/index.html.erb within layouts/application (2.3ms)
Completed 200 OK in 16ms (Views: 15.4ms | ActiveRecord: 0.2ms)
Started GET "/bicycles" for 127.0.0.1 at 2016-03-11 01:12:19 +0200
Processing by BicyclesController#index as HTML
[1m[35mBicycle Load (0.2ms)[0m SELECT "bicycles".* FROM "bicycles"
Rendered bicycles/index.html.erb within layouts/application (1.8ms)
Completed 200 OK in 18ms (Views: 17.0ms | ActiveRecord: 0.2ms)
Started GET "/bicycles/new" for 127.0.0.1 at 2016-03-11 01:12:21 +0200
Processing by BicyclesController#new as HTML
Rendered bicycles/_form.html.erb (3.5ms)
Rendered bicycles/new.html.erb within layouts/application (4.8ms)
Completed 200 OK in 18ms (Views: 17.5ms | ActiveRecord: 0.0ms)
Started POST "/bicycles" for 127.0.0.1 at 2016-03-11 01:12:26 +0200
Processing by BicyclesController#create as HTML
Parameters: {"utf8"=>"✓", "authenticity_token"=>"RSfRgiT3AuLNdsZ6pL3g4oX3a/b/Qs/hFkKRInygtaKDN+yOvyEOFMQLbxG3+JmWxgEps3NiHv8czGpDEbcbMw==", "bicycle"=>{"name"=>"zzzzzzzzzz", "price"=>"24", "qty"=>"11"}, "commit"=>"Create Bicycle"}
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
[1m[35mSQL (0.3ms)[0m INSERT INTO "bicycles" ("name", "price", "qty", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["name", "zzzzzzzzzz"], ["price", 24.0], ["qty", 11], ["created_at", "2016-03-10 23:12:26.584615"], ["updated_at", "2016-03-10 23:12:26.584615"]]
[1m[36m (71.9ms)[0m [1mcommit transaction[0m
Redirected to http://localhost:3000/bicycles/3
Completed 302 Found in 76ms (ActiveRecord: 72.2ms)
Started GET "/bicycles/3" for 127.0.0.1 at 2016-03-11 01:12:26 +0200
Processing by BicyclesController#show as HTML
Parameters: {"id"=>"3"}
[1m[35mBicycle Load (0.1ms)[0m SELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1 [["id", 3]]
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/_buy.html.haml (7.4ms)
Rendered bicycles/show.html.erb within layouts/application (8.9ms)
Completed 200 OK in 22ms (Views: 21.5ms | ActiveRecord: 0.1ms)
Started POST "/simple_cart/cart/3" for 127.0.0.1 at 2016-03-11 01:12:30 +0200
Processing by SimpleCart::CartsController#add as HTML
Parameters: {"utf8"=>"✓", "authenticity_token"=>"GCmOXFfBGygNv4qvnLHM19P/HLfDEjpYsAscq5Q95d3eObNQzBcX3gTCI8SP9LWjkAle8k8y60a6hefK+SpLTA==", "qty"=>"4", "klass"=>"Bicycle", "commit"=>"Add to cart", "item_id"=>"3"}
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-11 01:12:30 +0200
Processing by SimpleCart::CartsController#show as HTML
[1m[36mBicycle Load (0.1ms)[0m [1mSELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mBicycle Load (0.1ms)[0m SELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1 [["id", 3]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1[0m [["id", "1"]]
[1m[35mCACHE (0.0ms)[0m SELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1 [["id", "3"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1[0m [["id", "1"]]
[1m[35mCACHE (0.0ms)[0m SELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1 [["id", "3"]]
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml within layouts/simple_cart/application (11.5ms)
Completed 200 OK in 25ms (Views: 24.0ms | ActiveRecord: 0.3ms)
Started PUT "/simple_cart/cart" for 127.0.0.1 at 2016-03-11 01:12:33 +0200
Processing by SimpleCart::CartsController#update as HTML
Parameters: {"utf8"=>"✓", "authenticity_token"=>"qJlcCO83RnWWfhEzQ0ylM1K2gNEHua6PTXj/2GqODUJuiWEEdOFKg58DuFhQCdxHEUDClIuZf5FH9gS5B5mj0w==", "Bicycle_1"=>"7", "Bicycle_3"=>"8", "coupon"=>"", "commit"=>"Update"}
[1m[36mBicycle Load (0.2ms)[0m [1mSELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mBicycle Load (0.1ms)[0m SELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1 [["id", 3]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1[0m [["id", "1"]]
[1m[35mCACHE (0.0ms)[0m SELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1 [["id", "3"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1[0m [["id", "1"]]
[1m[35mCACHE (0.0ms)[0m SELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1 [["id", "3"]]
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml within layouts/simple_cart/application (14.4ms)
Completed 200 OK in 29ms (Views: 27.9ms | ActiveRecord: 0.3ms)
Started GET "/" for 127.0.0.1 at 2016-03-11 01:14:20 +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 (1.1ms)
Completed 200 OK in 4ms (Views: 4.0ms | ActiveRecord: 0.0ms)
Started GET "/simple_cart/cart" for 127.0.0.1 at 2016-03-11 01:14:27 +0200
Processing by SimpleCart::CartsController#show as HTML
[1m[36mBicycle Load (0.1ms)[0m [1mSELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mBicycle Load (0.1ms)[0m SELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1 [["id", 3]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1[0m [["id", "1"]]
[1m[35mCACHE (0.0ms)[0m SELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1 [["id", "3"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1[0m [["id", "1"]]
[1m[35mCACHE (0.0ms)[0m SELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1 [["id", "3"]]
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml within layouts/simple_cart/application (14.7ms)
Completed 200 OK in 27ms (Views: 26.6ms | ActiveRecord: 0.2ms)
Started GET "/simple_cart/cart" for 127.0.0.1 at 2016-03-11 01:14:29 +0200
Processing by SimpleCart::CartsController#show as HTML
[1m[36mBicycle Load (0.1ms)[0m [1mSELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mBicycle Load (0.1ms)[0m SELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1 [["id", 3]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1[0m [["id", "1"]]
[1m[35mCACHE (0.0ms)[0m SELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1 [["id", "3"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1[0m [["id", "1"]]
[1m[35mCACHE (0.0ms)[0m SELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1 [["id", "3"]]
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml within layouts/simple_cart/application (12.0ms)
Completed 200 OK in 37ms (Views: 35.7ms | ActiveRecord: 0.3ms)
Started GET "/assets/simple_cart/application.self-8f06a73c35179188914ab50e057157639fce1401c1cdca640ac9cec33746fc5b.js?body=1" for 127.0.0.1 at 2016-03-11 01:14:29 +0200
Started GET "/assets/simple_cart/application.self-2f12d59583468bdcee27c6046669f62a778d265fc91cf385e5d36e9189ac822e.css?body=1" for 127.0.0.1 at 2016-03-11 01:14:29 +0200
Started PUT "/simple_cart/cart" for 127.0.0.1 at 2016-03-11 01:14:36 +0200
Processing by SimpleCart::CartsController#update as HTML
Parameters: {"utf8"=>"✓", "authenticity_token"=>"1fB/QuxPYcEMOedMdVrYJF27N2KsYhbkG+4brhnP6n0T4EJOd5ltNwVETidmH6FQHk11JyBCx/oRYODPdNhE7A==", "Bicycle_1"=>"7", "Bicycle_3"=>"9", "coupon"=>"", "commit"=>"Update"}
[1m[36mBicycle Load (0.1ms)[0m [1mSELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mBicycle Load (0.1ms)[0m SELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1 [["id", 3]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1[0m [["id", "1"]]
[1m[35mCACHE (0.0ms)[0m SELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1 [["id", "3"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1[0m [["id", "1"]]
[1m[35mCACHE (0.0ms)[0m SELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1 [["id", "3"]]
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml within layouts/simple_cart/application (15.7ms)
Completed 200 OK in 28ms (Views: 27.4ms | ActiveRecord: 0.3ms)
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
Migrating to CreateCoupons (20160310231528)
[1m[35m (0.1ms)[0m begin transaction
[1m[36m (0.4ms)[0m [1mCREATE TABLE "coupons" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "code" varchar, "discount" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20160310231528"]]
[1m[36m (64.9ms)[0m [1mcommit transaction[0m
[1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
[1m[35mSQL (0.3ms)[0m INSERT INTO "coupons" ("code", "discount", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["code", "A2016"], ["discount", 30], ["created_at", "2016-03-10 23:16:19.340758"], ["updated_at", "2016-03-10 23:16:19.340758"]]
[1m[36m (84.7ms)[0m [1mcommit transaction[0m
Started PUT "/simple_cart/cart" for 127.0.0.1 at 2016-03-11 01:18:19 +0200
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
Processing by SimpleCart::CartsController#update as HTML
Parameters: {"utf8"=>"✓", "authenticity_token"=>"tcl8zh65CApVfteRL76mbYw5rUTXJhWarwSR/tdLPOBz2UHChW8E/FwDfvo8+98Zz8/vAVsGxISlimqfulyScQ==", "Bicycle_1"=>"7", "Bicycle_3"=>"9", "coupon"=>"", "commit"=>"Update"}
Completed 500 Internal Server Error in 2ms (ActiveRecord: 0.0ms)
NoMethodError (undefined method `coupon_class' for SimpleCart:Module):
/home/leksster/ror/Rubygarage/Amazon/simple_cart/app/models/cart.rb:62:in `discount'
/home/leksster/ror/Rubygarage/Amazon/simple_cart/app/models/cart.rb:58:in `update_books'
/home/leksster/ror/Rubygarage/Amazon/simple_cart/app/controllers/simple_cart/carts_controller.rb:29:in `update'
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 (6.4ms)
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 (19.1ms)
Started PUT "/simple_cart/cart" for 127.0.0.1 at 2016-03-11 01:18:28 +0200
[1m[36mActiveRecord::SchemaMigration Load (0.2ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
Processing by SimpleCart::CartsController#update as HTML
Parameters: {"utf8"=>"✓", "authenticity_token"=>"1fB/QuxPYcEMOedMdVrYJF27N2KsYhbkG+4brhnP6n0T4EJOd5ltNwVETidmH6FQHk11JyBCx/oRYODPdNhE7A==", "Bicycle_1"=>"7", "Bicycle_3"=>"9", "coupon"=>"", "commit"=>"Update"}
Completed 500 Internal Server Error in 11ms (ActiveRecord: 0.0ms)
NameError (uninitialized class variable @@item_class in SimpleCart):
/home/leksster/ror/Rubygarage/Amazon/simple_cart/lib/simple_cart.rb:7:in `coupon_class'
/home/leksster/ror/Rubygarage/Amazon/simple_cart/app/models/cart.rb:62:in `discount'
/home/leksster/ror/Rubygarage/Amazon/simple_cart/app/models/cart.rb:58:in `update_books'
/home/leksster/ror/Rubygarage/Amazon/simple_cart/app/controllers/simple_cart/carts_controller.rb:29:in `update'
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 (5.7ms)
Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (2.2ms)
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.0ms)
Started GET "/simple_cart/cart" for 127.0.0.1 at 2016-03-11 01:18:33 +0200
Processing by SimpleCart::CartsController#show as HTML
[1m[35mBicycle Load (0.2ms)[0m SELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mBicycle Load (0.1ms)[0m [1mSELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1[0m [["id", 3]]
[1m[35mCACHE (0.0ms)[0m SELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1 [["id", "1"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1[0m [["id", "3"]]
[1m[35mCACHE (0.0ms)[0m SELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1 [["id", "1"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1[0m [["id", "3"]]
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml within layouts/simple_cart/application (45.8ms)
Completed 200 OK in 227ms (Views: 225.6ms | ActiveRecord: 0.6ms)
Started PUT "/simple_cart/cart" for 127.0.0.1 at 2016-03-11 01:18:35 +0200
Processing by SimpleCart::CartsController#update as HTML
Parameters: {"utf8"=>"✓", "authenticity_token"=>"e4/W9ZRX5n4saMRsKTKlUcdbS1Vls316QzhASCUvfba9n+v5D4HqiCUVbQc6d9wlhK0JEOmTrGRJtrspSDjTJw==", "Bicycle_1"=>"7", "Bicycle_3"=>"9", "coupon"=>"", "commit"=>"Update"}
Completed 500 Internal Server Error in 1ms (ActiveRecord: 0.0ms)
NameError (uninitialized class variable @@item_class in SimpleCart):
/home/leksster/ror/Rubygarage/Amazon/simple_cart/lib/simple_cart.rb:7:in `coupon_class'
/home/leksster/ror/Rubygarage/Amazon/simple_cart/app/models/cart.rb:62:in `discount'
/home/leksster/ror/Rubygarage/Amazon/simple_cart/app/models/cart.rb:58:in `update_books'
/home/leksster/ror/Rubygarage/Amazon/simple_cart/app/controllers/simple_cart/carts_controller.rb:29:in `update'
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 (19.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 (4.2ms)
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 (2.7ms)
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 (37.0ms)
Started PUT "/simple_cart/cart" for 127.0.0.1 at 2016-03-11 01:18:48 +0200
Processing by SimpleCart::CartsController#update as HTML
Parameters: {"utf8"=>"✓", "authenticity_token"=>"e4/W9ZRX5n4saMRsKTKlUcdbS1Vls316QzhASCUvfba9n+v5D4HqiCUVbQc6d9wlhK0JEOmTrGRJtrspSDjTJw==", "Bicycle_1"=>"7", "Bicycle_3"=>"9", "coupon"=>"", "commit"=>"Update"}
Completed 500 Internal Server Error in 2ms (ActiveRecord: 0.0ms)
NameError (uninitialized class variable @@item_class in SimpleCart):
/home/leksster/ror/Rubygarage/Amazon/simple_cart/lib/simple_cart.rb:7:in `coupon_class'
/home/leksster/ror/Rubygarage/Amazon/simple_cart/app/models/cart.rb:62:in `discount'
/home/leksster/ror/Rubygarage/Amazon/simple_cart/app/models/cart.rb:58:in `update_books'
/home/leksster/ror/Rubygarage/Amazon/simple_cart/app/controllers/simple_cart/carts_controller.rb:29:in `update'
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.7ms)
Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (2.4ms)
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 (18.4ms)
Started GET "/simple_cart/cart" for 127.0.0.1 at 2016-03-11 01:18:52 +0200
Processing by SimpleCart::CartsController#show as HTML
[1m[35mBicycle Load (0.1ms)[0m SELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mBicycle Load (0.1ms)[0m [1mSELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1[0m [["id", 3]]
[1m[35mCACHE (0.0ms)[0m SELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1 [["id", "1"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1[0m [["id", "3"]]
[1m[35mCACHE (0.0ms)[0m SELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1 [["id", "1"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1[0m [["id", "3"]]
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml within layouts/simple_cart/application (13.4ms)
Completed 200 OK in 27ms (Views: 26.5ms | ActiveRecord: 0.3ms)
Started PUT "/simple_cart/cart" for 127.0.0.1 at 2016-03-11 01:18:54 +0200
Processing by SimpleCart::CartsController#update as HTML
Parameters: {"utf8"=>"✓", "authenticity_token"=>"vaAmVpuO8ZUH4HFL7YZUePHchx3chJbBiaYrol2o2Nh7sBtaAFj9Yw6d2CD+wy0MsirFWFCkR9+DKNDDML92SQ==", "Bicycle_1"=>"7", "Bicycle_3"=>"9", "coupon"=>"", "commit"=>"Update"}
Completed 500 Internal Server Error in 1ms (ActiveRecord: 0.0ms)
NameError (uninitialized class variable @@item_class in SimpleCart):
/home/leksster/ror/Rubygarage/Amazon/simple_cart/lib/simple_cart.rb:7:in `coupon_class'
/home/leksster/ror/Rubygarage/Amazon/simple_cart/app/models/cart.rb:62:in `discount'
/home/leksster/ror/Rubygarage/Amazon/simple_cart/app/models/cart.rb:58:in `update_books'
/home/leksster/ror/Rubygarage/Amazon/simple_cart/app/controllers/simple_cart/carts_controller.rb:29:in `update'
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.4ms)
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.5ms)
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 (18.0ms)
Started GET "/simple_cart/cart" for 127.0.0.1 at 2016-03-11 01:19:00 +0200
[1m[36mActiveRecord::SchemaMigration Load (0.2ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
Processing by SimpleCart::CartsController#show as HTML
[1m[35mBicycle Load (0.2ms)[0m SELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mBicycle Load (0.1ms)[0m [1mSELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1[0m [["id", 3]]
[1m[35mCACHE (0.0ms)[0m SELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1 [["id", "1"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1[0m [["id", "3"]]
[1m[35mCACHE (0.0ms)[0m SELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1 [["id", "1"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1[0m [["id", "3"]]
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml within layouts/simple_cart/application (38.4ms)
Completed 200 OK in 241ms (Views: 232.2ms | ActiveRecord: 0.7ms)
Started PUT "/simple_cart/cart" for 127.0.0.1 at 2016-03-11 01:19:02 +0200
Processing by SimpleCart::CartsController#update as HTML
Parameters: {"utf8"=>"✓", "authenticity_token"=>"sDyBNZR99eo/XE/N2txxium3k/7U8m7wrmoAAbijtZx2LLw5D6v5HDYh5qbJmQj+qkHRu1jSv+6k5Ptg1bQbDQ==", "Bicycle_1"=>"7", "Bicycle_3"=>"9", "coupon"=>"", "commit"=>"Update"}
[1m[35mCoupon Load (0.2ms)[0m SELECT "coupons".* FROM "coupons" WHERE "coupons"."code" = ? LIMIT 1 [["code", ""]]
[1m[36mBicycle Load (0.1ms)[0m [1mSELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mBicycle Load (0.0ms)[0m SELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1 [["id", 3]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1[0m [["id", "1"]]
[1m[35mCACHE (0.0ms)[0m SELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1 [["id", "3"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1[0m [["id", "1"]]
[1m[35mCACHE (0.0ms)[0m SELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1 [["id", "3"]]
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml within layouts/simple_cart/application (13.5ms)
Completed 200 OK in 31ms (Views: 26.9ms | ActiveRecord: 0.6ms)
Started PUT "/simple_cart/cart" for 127.0.0.1 at 2016-03-11 01:19:05 +0200
Processing by SimpleCart::CartsController#update as HTML
Parameters: {"utf8"=>"✓", "authenticity_token"=>"lUC21ikdhEPIlc8inFDA+GMcs9KyKfRkwszmojp1Y5ZTUIvassuItcHoZkmPFbmMIOrxlz4JJXrIQh3DV2LNBw==", "Bicycle_1"=>"7", "Bicycle_3"=>"11", "coupon"=>"", "commit"=>"Update"}
[1m[36mCoupon Load (0.2ms)[0m [1mSELECT "coupons".* FROM "coupons" WHERE "coupons"."code" = ? LIMIT 1[0m [["code", ""]]
[1m[35mBicycle Load (0.1ms)[0m SELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mBicycle Load (0.1ms)[0m [1mSELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1[0m [["id", 3]]
[1m[35mCACHE (0.0ms)[0m SELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1 [["id", "1"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1[0m [["id", "3"]]
[1m[35mCACHE (0.0ms)[0m SELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1 [["id", "1"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1[0m [["id", "3"]]
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml within layouts/simple_cart/application (14.8ms)
Completed 200 OK in 32ms (Views: 30.1ms | ActiveRecord: 0.4ms)
Started PUT "/simple_cart/cart" for 127.0.0.1 at 2016-03-11 01:19:07 +0200
Processing by SimpleCart::CartsController#update as HTML
Parameters: {"utf8"=>"✓", "authenticity_token"=>"4HUw5D227KgXWJvD9bXDbDA11QqQ77e6diaTgQ7li4QmZQ3opmDgXh4lMqjm8LoYc8OXTxzPZqR8qGjgY/IlFQ==", "Bicycle_1"=>"7", "Bicycle_3"=>"11", "coupon"=>"A2016", "commit"=>"Update"}
[1m[35mCoupon Load (0.1ms)[0m SELECT "coupons".* FROM "coupons" WHERE "coupons"."code" = ? LIMIT 1 [["code", "A2016"]]
[1m[36mBicycle Load (0.1ms)[0m [1mSELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mBicycle Load (0.1ms)[0m SELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1 [["id", 3]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1[0m [["id", "1"]]
[1m[35mCACHE (0.0ms)[0m SELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1 [["id", "3"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1[0m [["id", "1"]]
[1m[35mCACHE (0.0ms)[0m SELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1 [["id", "3"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1[0m [["id", "1"]]
[1m[35mCACHE (0.0ms)[0m SELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1 [["id", "3"]]
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml within layouts/simple_cart/application (12.9ms)
Completed 200 OK in 50ms (Views: 44.7ms | ActiveRecord: 0.5ms)
Started PUT "/simple_cart/cart" for 127.0.0.1 at 2016-03-11 01:19:16 +0200
Processing by SimpleCart::CartsController#update as HTML
Parameters: {"utf8"=>"✓", "authenticity_token"=>"NcxHVwFmX3zNmwlDi7HVcGXY5b7Y0js9Owi1GTd2HcDz3HpbmrBTisTmoCiY9KwEJi6n+1Ty6iMxhk54WmGzUQ==", "Bicycle_1"=>"5", "Bicycle_3"=>"11", "coupon"=>"", "commit"=>"Update"}
[1m[36mCoupon Load (0.1ms)[0m [1mSELECT "coupons".* FROM "coupons" WHERE "coupons"."code" = ? LIMIT 1[0m [["code", ""]]
[1m[35mBicycle Load (0.1ms)[0m SELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mBicycle Load (0.1ms)[0m [1mSELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1[0m [["id", 3]]
[1m[35mCACHE (0.0ms)[0m SELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1 [["id", "1"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1[0m [["id", "3"]]
[1m[35mCACHE (0.0ms)[0m SELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1 [["id", "1"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1[0m [["id", "3"]]
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml within layouts/simple_cart/application (23.9ms)
Completed 200 OK in 48ms (Views: 45.4ms | ActiveRecord: 0.5ms)
Started PUT "/simple_cart/cart" for 127.0.0.1 at 2016-03-11 01:19:19 +0200
Processing by SimpleCart::CartsController#update as HTML
Parameters: {"utf8"=>"✓", "authenticity_token"=>"gXsIkDRwVlsNiQ0CS20ax0TCUqB8jrl3EGTzk5ziQHBHazWcr6ZarQT0pGlYKGOzBzQQ5fCuaGka6gjy8fXu4Q==", "Bicycle_1"=>"5", "Bicycle_3"=>"11", "coupon"=>"A2016", "commit"=>"Update"}
[1m[35mCoupon Load (0.1ms)[0m SELECT "coupons".* FROM "coupons" WHERE "coupons"."code" = ? LIMIT 1 [["code", "A2016"]]
[1m[36mBicycle Load (0.4ms)[0m [1mSELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mBicycle Load (0.1ms)[0m SELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1 [["id", 3]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1[0m [["id", "1"]]
[1m[35mCACHE (0.0ms)[0m SELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1 [["id", "3"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1[0m [["id", "1"]]
[1m[35mCACHE (0.0ms)[0m SELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1 [["id", "3"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1[0m [["id", "1"]]
[1m[35mCACHE (0.0ms)[0m SELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1 [["id", "3"]]
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml within layouts/simple_cart/application (15.9ms)
Completed 200 OK in 45ms (Views: 43.2ms | ActiveRecord: 0.6ms)
Started PUT "/simple_cart/cart" for 127.0.0.1 at 2016-03-11 01:19:59 +0200
Processing by SimpleCart::CartsController#update as HTML
Parameters: {"utf8"=>"✓", "authenticity_token"=>"gXsIkDRwVlsNiQ0CS20ax0TCUqB8jrl3EGTzk5ziQHBHazWcr6ZarQT0pGlYKGOzBzQQ5fCuaGka6gjy8fXu4Q==", "Bicycle_1"=>"5", "Bicycle_3"=>"11", "coupon"=>"A2016", "commit"=>"Update"}
[1m[36mCoupon Load (0.1ms)[0m [1mSELECT "coupons".* FROM "coupons" WHERE "coupons"."code" = ? LIMIT 1[0m [["code", "A2016"]]
[1m[35mBicycle Load (0.1ms)[0m SELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mBicycle Load (0.1ms)[0m [1mSELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1[0m [["id", 3]]
[1m[35mCACHE (0.0ms)[0m SELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1 [["id", "1"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1[0m [["id", "3"]]
[1m[35mCACHE (0.0ms)[0m SELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1 [["id", "1"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1[0m [["id", "3"]]
[1m[35mCACHE (0.0ms)[0m SELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1 [["id", "1"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1[0m [["id", "3"]]
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml within layouts/simple_cart/application (32.0ms)
Completed 200 OK in 47ms (Views: 44.1ms | ActiveRecord: 0.4ms)
Started GET "/assets/simple_cart/application.self-8f06a73c35179188914ab50e057157639fce1401c1cdca640ac9cec33746fc5b.js?body=1" for 127.0.0.1 at 2016-03-11 01:19:59 +0200
Started GET "/assets/simple_cart/application.self-2f12d59583468bdcee27c6046669f62a778d265fc91cf385e5d36e9189ac822e.css?body=1" for 127.0.0.1 at 2016-03-11 01:19:59 +0200
Started GET "/simple_cart/cart/remove?id=Bicycle_1" for 127.0.0.1 at 2016-03-11 01:20:02 +0200
Processing by SimpleCart::CartsController#remove as HTML
Parameters: {"id"=>"Bicycle_1"}
[1m[35mBicycle Load (0.1ms)[0m SELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1 [["id", 3]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1[0m [["id", "3"]]
[1m[35mCACHE (0.0ms)[0m SELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1 [["id", "3"]]
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml within layouts/simple_cart/application (10.4ms)
Completed 200 OK in 22ms (Views: 21.5ms | ActiveRecord: 0.1ms)
Started PUT "/simple_cart/cart" for 127.0.0.1 at 2016-03-11 01:20:05 +0200
Processing by SimpleCart::CartsController#update as HTML
Parameters: {"utf8"=>"✓", "authenticity_token"=>"Gz2vbnKr1qHVC8KVmzCsieym92aYcHT/lX2JWW0hoXLdLZJi6X3aV9x2a/6IddX9r1C1IxRQpeGf83I4ADYP4w==", "Bicycle_3"=>"8", "coupon"=>"", "commit"=>"Update"}
[1m[36mCoupon Load (0.1ms)[0m [1mSELECT "coupons".* FROM "coupons" WHERE "coupons"."code" = ? LIMIT 1[0m [["code", ""]]
[1m[35mBicycle Load (0.2ms)[0m SELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1 [["id", 3]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1[0m [["id", "3"]]
[1m[35mCACHE (0.0ms)[0m SELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1 [["id", "3"]]
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml within layouts/simple_cart/application (12.5ms)
Completed 200 OK in 29ms (Views: 27.2ms | ActiveRecord: 0.4ms)
Started GET "/simple_cart/cart/clear" for 127.0.0.1 at 2016-03-11 01:20:09 +0200
Processing by SimpleCart::CartsController#clear as HTML
Redirected to http://localhost:3000/simple_cart/cart
Completed 302 Found in 5ms (ActiveRecord: 0.0ms)
Started GET "/simple_cart/cart" for 127.0.0.1 at 2016-03-11 01:20:09 +0200
Processing by SimpleCart::CartsController#show as HTML
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml within layouts/simple_cart/application (3.9ms)
Completed 200 OK in 18ms (Views: 17.1ms | ActiveRecord: 0.0ms)
Started GET "/simple_cart/" for 127.0.0.1 at 2016-03-11 01:20:17 +0200
Processing by SimpleCart::CartsController#show as HTML
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml within layouts/simple_cart/application (5.2ms)
Completed 200 OK in 22ms (Views: 21.1ms | ActiveRecord: 0.0ms)
Started GET "/items" for 127.0.0.1 at 2016-03-11 01:20:20 +0200
Processing by ItemsController#index as HTML
[1m[36mItem Load (0.3ms)[0m [1mSELECT "items".* FROM "items"[0m
Rendered items/index.html.erb within layouts/application (7.7ms)
Completed 200 OK in 31ms (Views: 29.1ms | ActiveRecord: 0.6ms)
Started GET "/items" for 127.0.0.1 at 2016-03-11 01:20:20 +0200
Processing by ItemsController#index as HTML
[1m[35mItem Load (0.2ms)[0m SELECT "items".* FROM "items"
Rendered items/index.html.erb within layouts/application (2.0ms)
Completed 200 OK in 18ms (Views: 18.0ms | ActiveRecord: 0.2ms)
Started GET "/items/2" for 127.0.0.1 at 2016-03-11 01:20:22 +0200
Processing by ItemsController#show as HTML
Parameters: {"id"=>"2"}
[1m[36mItem Load (0.3ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", 2]]
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/_buy.html.haml (11.1ms)
Rendered items/show.html.erb within layouts/application (14.9ms)
Completed 200 OK in 28ms (Views: 25.8ms | ActiveRecord: 0.3ms)
Started POST "/simple_cart/cart/2" for 127.0.0.1 at 2016-03-11 01:20:24 +0200
Processing by SimpleCart::CartsController#add as HTML
Parameters: {"utf8"=>"✓", "authenticity_token"=>"BIdxKtsRzM8Q4G4h3thJQslpvmLYdvCiZ3Aq5SeT+jPCl0wmQMfAORmdx0rNnTA2ip/8J1RWIbxt/tGESoRUog==", "qty"=>"4", "klass"=>"Item", "commit"=>"Add to cart", "item_id"=>"2"}
Completed 500 Internal Server Error in 1ms (ActiveRecord: 0.0ms)
NoMethodError (undefined method `item_class=' for SimpleCart:Module):
/home/leksster/ror/Rubygarage/Amazon/simple_cart/app/controllers/simple_cart/carts_controller.rb:24: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.7ms)
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.5ms)
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 (18.5ms)
Started POST "/simple_cart/cart/2" for 127.0.0.1 at 2016-03-11 01:20:52 +0200
Processing by SimpleCart::CartsController#add as HTML
Parameters: {"utf8"=>"✓", "authenticity_token"=>"BIdxKtsRzM8Q4G4h3thJQslpvmLYdvCiZ3Aq5SeT+jPCl0wmQMfAORmdx0rNnTA2ip/8J1RWIbxt/tGESoRUog==", "qty"=>"5", "klass"=>"Item", "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-11 01:20:52 +0200
Processing by SimpleCart::CartsController#show as HTML
[1m[35mItem Load (0.2ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 2]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "2"]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "2"]]
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml within layouts/simple_cart/application (17.3ms)
Completed 200 OK in 37ms (Views: 35.3ms | ActiveRecord: 0.6ms)
Started PUT "/simple_cart/cart" for 127.0.0.1 at 2016-03-11 01:20:56 +0200
Processing by SimpleCart::CartsController#update as HTML
Parameters: {"utf8"=>"✓", "authenticity_token"=>"LNW8RLMdQRtsctBJrOZUq7aNJAgktbJc9MS7oTAdfvzqxYFIKMtN7WUPeSK/oy3f9XtmTaiVY0L+SkDAXQrQbQ==", "Item_2"=>"8", "coupon"=>"", "commit"=>"Update"}
[1m[36mCoupon Load (0.3ms)[0m [1mSELECT "coupons".* FROM "coupons" WHERE "coupons"."code" = ? LIMIT 1[0m [["code", ""]]
[1m[35mItem Load (0.1ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 2]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "2"]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "2"]]
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml within layouts/simple_cart/application (10.2ms)
Completed 200 OK in 29ms (Views: 24.7ms | ActiveRecord: 0.7ms)
Started PUT "/simple_cart/cart" for 127.0.0.1 at 2016-03-11 01:20:59 +0200
Processing by SimpleCart::CartsController#update as HTML
Parameters: {"utf8"=>"✓", "authenticity_token"=>"diQhMZFX9wQDnv658HwOopgqqJq+/pveuO171w2IBt+wNBw9CoH78grjV9LjOXfW29zq3zLeSsCyY4C2YJ+oTg==", "Item_2"=>"8", "coupon"=>"A2016", "commit"=>"Update"}
[1m[36mCoupon Load (0.1ms)[0m [1mSELECT "coupons".* FROM "coupons" WHERE "coupons"."code" = ? LIMIT 1[0m [["code", "A2016"]]
[1m[35mItem Load (0.1ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 2]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "2"]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "2"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "2"]]
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml within layouts/simple_cart/application (10.1ms)
Completed 200 OK in 28ms (Views: 22.2ms | ActiveRecord: 0.4ms)
Started PUT "/simple_cart/cart" for 127.0.0.1 at 2016-03-11 01:22:52 +0200
Processing by SimpleCart::CartsController#update as HTML
Parameters: {"utf8"=>"✓", "authenticity_token"=>"diQhMZFX9wQDnv658HwOopgqqJq+/pveuO171w2IBt+wNBw9CoH78grjV9LjOXfW29zq3zLeSsCyY4C2YJ+oTg==", "Item_2"=>"8", "coupon"=>"A2016", "commit"=>"Update"}
[1m[35mCoupon Load (0.2ms)[0m SELECT "coupons".* FROM "coupons" WHERE "coupons"."code" = ? LIMIT 1 [["code", "A2016"]]
[1m[36mItem Load (0.1ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", 2]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "2"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "2"]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "2"]]
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml within layouts/simple_cart/application (8.2ms)
Completed 200 OK in 36ms (Views: 23.9ms | ActiveRecord: 1.1ms)
Started GET "/assets/simple_cart/application.self-2f12d59583468bdcee27c6046669f62a778d265fc91cf385e5d36e9189ac822e.css?body=1" for 127.0.0.1 at 2016-03-11 01:22:52 +0200
Started GET "/assets/simple_cart/application.self-8f06a73c35179188914ab50e057157639fce1401c1cdca640ac9cec33746fc5b.js?body=1" for 127.0.0.1 at 2016-03-11 01:22:52 +0200
Started PUT "/simple_cart/cart" for 127.0.0.1 at 2016-03-11 01:22:54 +0200
Processing by SimpleCart::CartsController#update as HTML
Parameters: {"utf8"=>"✓", "authenticity_token"=>"N01pjjMHx2g41vR7tMc/GYXTZoK5kHFbjkZ/CCFJ66vxXVSCqNHLnjGrXRCngkZtxiUkxzWwoEWEyIRpTF5FOg==", "Item_2"=>"9", "coupon"=>"", "commit"=>"Update"}
[1m[36mCoupon Load (0.1ms)[0m [1mSELECT "coupons".* FROM "coupons" WHERE "coupons"."code" = ? LIMIT 1[0m [["code", ""]]
[1m[35mItem Load (0.2ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 2]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "2"]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "2"]]
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml within layouts/simple_cart/application (10.6ms)
Completed 200 OK in 27ms (Views: 25.4ms | ActiveRecord: 0.4ms)
Started PUT "/simple_cart/cart" for 127.0.0.1 at 2016-03-11 01:22:57 +0200
Processing by SimpleCart::CartsController#update as HTML
Parameters: {"utf8"=>"✓", "authenticity_token"=>"N01pjjMHx2g41vR7tMc/GYXTZoK5kHFbjkZ/CCFJ66vxXVSCqNHLnjGrXRCngkZtxiUkxzWwoEWEyIRpTF5FOg==", "Item_2"=>"9", "coupon"=>"", "commit"=>"Update"}
[1m[36mCoupon Load (0.1ms)[0m [1mSELECT "coupons".* FROM "coupons" WHERE "coupons"."code" = ? LIMIT 1[0m [["code", ""]]
[1m[35mItem Load (0.1ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 2]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "2"]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "2"]]
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml within layouts/simple_cart/application (10.6ms)
Completed 200 OK in 21ms (Views: 20.5ms | ActiveRecord: 0.2ms)
Started GET "/assets/simple_cart/application.self-2f12d59583468bdcee27c6046669f62a778d265fc91cf385e5d36e9189ac822e.css?body=1" for 127.0.0.1 at 2016-03-11 01:22:57 +0200
Started GET "/assets/simple_cart/application.self-8f06a73c35179188914ab50e057157639fce1401c1cdca640ac9cec33746fc5b.js?body=1" for 127.0.0.1 at 2016-03-11 01:22:57 +0200
Started PUT "/simple_cart/cart" for 127.0.0.1 at 2016-03-11 01:23:02 +0200
[1m[36mActiveRecord::SchemaMigration Load (0.2ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
Processing by SimpleCart::CartsController#update as HTML
Parameters: {"utf8"=>"✓", "authenticity_token"=>"bXisCbsWzO/NBTWNTsqZOpQkT2gudZ4+ljp/FEVookiraJEFIMDAGcR4nOZdj+BO19INLaJVTyCctIR1KH8M2Q==", "Item_2"=>"10", "coupon"=>"", "commit"=>"Update"}
Completed 500 Internal Server Error in 12ms (ActiveRecord: 0.0ms)
NameError (uninitialized constant Couposn):
activesupport (4.2.5.2) lib/active_support/inflector/methods.rb:261:in `const_get'
activesupport (4.2.5.2) lib/active_support/inflector/methods.rb:261:in `block in constantize'
activesupport (4.2.5.2) lib/active_support/inflector/methods.rb:259:in `each'
activesupport (4.2.5.2) lib/active_support/inflector/methods.rb:259:in `inject'
activesupport (4.2.5.2) lib/active_support/inflector/methods.rb:259:in `constantize'
activesupport (4.2.5.2) lib/active_support/core_ext/string/inflections.rb:66:in `constantize'
/home/leksster/ror/Rubygarage/Amazon/simple_cart/lib/simple_cart.rb:7:in `coupon_class'
/home/leksster/ror/Rubygarage/Amazon/simple_cart/app/models/cart.rb:62:in `discount'
/home/leksster/ror/Rubygarage/Amazon/simple_cart/app/models/cart.rb:58:in `update_books'
/home/leksster/ror/Rubygarage/Amazon/simple_cart/app/controllers/simple_cart/carts_controller.rb:28:in `update'
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 (6.1ms)
Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (2.2ms)
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.2ms)
Started GET "/simple_cart/cart" for 127.0.0.1 at 2016-03-11 01:23:49 +0200
Processing by SimpleCart::CartsController#show as HTML
[1m[35mItem Load (0.2ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 2]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "2"]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "2"]]
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml within layouts/simple_cart/application (43.5ms)
Completed 200 OK in 204ms (Views: 203.1ms | ActiveRecord: 0.8ms)
Started PUT "/simple_cart/cart" for 127.0.0.1 at 2016-03-11 01:23:51 +0200
Processing by SimpleCart::CartsController#update as HTML
Parameters: {"utf8"=>"✓", "authenticity_token"=>"pkb6MUAVKBsWmyjrXB5/zlx2+ravIW4u5QZzLA3JrI1gVsc928Mk7R/mgYBPWwa6H4C48yMBvzDviIhNYN4CHA==", "Item_2"=>"9", "coupon"=>"", "commit"=>"Update"}
Completed 500 Internal Server Error in 1ms (ActiveRecord: 0.0ms)
NameError (uninitialized constant Couposn):
activesupport (4.2.5.2) lib/active_support/inflector/methods.rb:261:in `const_get'
activesupport (4.2.5.2) lib/active_support/inflector/methods.rb:261:in `block in constantize'
activesupport (4.2.5.2) lib/active_support/inflector/methods.rb:259:in `each'
activesupport (4.2.5.2) lib/active_support/inflector/methods.rb:259:in `inject'
activesupport (4.2.5.2) lib/active_support/inflector/methods.rb:259:in `constantize'
activesupport (4.2.5.2) lib/active_support/core_ext/string/inflections.rb:66:in `constantize'
/home/leksster/ror/Rubygarage/Amazon/simple_cart/lib/simple_cart.rb:7:in `coupon_class'
/home/leksster/ror/Rubygarage/Amazon/simple_cart/app/models/cart.rb:62:in `discount'
/home/leksster/ror/Rubygarage/Amazon/simple_cart/app/models/cart.rb:58:in `update_books'
/home/leksster/ror/Rubygarage/Amazon/simple_cart/app/controllers/simple_cart/carts_controller.rb:28:in `update'
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 (9.1ms)
Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (6.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 (1.7ms)
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 (29.3ms)
Started GET "/simple_cart/cart" for 127.0.0.1 at 2016-03-11 01:24:02 +0200
[1m[36mActiveRecord::SchemaMigration Load (0.2ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
Processing by SimpleCart::CartsController#show as HTML
[1m[35mItem Load (0.2ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 2]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "2"]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "2"]]
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml within layouts/simple_cart/application (40.5ms)
Completed 200 OK in 239ms (Views: 229.4ms | ActiveRecord: 0.6ms)
Started GET "/assets/simple_cart/application.self-2f12d59583468bdcee27c6046669f62a778d265fc91cf385e5d36e9189ac822e.css?body=1" for 127.0.0.1 at 2016-03-11 01:24:02 +0200
Started GET "/assets/simple_cart/application.self-8f06a73c35179188914ab50e057157639fce1401c1cdca640ac9cec33746fc5b.js?body=1" for 127.0.0.1 at 2016-03-11 01:24:02 +0200
Started PUT "/simple_cart/cart" for 127.0.0.1 at 2016-03-11 01:24:04 +0200
Processing by SimpleCart::CartsController#update as HTML
Parameters: {"utf8"=>"✓", "authenticity_token"=>"s+yafHrUV5dB3eb7Nu8EeI2sCptjBhRi51vWNv9JV551/Kdw4QJbYUigT5Alqn0MzlpI3u8mxXzt1S1Xkl75Dw==", "Item_2"=>"8", "coupon"=>"", "commit"=>"Update"}
[1m[36mBicycle Load (0.3ms)[0m [1mSELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."code" = '' LIMIT 1[0m
Completed 500 Internal Server Error in 4ms (ActiveRecord: 0.6ms)
ActiveRecord::StatementInvalid (SQLite3::SQLException: no such column: bicycles.code: SELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."code" = '' LIMIT 1):
sqlite3 (1.3.11) lib/sqlite3/database.rb:91:in `initialize'
sqlite3 (1.3.11) lib/sqlite3/database.rb:91:in `new'
sqlite3 (1.3.11) lib/sqlite3/database.rb:91:in `prepare'
activerecord (4.2.5.2) lib/active_record/connection_adapters/sqlite3_adapter.rb:296:in `block in exec_query'
activerecord (4.2.5.2) lib/active_record/connection_adapters/abstract_adapter.rb:472:in `block in log'
activesupport (4.2.5.2) lib/active_support/notifications/instrumenter.rb:20:in `instrument'
activerecord (4.2.5.2) lib/active_record/connection_adapters/abstract_adapter.rb:466:in `log'
activerecord (4.2.5.2) lib/active_record/connection_adapters/sqlite3_adapter.rb:293:in `exec_query'
activerecord (4.2.5.2) lib/active_record/connection_adapters/abstract/database_statements.rb:355:in `select'
activerecord (4.2.5.2) lib/active_record/connection_adapters/abstract/database_statements.rb:32:in `select_all'
activerecord (4.2.5.2) lib/active_record/connection_adapters/abstract/query_cache.rb:68:in `block in select_all'
activerecord (4.2.5.2) lib/active_record/connection_adapters/abstract/query_cache.rb:83:in `cache_sql'
activerecord (4.2.5.2) lib/active_record/connection_adapters/abstract/query_cache.rb:68:in `select_all'
activerecord (4.2.5.2) lib/active_record/querying.rb:39:in `find_by_sql'
activerecord (4.2.5.2) lib/active_record/relation.rb:639:in `exec_queries'
activerecord (4.2.5.2) lib/active_record/relation.rb:515:in `load'
activerecord (4.2.5.2) lib/active_record/relation.rb:243:in `to_a'
activerecord (4.2.5.2) lib/active_record/relation/finder_methods.rb:475:in `find_take'
activerecord (4.2.5.2) lib/active_record/relation/finder_methods.rb:105:in `take'
activerecord (4.2.5.2) lib/active_record/relation/finder_methods.rb:84:in `find_by'
activerecord (4.2.5.2) lib/active_record/querying.rb:7:in `find_by'
activerecord (4.2.5.2) lib/active_record/core.rb:173:in `find_by'
/home/leksster/ror/Rubygarage/Amazon/simple_cart/app/models/cart.rb:62:in `discount'
/home/leksster/ror/Rubygarage/Amazon/simple_cart/app/models/cart.rb:58:in `update_books'
/home/leksster/ror/Rubygarage/Amazon/simple_cart/app/controllers/simple_cart/carts_controller.rb:28:in `update'
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 (5.7ms)
Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (3.0ms)
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 (20.0ms)
Started PUT "/simple_cart/cart" for 127.0.0.1 at 2016-03-11 01:24:51 +0200
Processing by SimpleCart::CartsController#update as HTML
Parameters: {"utf8"=>"✓", "authenticity_token"=>"s+yafHrUV5dB3eb7Nu8EeI2sCptjBhRi51vWNv9JV551/Kdw4QJbYUigT5Alqn0MzlpI3u8mxXzt1S1Xkl75Dw==", "Item_2"=>"8", "coupon"=>"", "commit"=>"Update"}
[1m[35mItem Load (0.1ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 2]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "2"]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "2"]]
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml within layouts/simple_cart/application (15.3ms)
Completed 200 OK in 31ms (Views: 29.1ms | ActiveRecord: 0.6ms)
Started GET "/assets/simple_cart/application.self-8f06a73c35179188914ab50e057157639fce1401c1cdca640ac9cec33746fc5b.js?body=1" for 127.0.0.1 at 2016-03-11 01:24:51 +0200
Started PUT "/simple_cart/cart" for 127.0.0.1 at 2016-03-11 01:24:55 +0200
Processing by SimpleCart::CartsController#update as HTML
Parameters: {"utf8"=>"✓", "authenticity_token"=>"A14qKmPXw97eSe3DL3gT5S1tbUG2wRz0TQPJ1thOOcnFThcm+AHPKNc0RKg8PWqRbpsvBDrhzepHjTK3tVmXWA==", "Item_2"=>"10", "coupon"=>"", "commit"=>"Update"}
[1m[36mItem Load (0.1ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", 2]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "2"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "2"]]
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml within layouts/simple_cart/application (9.3ms)
Completed 200 OK in 25ms (Views: 24.4ms | ActiveRecord: 0.1ms)
Started PUT "/simple_cart/cart" for 127.0.0.1 at 2016-03-11 01:26:55 +0200
Processing by SimpleCart::CartsController#update as HTML
Parameters: {"utf8"=>"✓", "authenticity_token"=>"A14qKmPXw97eSe3DL3gT5S1tbUG2wRz0TQPJ1thOOcnFThcm+AHPKNc0RKg8PWqRbpsvBDrhzepHjTK3tVmXWA==", "Item_2"=>"10", "coupon"=>"", "commit"=>"Update"}
[1m[35mBicycle Load (0.3ms)[0m SELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."code" = '' LIMIT 1
Completed 500 Internal Server Error in 6ms (ActiveRecord: 0.9ms)
ActiveRecord::StatementInvalid (SQLite3::SQLException: no such column: bicycles.code: SELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."code" = '' LIMIT 1):
sqlite3 (1.3.11) lib/sqlite3/database.rb:91:in `initialize'
sqlite3 (1.3.11) lib/sqlite3/database.rb:91:in `new'
sqlite3 (1.3.11) lib/sqlite3/database.rb:91:in `prepare'
activerecord (4.2.5.2) lib/active_record/connection_adapters/sqlite3_adapter.rb:296:in `block in exec_query'
activerecord (4.2.5.2) lib/active_record/connection_adapters/abstract_adapter.rb:472:in `block in log'
activesupport (4.2.5.2) lib/active_support/notifications/instrumenter.rb:20:in `instrument'
activerecord (4.2.5.2) lib/active_record/connection_adapters/abstract_adapter.rb:466:in `log'
activerecord (4.2.5.2) lib/active_record/connection_adapters/sqlite3_adapter.rb:293:in `exec_query'
activerecord (4.2.5.2) lib/active_record/connection_adapters/abstract/database_statements.rb:355:in `select'
activerecord (4.2.5.2) lib/active_record/connection_adapters/abstract/database_statements.rb:32:in `select_all'
activerecord (4.2.5.2) lib/active_record/connection_adapters/abstract/query_cache.rb:68:in `block in select_all'
activerecord (4.2.5.2) lib/active_record/connection_adapters/abstract/query_cache.rb:83:in `cache_sql'
activerecord (4.2.5.2) lib/active_record/connection_adapters/abstract/query_cache.rb:68:in `select_all'
activerecord (4.2.5.2) lib/active_record/querying.rb:39:in `find_by_sql'
activerecord (4.2.5.2) lib/active_record/relation.rb:639:in `exec_queries'
activerecord (4.2.5.2) lib/active_record/relation.rb:515:in `load'
activerecord (4.2.5.2) lib/active_record/relation.rb:243:in `to_a'
activerecord (4.2.5.2) lib/active_record/relation/finder_methods.rb:475:in `find_take'
activerecord (4.2.5.2) lib/active_record/relation/finder_methods.rb:105:in `take'
activerecord (4.2.5.2) lib/active_record/relation/finder_methods.rb:84:in `find_by'
activerecord (4.2.5.2) lib/active_record/querying.rb:7:in `find_by'
activerecord (4.2.5.2) lib/active_record/core.rb:173:in `find_by'
/home/leksster/ror/Rubygarage/Amazon/simple_cart/app/models/cart.rb:66:in `discount'
/home/leksster/ror/Rubygarage/Amazon/simple_cart/app/models/cart.rb:58:in `update_books'
/home/leksster/ror/Rubygarage/Amazon/simple_cart/app/controllers/simple_cart/carts_controller.rb:28:in `update'
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 (6.3ms)
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 (19.2ms)
Started GET "/simple_cart/cart" for 127.0.0.1 at 2016-03-11 01:27:01 +0200
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
Processing by SimpleCart::CartsController#show as HTML
[1m[35mItem Load (0.2ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 2]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "2"]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "2"]]
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml within layouts/simple_cart/application (34.4ms)
Completed 200 OK in 239ms (Views: 230.0ms | ActiveRecord: 0.5ms)
Started PUT "/simple_cart/cart" for 127.0.0.1 at 2016-03-11 01:27:04 +0200
Processing by SimpleCart::CartsController#update as HTML
Parameters: {"utf8"=>"✓", "authenticity_token"=>"/3YWm0f2KYcwGCWIHH+EYCH79F1ukEb6J468mVf6MP05ZiuX3CAlcTlljOMPOv0UYg22GOKwl+QtAEf4Ou2ebA==", "Item_2"=>"9", "coupon"=>"", "commit"=>"Update"}
[1m[36mBicycle Load (0.4ms)[0m [1mSELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."code" = '' LIMIT 1[0m
Completed 500 Internal Server Error in 4ms (ActiveRecord: 0.6ms)
ActiveRecord::StatementInvalid (SQLite3::SQLException: no such column: bicycles.code: SELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."code" = '' LIMIT 1):
sqlite3 (1.3.11) lib/sqlite3/database.rb:91:in `initialize'
sqlite3 (1.3.11) lib/sqlite3/database.rb:91:in `new'
sqlite3 (1.3.11) lib/sqlite3/database.rb:91:in `prepare'
activerecord (4.2.5.2) lib/active_record/connection_adapters/sqlite3_adapter.rb:296:in `block in exec_query'
activerecord (4.2.5.2) lib/active_record/connection_adapters/abstract_adapter.rb:472:in `block in log'
activesupport (4.2.5.2) lib/active_support/notifications/instrumenter.rb:20:in `instrument'
activerecord (4.2.5.2) lib/active_record/connection_adapters/abstract_adapter.rb:466:in `log'
activerecord (4.2.5.2) lib/active_record/connection_adapters/sqlite3_adapter.rb:293:in `exec_query'
activerecord (4.2.5.2) lib/active_record/connection_adapters/abstract/database_statements.rb:355:in `select'
activerecord (4.2.5.2) lib/active_record/connection_adapters/abstract/database_statements.rb:32:in `select_all'
activerecord (4.2.5.2) lib/active_record/connection_adapters/abstract/query_cache.rb:68:in `block in select_all'
activerecord (4.2.5.2) lib/active_record/connection_adapters/abstract/query_cache.rb:83:in `cache_sql'
activerecord (4.2.5.2) lib/active_record/connection_adapters/abstract/query_cache.rb:68:in `select_all'
activerecord (4.2.5.2) lib/active_record/querying.rb:39:in `find_by_sql'
activerecord (4.2.5.2) lib/active_record/relation.rb:639:in `exec_queries'
activerecord (4.2.5.2) lib/active_record/relation.rb:515:in `load'
activerecord (4.2.5.2) lib/active_record/relation.rb:243:in `to_a'
activerecord (4.2.5.2) lib/active_record/relation/finder_methods.rb:475:in `find_take'
activerecord (4.2.5.2) lib/active_record/relation/finder_methods.rb:105:in `take'
activerecord (4.2.5.2) lib/active_record/relation/finder_methods.rb:84:in `find_by'
activerecord (4.2.5.2) lib/active_record/querying.rb:7:in `find_by'
activerecord (4.2.5.2) lib/active_record/core.rb:173:in `find_by'
/home/leksster/ror/Rubygarage/Amazon/simple_cart/app/models/cart.rb:66:in `discount'
/home/leksster/ror/Rubygarage/Amazon/simple_cart/app/models/cart.rb:58:in `update_books'
/home/leksster/ror/Rubygarage/Amazon/simple_cart/app/controllers/simple_cart/carts_controller.rb:28:in `update'
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 (5.4ms)
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 (1.4ms)
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.8ms)
Started GET "/simple_cart/cart" for 127.0.0.1 at 2016-03-11 01:27:20 +0200
Processing by SimpleCart::CartsController#show as HTML
[1m[35mItem Load (0.3ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 2]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "2"]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "2"]]
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml within layouts/simple_cart/application (15.4ms)
Completed 200 OK in 31ms (Views: 28.0ms | ActiveRecord: 1.1ms)
Started GET "/assets/simple_cart/application.self-8f06a73c35179188914ab50e057157639fce1401c1cdca640ac9cec33746fc5b.js?body=1" for 127.0.0.1 at 2016-03-11 01:27:20 +0200
Started GET "/assets/simple_cart/application.self-2f12d59583468bdcee27c6046669f62a778d265fc91cf385e5d36e9189ac822e.css?body=1" for 127.0.0.1 at 2016-03-11 01:27:21 +0200
Started PUT "/simple_cart/cart" for 127.0.0.1 at 2016-03-11 01:27:23 +0200
Processing by SimpleCart::CartsController#update as HTML
Parameters: {"utf8"=>"✓", "authenticity_token"=>"0ovbE9VMhYZW/X+5XTSNQaPzkiLFgUnbMW7SvWLq34IUm+YfTpqJcF+A1tJOcfQ14AXQZ0mhmMU74CncD/1xEw==", "Item_2"=>"12", "coupon"=>"", "commit"=>"Update"}
[1m[36mBicycle Load (0.2ms)[0m [1mSELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."code" = '' LIMIT 1[0m
Completed 500 Internal Server Error in 4ms (ActiveRecord: 0.4ms)
ActiveRecord::StatementInvalid (SQLite3::SQLException: no such column: bicycles.code: SELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."code" = '' LIMIT 1):
sqlite3 (1.3.11) lib/sqlite3/database.rb:91:in `initialize'
sqlite3 (1.3.11) lib/sqlite3/database.rb:91:in `new'
sqlite3 (1.3.11) lib/sqlite3/database.rb:91:in `prepare'
activerecord (4.2.5.2) lib/active_record/connection_adapters/sqlite3_adapter.rb:296:in `block in exec_query'
activerecord (4.2.5.2) lib/active_record/connection_adapters/abstract_adapter.rb:472:in `block in log'
activesupport (4.2.5.2) lib/active_support/notifications/instrumenter.rb:20:in `instrument'
activerecord (4.2.5.2) lib/active_record/connection_adapters/abstract_adapter.rb:466:in `log'
activerecord (4.2.5.2) lib/active_record/connection_adapters/sqlite3_adapter.rb:293:in `exec_query'
activerecord (4.2.5.2) lib/active_record/connection_adapters/abstract/database_statements.rb:355:in `select'
activerecord (4.2.5.2) lib/active_record/connection_adapters/abstract/database_statements.rb:32:in `select_all'
activerecord (4.2.5.2) lib/active_record/connection_adapters/abstract/query_cache.rb:68:in `block in select_all'
activerecord (4.2.5.2) lib/active_record/connection_adapters/abstract/query_cache.rb:83:in `cache_sql'
activerecord (4.2.5.2) lib/active_record/connection_adapters/abstract/query_cache.rb:68:in `select_all'
activerecord (4.2.5.2) lib/active_record/querying.rb:39:in `find_by_sql'
activerecord (4.2.5.2) lib/active_record/relation.rb:639:in `exec_queries'
activerecord (4.2.5.2) lib/active_record/relation.rb:515:in `load'
activerecord (4.2.5.2) lib/active_record/relation.rb:243:in `to_a'
activerecord (4.2.5.2) lib/active_record/relation/finder_methods.rb:475:in `find_take'
activerecord (4.2.5.2) lib/active_record/relation/finder_methods.rb:105:in `take'
activerecord (4.2.5.2) lib/active_record/relation/finder_methods.rb:84:in `find_by'
activerecord (4.2.5.2) lib/active_record/querying.rb:7:in `find_by'
activerecord (4.2.5.2) lib/active_record/core.rb:173:in `find_by'
/home/leksster/ror/Rubygarage/Amazon/simple_cart/app/models/cart.rb:67:in `discount'
/home/leksster/ror/Rubygarage/Amazon/simple_cart/app/models/cart.rb:58:in `update_books'
/home/leksster/ror/Rubygarage/Amazon/simple_cart/app/controllers/simple_cart/carts_controller.rb:28:in `update'
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 (6.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 (3.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 (1.2ms)
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.4ms)
Started GET "/simple_cart/cart" for 127.0.0.1 at 2016-03-11 01:27:45 +0200
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
Processing by SimpleCart::CartsController#show as HTML
[1m[35mItem Load (0.2ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 2]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "2"]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "2"]]
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml within layouts/simple_cart/application (32.3ms)
Completed 200 OK in 259ms (Views: 250.6ms | ActiveRecord: 0.5ms)
Started GET "/assets/simple_cart/application.self-2f12d59583468bdcee27c6046669f62a778d265fc91cf385e5d36e9189ac822e.css?body=1" for 127.0.0.1 at 2016-03-11 01:27:45 +0200
Started GET "/assets/simple_cart/application.self-8f06a73c35179188914ab50e057157639fce1401c1cdca640ac9cec33746fc5b.js?body=1" for 127.0.0.1 at 2016-03-11 01:27:45 +0200
Started PUT "/simple_cart/cart" for 127.0.0.1 at 2016-03-11 01:27:47 +0200
Processing by SimpleCart::CartsController#update as HTML
Parameters: {"utf8"=>"✓", "authenticity_token"=>"kzSnr2qiGmbUOcUal17sA2P8KsDgUtQMIVO9pMkF5DlVJJqj8XQWkN1EbHGEG5V3IApohWxyBRIr3UbFpBJKqA==", "Item_2"=>"9", "coupon"=>"", "commit"=>"Update"}
Completed 500 Internal Server Error in 1ms (ActiveRecord: 0.0ms)
NameError (uninitialized constant Bicycles):
activesupport (4.2.5.2) lib/active_support/inflector/methods.rb:261:in `const_get'
activesupport (4.2.5.2) lib/active_support/inflector/methods.rb:261:in `block in constantize'
activesupport (4.2.5.2) lib/active_support/inflector/methods.rb:259:in `each'
activesupport (4.2.5.2) lib/active_support/inflector/methods.rb:259:in `inject'
activesupport (4.2.5.2) lib/active_support/inflector/methods.rb:259:in `constantize'
activesupport (4.2.5.2) lib/active_support/core_ext/string/inflections.rb:66:in `constantize'
/home/leksster/ror/Rubygarage/Amazon/simple_cart/lib/simple_cart.rb:7:in `coupon_class'
/home/leksster/ror/Rubygarage/Amazon/simple_cart/app/models/cart.rb:62:in `using_coupon?'
/home/leksster/ror/Rubygarage/Amazon/simple_cart/app/models/cart.rb:58:in `update_books'
/home/leksster/ror/Rubygarage/Amazon/simple_cart/app/controllers/simple_cart/carts_controller.rb:28:in `update'
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 (8.1ms)
Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (3.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.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.6ms)
Started PUT "/simple_cart/cart" for 127.0.0.1 at 2016-03-11 01:28:02 +0200
Processing by SimpleCart::CartsController#update as HTML
Parameters: {"utf8"=>"✓", "authenticity_token"=>"kzSnr2qiGmbUOcUal17sA2P8KsDgUtQMIVO9pMkF5DlVJJqj8XQWkN1EbHGEG5V3IApohWxyBRIr3UbFpBJKqA==", "Item_2"=>"9", "coupon"=>"", "commit"=>"Update"}
[1m[36mItem Load (0.1ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", 2]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "2"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "2"]]
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml within layouts/simple_cart/application (14.6ms)
Completed 200 OK in 29ms (Views: 26.2ms | ActiveRecord: 0.6ms)
Started GET "/assets/simple_cart/application.self-8f06a73c35179188914ab50e057157639fce1401c1cdca640ac9cec33746fc5b.js?body=1" for 127.0.0.1 at 2016-03-11 01:28:02 +0200
Started PUT "/simple_cart/cart" for 127.0.0.1 at 2016-03-11 01:28:03 +0200
Processing by SimpleCart::CartsController#update as HTML
Parameters: {"utf8"=>"✓", "authenticity_token"=>"YEwstiYoaIEmPDa6p8w2w0WBXyrEHqsqydUMHPR0zFWmXBG6vf5kdy9Bn9G0iU+3Bncdb0g+ejTDW/d9mWNixA==", "Item_2"=>"9", "coupon"=>"", "commit"=>"Update"}
[1m[35mItem Load (0.1ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 2]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "2"]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "2"]]
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml within layouts/simple_cart/application (8.9ms)
Completed 200 OK in 23ms (Views: 21.7ms | ActiveRecord: 0.1ms)
Started PUT "/simple_cart/cart" for 127.0.0.1 at 2016-03-11 01:28:06 +0200
Processing by SimpleCart::CartsController#update as HTML
Parameters: {"utf8"=>"✓", "authenticity_token"=>"RcLtsHy0yOX38nXnwJa2kiGWEpBBDB4S4KLBqbp/bC+D0tC852LEE/6P3IzT08/mYmBQ1c0szwzqLDrI12jCvg==", "Item_2"=>"11", "coupon"=>"", "commit"=>"Update"}
[1m[36mItem Load (0.1ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", 2]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "2"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "2"]]
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml within layouts/simple_cart/application (9.8ms)
Completed 200 OK in 26ms (Views: 24.8ms | ActiveRecord: 0.1ms)
Started PUT "/simple_cart/cart" for 127.0.0.1 at 2016-03-11 01:28:09 +0200
Processing by SimpleCart::CartsController#update as HTML
Parameters: {"utf8"=>"✓", "authenticity_token"=>"JFFICEAel3+mn3Op3XiSUosKXift3OPMj+N6/pDVAsLiQXUE28ibia/i2sLOPesmyPwcYmH8MtKFbYGf/cKsUw==", "Item_2"=>"15", "coupon"=>"", "commit"=>"Update"}
[1m[35mItem Load (0.1ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 2]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "2"]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "2"]]
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml within layouts/simple_cart/application (11.2ms)
Completed 200 OK in 25ms (Views: 23.8ms | ActiveRecord: 0.1ms)
Started PUT "/simple_cart/cart" for 127.0.0.1 at 2016-03-11 01:28:12 +0200
Processing by SimpleCart::CartsController#update as HTML
Parameters: {"utf8"=>"✓", "authenticity_token"=>"6TRFfrLybC+MSgvpUntHYBle9DmqjMkfYcNKL/YVq6gvJHhyKSRg2YU3ooJBPj4UWqi2fCasGAFrTbFOmwIFOQ==", "Item_2"=>"10", "coupon"=>"", "commit"=>"Update"}
[1m[36mItem Load (0.1ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", 2]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "2"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "2"]]
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml within layouts/simple_cart/application (11.5ms)
Completed 200 OK in 25ms (Views: 23.6ms | ActiveRecord: 0.2ms)
Started PUT "/simple_cart/cart" for 127.0.0.1 at 2016-03-11 01:28:41 +0200
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
Processing by SimpleCart::CartsController#update as HTML
Parameters: {"utf8"=>"✓", "authenticity_token"=>"6TRFfrLybC+MSgvpUntHYBle9DmqjMkfYcNKL/YVq6gvJHhyKSRg2YU3ooJBPj4UWqi2fCasGAFrTbFOmwIFOQ==", "Item_2"=>"10", "coupon"=>"", "commit"=>"Update"}
[1m[35mItem Load (0.3ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 2]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "2"]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "2"]]
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml within layouts/simple_cart/application (43.8ms)
Completed 200 OK in 271ms (Views: 261.3ms | ActiveRecord: 0.7ms)
Started GET "/assets/simple_cart/application.self-2f12d59583468bdcee27c6046669f62a778d265fc91cf385e5d36e9189ac822e.css?body=1" for 127.0.0.1 at 2016-03-11 01:28:42 +0200
Started GET "/assets/simple_cart/application.self-8f06a73c35179188914ab50e057157639fce1401c1cdca640ac9cec33746fc5b.js?body=1" for 127.0.0.1 at 2016-03-11 01:28:42 +0200
Started PUT "/simple_cart/cart" for 127.0.0.1 at 2016-03-11 01:28:43 +0200
Processing by SimpleCart::CartsController#update as HTML
Parameters: {"utf8"=>"✓", "authenticity_token"=>"Xbm5vbVrqsEodRYI+eUEWClA/cctHYdWRJnYalZKHmybqYSxLr2mNyEIv2PqoH0sara/gqE9VkhOFyMLO12w/Q==", "Item_2"=>"11", "coupon"=>"", "commit"=>"Update"}
[1m[36mItem Load (0.1ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", 2]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "2"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "2"]]
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml within layouts/simple_cart/application (14.4ms)
Completed 200 OK in 30ms (Views: 28.8ms | ActiveRecord: 0.2ms)
Started PUT "/simple_cart/cart" for 127.0.0.1 at 2016-03-11 01:28:44 +0200
Processing by SimpleCart::CartsController#update as HTML
Parameters: {"utf8"=>"✓", "authenticity_token"=>"Sa64eFpSa5mt3yoRu49UOA071Vg+u5QlHtoSK/RnsGWPvoV0wYRnb6Sig3qoyi1MTs2XHbKbRTsUVOlKmXAe9A==", "Item_2"=>"11", "coupon"=>"", "commit"=>"Update"}
[1m[35mItem Load (0.1ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 2]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "2"]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "2"]]
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml within layouts/simple_cart/application (15.9ms)
Completed 200 OK in 37ms (Views: 35.4ms | ActiveRecord: 0.1ms)
Started PUT "/simple_cart/cart" for 127.0.0.1 at 2016-03-11 01:28:46 +0200
Processing by SimpleCart::CartsController#update as HTML
Parameters: {"utf8"=>"✓", "authenticity_token"=>"+Qcq0Wq8dwpMyIL90ZDNVeMWWf5IfFWgPKFlL68Uci0/Fxfd8Wp7/EW1K5bC1bQhoOAbu8RchL42L55OwgPcvA==", "Item_2"=>"6", "coupon"=>"", "commit"=>"Update"}
[1m[36mItem Load (0.2ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", 2]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "2"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "2"]]
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml within layouts/simple_cart/application (12.3ms)
Completed 200 OK in 45ms (Views: 43.0ms | ActiveRecord: 0.2ms)
Started PUT "/simple_cart/cart" for 127.0.0.1 at 2016-03-11 01:28:55 +0200
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
Processing by SimpleCart::CartsController#update as HTML
Parameters: {"utf8"=>"✓", "authenticity_token"=>"+Qcq0Wq8dwpMyIL90ZDNVeMWWf5IfFWgPKFlL68Uci0/Fxfd8Wp7/EW1K5bC1bQhoOAbu8RchL42L55OwgPcvA==", "Item_2"=>"6", "coupon"=>"", "commit"=>"Update"}
[1m[35mCoupon Load (0.2ms)[0m SELECT "coupons".* FROM "coupons" WHERE "coupons"."code" = ? LIMIT 1 [["code", ""]]
[1m[36mItem Load (0.1ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", 2]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "2"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "2"]]
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml within layouts/simple_cart/application (30.6ms)
Completed 200 OK in 226ms (Views: 210.4ms | ActiveRecord: 0.9ms)
Started GET "/assets/simple_cart/application.self-8f06a73c35179188914ab50e057157639fce1401c1cdca640ac9cec33746fc5b.js?body=1" for 127.0.0.1 at 2016-03-11 01:28:56 +0200
Started GET "/assets/simple_cart/application.self-2f12d59583468bdcee27c6046669f62a778d265fc91cf385e5d36e9189ac822e.css?body=1" for 127.0.0.1 at 2016-03-11 01:28:56 +0200
Started PUT "/simple_cart/cart" for 127.0.0.1 at 2016-03-11 01:28:58 +0200
Processing by SimpleCart::CartsController#update as HTML
Parameters: {"utf8"=>"✓", "authenticity_token"=>"4OxcSteZ4osQNGVDXMcM7gTB+0XpV4qeqiI/BWt07lEm/GFGTE/ufRlJzChPgnWaRze5AGV3W4CgrMRkBmNAwA==", "Item_2"=>"7", "coupon"=>"", "commit"=>"Update"}
[1m[35mCoupon Load (0.1ms)[0m SELECT "coupons".* FROM "coupons" WHERE "coupons"."code" = ? LIMIT 1 [["code", ""]]
[1m[36mItem Load (0.1ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", 2]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "2"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "2"]]
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml within layouts/simple_cart/application (12.5ms)
Completed 200 OK in 28ms (Views: 26.3ms | ActiveRecord: 0.3ms)
Started PUT "/simple_cart/cart" for 127.0.0.1 at 2016-03-11 01:29:01 +0200
Processing by SimpleCart::CartsController#update as HTML
Parameters: {"utf8"=>"✓", "authenticity_token"=>"xvsVVK3EA1/ueW8zxDYnbXvSCDxj3dGeiVOHnlwIAuMA6yhYNhIPqecExljXc14ZOCRKee/9AICD3Xz/MR+scg==", "Item_2"=>"7", "coupon"=>"A2016", "commit"=>"Update"}
[1m[35mCoupon Load (0.1ms)[0m SELECT "coupons".* FROM "coupons" WHERE "coupons"."code" = ? LIMIT 1 [["code", "A2016"]]
[1m[36mItem Load (0.1ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", 2]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "2"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "2"]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "2"]]
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml within layouts/simple_cart/application (8.0ms)
Completed 200 OK in 25ms (Views: 20.4ms | ActiveRecord: 0.4ms)
Started PUT "/simple_cart/cart" for 127.0.0.1 at 2016-03-11 01:29:44 +0200
Processing by SimpleCart::CartsController#update as HTML
Parameters: {"utf8"=>"✓", "authenticity_token"=>"CTvtJU14U4L2Bo8N3j3oPpnCcl8vU9ywMcoLrYijnNzPK9Ap1q5fdP97JmbNeJFK2jQwGqNzDa47RPDM5bQyTQ==", "Item_2"=>"7", "coupon"=>"", "commit"=>"Update"}
[1m[36mCoupon Load (0.1ms)[0m [1mSELECT "coupons".* FROM "coupons" WHERE "coupons"."code" = ? LIMIT 1[0m [["code", ""]]
[1m[35mItem Load (0.1ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 2]]
[1m[36mCACHE (0.8ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "2"]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "2"]]
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml within layouts/simple_cart/application (14.3ms)
Completed 200 OK in 46ms (Views: 43.2ms | ActiveRecord: 1.0ms)
Started PUT "/simple_cart/cart" for 127.0.0.1 at 2016-03-11 01:29:48 +0200
Processing by SimpleCart::CartsController#update as HTML
Parameters: {"utf8"=>"✓", "authenticity_token"=>"BbEbhtm6sR881OTPoJWUr0lt3t479F2BwWZRV6eyPEvDoSaKQmy96TWpTaSz0O3bCpucm7fUjJ/L6Ko2yqWS2g==", "Item_2"=>"7", "coupon"=>"", "commit"=>"Update"}
[1m[36mCoupon Load (0.1ms)[0m [1mSELECT "coupons".* FROM "coupons" WHERE "coupons"."code" = ? LIMIT 1[0m [["code", ""]]
[1m[35mItem Load (0.1ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 2]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "2"]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "2"]]
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml within layouts/simple_cart/application (12.2ms)
Completed 200 OK in 36ms (Views: 33.8ms | ActiveRecord: 0.3ms)
Started PUT "/simple_cart/cart" for 127.0.0.1 at 2016-03-11 01:29:50 +0200
Processing by SimpleCart::CartsController#update as HTML
Parameters: {"utf8"=>"✓", "authenticity_token"=>"sEv5ScA9hVsLrzT3NsoFRiJoX8EgGARCxvDqU4eiW9R2W8RFW+uJrQLSnZwlj3wyYZ4dhKw41VzMfhEy6rX1RQ==", "Item_2"=>"10", "coupon"=>"", "commit"=>"Update"}
[1m[36mCoupon Load (0.1ms)[0m [1mSELECT "coupons".* FROM "coupons" WHERE "coupons"."code" = ? LIMIT 1[0m [["code", ""]]
[1m[35mItem Load (0.1ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 2]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "2"]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "2"]]
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml within layouts/simple_cart/application (14.4ms)
Completed 200 OK in 45ms (Views: 44.4ms | ActiveRecord: 0.3ms)
Started GET "/" for 127.0.0.1 at 2016-03-11 02:03:24 +0200
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
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 (1.5ms)
Completed 200 OK in 23ms (Views: 22.7ms | ActiveRecord: 0.0ms)
Started GET "/" for 127.0.0.1 at 2016-03-11 02:03:24 +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.0ms)
Completed 200 OK in 1ms (Views: 0.9ms | ActiveRecord: 0.0ms)
Started GET "/items" for 127.0.0.1 at 2016-03-11 02:03:27 +0200
Processing by ItemsController#index as HTML
[1m[35mItem Load (0.3ms)[0m SELECT "items".* FROM "items"
Rendered items/index.html.erb within layouts/application (19.8ms)
Completed 200 OK in 195ms (Views: 193.0ms | ActiveRecord: 0.7ms)
Started GET "/items" for 127.0.0.1 at 2016-03-11 02:03:27 +0200
Processing by ItemsController#index as HTML
[1m[36mItem Load (0.1ms)[0m [1mSELECT "items".* FROM "items"[0m
Rendered items/index.html.erb within layouts/application (1.5ms)
Completed 200 OK in 13ms (Views: 12.8ms | ActiveRecord: 0.1ms)
Started GET "/items/1" for 127.0.0.1 at 2016-03-11 02:03:29 +0200
Processing by ItemsController#show as HTML
Parameters: {"id"=>"1"}
[1m[35mItem Load (0.2ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 1]]
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/_buy.html.haml (15.7ms)
Rendered items/show.html.erb within layouts/application (20.4ms)
Completed 200 OK in 60ms (Views: 52.6ms | ActiveRecord: 0.2ms)
Started POST "/simple_cart/cart/1" for 127.0.0.1 at 2016-03-11 02:03:30 +0200
Processing by SimpleCart::CartsController#add as HTML
Parameters: {"utf8"=>"✓", "authenticity_token"=>"B2VS6i0DBf5ILKg6kStEg3qUgYtG8K8ByxcjdO25fGfBdW/mttUJCEFRAVGCbj33OWLDzsrQfh/BmdgVgK7S9g==", "qty"=>"1", "klass"=>"Item", "commit"=>"Add to cart", "item_id"=>"1"}
Redirected to http://localhost:3000/simple_cart/cart
Completed 302 Found in 4ms (ActiveRecord: 0.0ms)
Started GET "/simple_cart/cart" for 127.0.0.1 at 2016-03-11 02:03:30 +0200
Processing by SimpleCart::CartsController#show as HTML
[1m[36mItem Load (0.1ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", 2]]
[1m[35mItem Load (0.1ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "2"]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "1"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "2"]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "1"]]
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml within layouts/application (25.1ms)
Completed 200 OK in 42ms (Views: 41.3ms | ActiveRecord: 0.2ms)
Started GET "/simple_cart/cart" for 127.0.0.1 at 2016-03-11 02:03:32 +0200
Processing by SimpleCart::CartsController#show as HTML
[1m[36mItem Load (0.1ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", 2]]
[1m[35mItem Load (0.1ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "2"]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "1"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "2"]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "1"]]
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml within layouts/application (14.6ms)
Completed 200 OK in 29ms (Views: 28.3ms | ActiveRecord: 0.2ms)
Started GET "/assets/bicycles.self-e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855.css?body=1" for 127.0.0.1 at 2016-03-11 02:03:32 +0200
Started GET "/assets/items.self-b60acab5af8d245ed2b3012f77d11d8d207d8eada27756badaf4ef05770d60f6.css?body=1" for 127.0.0.1 at 2016-03-11 02:03:32 +0200
Started GET "/assets/scaffold.self-83b741db49389dc7cfdf85bf7537a0219cce48e085c4116afc83d55c9af47c78.css?body=1" for 127.0.0.1 at 2016-03-11 02:03:32 +0200
Started GET "/assets/application.self-e80e8f2318043e8af94dddc2adad5a4f09739a8ebb323b3ab31cd71d45fd9113.css?body=1" for 127.0.0.1 at 2016-03-11 02:03:32 +0200
Started GET "/assets/bicycles.self-19a187bec6cdb96d6de80a61c16c857c613536adf9138476bd367db38d282635.js?body=1" for 127.0.0.1 at 2016-03-11 02:03:32 +0200
Started GET "/assets/application.self-8f06a73c35179188914ab50e057157639fce1401c1cdca640ac9cec33746fc5b.js?body=1" for 127.0.0.1 at 2016-03-11 02:03:32 +0200
Started GET "/assets/scaffolds.self-03f606e4c2e4be6137e536a05288397bf7618100b8f51a17a6272e4055793680.css?body=1" for 127.0.0.1 at 2016-03-11 02:03:32 +0200
Started GET "/assets/items.self-19a187bec6cdb96d6de80a61c16c857c613536adf9138476bd367db38d282635.js?body=1" for 127.0.0.1 at 2016-03-11 02:03:32 +0200
Started GET "/simple_cart/cart" for 127.0.0.1 at 2016-03-11 02:03:33 +0200
Processing by SimpleCart::CartsController#show as HTML
[1m[36mItem Load (0.1ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", 2]]
[1m[35mItem Load (0.1ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "2"]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "1"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "2"]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "1"]]
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml within layouts/application (17.6ms)
Completed 200 OK in 40ms (Views: 38.7ms | ActiveRecord: 0.3ms)
Started GET "/assets/bicycles.self-e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855.css?body=1" for 127.0.0.1 at 2016-03-11 02:03:33 +0200
Started GET "/assets/items.self-b60acab5af8d245ed2b3012f77d11d8d207d8eada27756badaf4ef05770d60f6.css?body=1" for 127.0.0.1 at 2016-03-11 02:03:33 +0200
Started GET "/assets/scaffolds.self-03f606e4c2e4be6137e536a05288397bf7618100b8f51a17a6272e4055793680.css?body=1" for 127.0.0.1 at 2016-03-11 02:03:33 +0200
Started GET "/assets/application.self-e80e8f2318043e8af94dddc2adad5a4f09739a8ebb323b3ab31cd71d45fd9113.css?body=1" for 127.0.0.1 at 2016-03-11 02:03:33 +0200
Started GET "/assets/scaffold.self-83b741db49389dc7cfdf85bf7537a0219cce48e085c4116afc83d55c9af47c78.css?body=1" for 127.0.0.1 at 2016-03-11 02:03:33 +0200
Started GET "/assets/bicycles.self-19a187bec6cdb96d6de80a61c16c857c613536adf9138476bd367db38d282635.js?body=1" for 127.0.0.1 at 2016-03-11 02:03:33 +0200
Started GET "/assets/items.self-19a187bec6cdb96d6de80a61c16c857c613536adf9138476bd367db38d282635.js?body=1" for 127.0.0.1 at 2016-03-11 02:03:33 +0200
Started GET "/assets/application.self-8f06a73c35179188914ab50e057157639fce1401c1cdca640ac9cec33746fc5b.js?body=1" for 127.0.0.1 at 2016-03-11 02:03:33 +0200
Started GET "/simple_cart/cart" for 127.0.0.1 at 2016-03-11 02:04:07 +0200
Processing by SimpleCart::CartsController#show as HTML
[1m[36mItem Load (0.1ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", 2]]
[1m[35mItem Load (0.1ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "2"]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "1"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "2"]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "1"]]
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml within layouts/application (14.9ms)
Completed 200 OK in 39ms (Views: 37.2ms | ActiveRecord: 0.3ms)
Started GET "/assets/items.self-b60acab5af8d245ed2b3012f77d11d8d207d8eada27756badaf4ef05770d60f6.css?body=1" for 127.0.0.1 at 2016-03-11 02:04:07 +0200
Started GET "/assets/scaffolds.self-03f606e4c2e4be6137e536a05288397bf7618100b8f51a17a6272e4055793680.css?body=1" for 127.0.0.1 at 2016-03-11 02:04:07 +0200
Started GET "/assets/scaffold.self-83b741db49389dc7cfdf85bf7537a0219cce48e085c4116afc83d55c9af47c78.css?body=1" for 127.0.0.1 at 2016-03-11 02:04:07 +0200
Started GET "/assets/bicycles.self-e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855.css?body=1" for 127.0.0.1 at 2016-03-11 02:04:07 +0200
Started GET "/assets/application.self-e80e8f2318043e8af94dddc2adad5a4f09739a8ebb323b3ab31cd71d45fd9113.css?body=1" for 127.0.0.1 at 2016-03-11 02:04:07 +0200
Started GET "/assets/application.self-8f06a73c35179188914ab50e057157639fce1401c1cdca640ac9cec33746fc5b.js?body=1" for 127.0.0.1 at 2016-03-11 02:04:07 +0200
Started GET "/assets/bicycles.self-19a187bec6cdb96d6de80a61c16c857c613536adf9138476bd367db38d282635.js?body=1" for 127.0.0.1 at 2016-03-11 02:04:07 +0200
Started GET "/assets/items.self-19a187bec6cdb96d6de80a61c16c857c613536adf9138476bd367db38d282635.js?body=1" for 127.0.0.1 at 2016-03-11 02:04:07 +0200
Started GET "/simple_cart/cart" for 127.0.0.1 at 2016-03-11 02:04:08 +0200
Processing by SimpleCart::CartsController#show as HTML
[1m[36mItem Load (0.1ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", 2]]
[1m[35mItem Load (0.1ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "2"]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "1"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "2"]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "1"]]
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml within layouts/application (18.2ms)
Completed 200 OK in 40ms (Views: 38.8ms | ActiveRecord: 0.3ms)
Started GET "/assets/items.self-b60acab5af8d245ed2b3012f77d11d8d207d8eada27756badaf4ef05770d60f6.css?body=1" for 127.0.0.1 at 2016-03-11 02:04:08 +0200
Started GET "/assets/scaffold.self-83b741db49389dc7cfdf85bf7537a0219cce48e085c4116afc83d55c9af47c78.css?body=1" for 127.0.0.1 at 2016-03-11 02:04:08 +0200
Started GET "/assets/scaffolds.self-03f606e4c2e4be6137e536a05288397bf7618100b8f51a17a6272e4055793680.css?body=1" for 127.0.0.1 at 2016-03-11 02:04:08 +0200
Started GET "/assets/bicycles.self-e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855.css?body=1" for 127.0.0.1 at 2016-03-11 02:04:08 +0200
Started GET "/assets/application.self-e80e8f2318043e8af94dddc2adad5a4f09739a8ebb323b3ab31cd71d45fd9113.css?body=1" for 127.0.0.1 at 2016-03-11 02:04:08 +0200
Started GET "/assets/bicycles.self-19a187bec6cdb96d6de80a61c16c857c613536adf9138476bd367db38d282635.js?body=1" for 127.0.0.1 at 2016-03-11 02:04:08 +0200
Started GET "/assets/items.self-19a187bec6cdb96d6de80a61c16c857c613536adf9138476bd367db38d282635.js?body=1" for 127.0.0.1 at 2016-03-11 02:04:08 +0200
Started GET "/assets/application.self-8f06a73c35179188914ab50e057157639fce1401c1cdca640ac9cec33746fc5b.js?body=1" for 127.0.0.1 at 2016-03-11 02:04:08 +0200
Started GET "/simple_cart/cart" for 127.0.0.1 at 2016-03-11 02:04:09 +0200
Processing by SimpleCart::CartsController#show as HTML
[1m[36mItem Load (0.2ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", 2]]
[1m[35mItem Load (0.3ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "2"]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "1"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "2"]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "1"]]
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml within layouts/application (24.0ms)
Completed 200 OK in 53ms (Views: 51.7ms | ActiveRecord: 0.6ms)
Started GET "/simple_cart/" for 127.0.0.1 at 2016-03-11 02:04:11 +0200
Processing by SimpleCart::CartsController#show as HTML
[1m[36mItem Load (0.1ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", 2]]
[1m[35mItem Load (0.1ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "2"]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "1"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "2"]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "1"]]
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml within layouts/application (15.7ms)
Completed 200 OK in 30ms (Views: 28.7ms | ActiveRecord: 0.3ms)
Started GET "/simple_cart" for 127.0.0.1 at 2016-03-11 02:04:12 +0200
Processing by SimpleCart::CartsController#show as HTML
[1m[36mItem Load (0.1ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", 2]]
[1m[35mItem Load (0.1ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "2"]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "1"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "2"]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "1"]]
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml within layouts/application (12.5ms)
Completed 200 OK in 25ms (Views: 23.6ms | ActiveRecord: 0.3ms)
Started PUT "/simple_cart/cart" for 127.0.0.1 at 2016-03-11 02:04:31 +0200
Processing by SimpleCart::CartsController#update as HTML
Parameters: {"utf8"=>"✓", "authenticity_token"=>"T8GByghpa9Ytn/Eh6N9NyBcRRsUte1f5PTf4UwLq8CuJ0bzGk79nICTiWEr7mjS8VOcEgKFbhuc3uQMyb/1eug==", "Item_2"=>"9", "Item_1"=>"1", "coupon"=>"", "commit"=>"Update"}
[1m[36mCoupon Load (0.2ms)[0m [1mSELECT "coupons".* FROM "coupons" WHERE "coupons"."code" = ? LIMIT 1[0m [["code", ""]]
[1m[35mItem Load (0.1ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 2]]
[1m[36mItem Load (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "2"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "1"]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "2"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "1"]]
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml within layouts/application (10.7ms)
Completed 200 OK in 29ms (Views: 23.9ms | ActiveRecord: 0.6ms)
Started GET "/simple_cart/cart" for 127.0.0.1 at 2016-03-11 02:05:11 +0200
Processing by SimpleCart::CartsController#show as HTML
[1m[35mItem Load (0.2ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 2]]
[1m[36mItem Load (0.1ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "2"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "1"]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "2"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "1"]]
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml (12.6ms)
Completed 200 OK in 16ms (Views: 14.7ms | ActiveRecord: 0.3ms)
Started GET "/simple_cart/cart" for 127.0.0.1 at 2016-03-11 02:05:13 +0200
Processing by SimpleCart::CartsController#show as HTML
[1m[35mItem Load (0.1ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 2]]
[1m[36mItem Load (0.1ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "2"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "1"]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "2"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "1"]]
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml (12.3ms)
Completed 200 OK in 15ms (Views: 14.5ms | ActiveRecord: 0.3ms)
Started GET "/simple_cart/cart" for 127.0.0.1 at 2016-03-11 02:05:14 +0200
Processing by SimpleCart::CartsController#show as HTML
[1m[35mItem Load (0.2ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 2]]
[1m[36mItem Load (0.1ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "2"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "1"]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "2"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "1"]]
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml (14.6ms)
Completed 200 OK in 18ms (Views: 16.8ms | ActiveRecord: 0.4ms)
Started GET "/simple_cart/cart" for 127.0.0.1 at 2016-03-11 02:05:21 +0200
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
Processing by SimpleCart::CartsController#show as HTML
[1m[35mItem Load (0.3ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 2]]
[1m[36mItem Load (0.1ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "2"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "1"]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "2"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "1"]]
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml within layouts/simple_cart/application (36.3ms)
Completed 200 OK in 239ms (Views: 220.6ms | ActiveRecord: 0.7ms)
Started GET "/assets/simple_cart/application.self-2f12d59583468bdcee27c6046669f62a778d265fc91cf385e5d36e9189ac822e.css?body=1" for 127.0.0.1 at 2016-03-11 02:05:22 +0200
Started GET "/assets/simple_cart/application.self-8f06a73c35179188914ab50e057157639fce1401c1cdca640ac9cec33746fc5b.js?body=1" for 127.0.0.1 at 2016-03-11 02:05:22 +0200
Started GET "/items" for 127.0.0.1 at 2016-03-11 02:05:32 +0200
[1m[36mActiveRecord::SchemaMigration Load (0.3ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
Processing by ItemsController#index as HTML
[1m[35mItem Load (0.2ms)[0m SELECT "items".* FROM "items"
Rendered items/index.html.erb (13.6ms)
Completed 200 OK in 31ms (Views: 28.8ms | ActiveRecord: 0.5ms)
Started GET "/items" for 127.0.0.1 at 2016-03-11 02:05:32 +0200
Processing by ItemsController#index as HTML
[1m[36mItem Load (0.1ms)[0m [1mSELECT "items".* FROM "items"[0m
Rendered items/index.html.erb (1.6ms)
Completed 200 OK in 3ms (Views: 3.0ms | ActiveRecord: 0.1ms)
Started GET "/items/1" for 127.0.0.1 at 2016-03-11 02:05:34 +0200
Processing by ItemsController#show as HTML
Parameters: {"id"=>"1"}
[1m[35mItem Load (0.2ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 1]]
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/_buy.html.haml (16.0ms)
Rendered items/show.html.erb (19.6ms)
Completed 200 OK in 29ms (Views: 21.4ms | ActiveRecord: 0.2ms)
Started POST "/simple_cart/cart/1" for 127.0.0.1 at 2016-03-11 02:05:35 +0200
Processing by SimpleCart::CartsController#add as HTML
Parameters: {"utf8"=>"✓", "authenticity_token"=>"vLvnRRCnkFSsgvMfH9fugpkg+Z4zJdgWB2P4/3K5NNR6q9pJi3GcoqX/WnQMkpf22ta7278FCQgN7QOeH66aRQ==", "qty"=>"1", "klass"=>"Item", "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-11 02:05:35 +0200
Processing by SimpleCart::CartsController#show as HTML
[1m[36mItem Load (0.2ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", 2]]
[1m[35mItem Load (0.1ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "2"]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "1"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "2"]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "1"]]
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml (23.4ms)
Completed 200 OK in 30ms (Views: 29.1ms | ActiveRecord: 0.3ms)
Started GET "/simple_cart/cart" for 127.0.0.1 at 2016-03-11 02:05:37 +0200
Processing by SimpleCart::CartsController#show as HTML
[1m[36mItem Load (0.1ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", 2]]
[1m[35mItem Load (0.1ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "2"]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "1"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "2"]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "1"]]
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml (13.5ms)
Completed 200 OK in 16ms (Views: 15.4ms | ActiveRecord: 0.2ms)
Started GET "/simple_cart/cart" for 127.0.0.1 at 2016-03-11 02:05:39 +0200
Processing by SimpleCart::CartsController#show as HTML
[1m[36mItem Load (0.1ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", 2]]
[1m[35mItem Load (0.1ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "2"]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "1"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "2"]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "1"]]
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml (11.0ms)
Completed 200 OK in 15ms (Views: 14.5ms | ActiveRecord: 0.3ms)
Started GET "/simple_cart/cart" for 127.0.0.1 at 2016-03-11 02:05:40 +0200
Processing by SimpleCart::CartsController#show as HTML
[1m[36mItem Load (0.1ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", 2]]
[1m[35mItem Load (0.1ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "2"]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "1"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "2"]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "1"]]
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml (14.1ms)
Completed 200 OK in 17ms (Views: 15.8ms | ActiveRecord: 0.2ms)
Started GET "/simple_cart/cart" for 127.0.0.1 at 2016-03-11 02:05:41 +0200
Processing by SimpleCart::CartsController#show as HTML
[1m[36mItem Load (0.1ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", 2]]
[1m[35mItem Load (0.1ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "2"]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "1"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "2"]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "1"]]
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml (14.6ms)
Completed 200 OK in 18ms (Views: 17.1ms | ActiveRecord: 0.3ms)
Started GET "/simple_cart/cart" for 127.0.0.1 at 2016-03-11 02:05:42 +0200
Processing by SimpleCart::CartsController#show as HTML
[1m[36mItem Load (0.1ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", 2]]
[1m[35mItem Load (0.1ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "2"]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "1"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "2"]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "1"]]
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml (13.2ms)
Completed 200 OK in 15ms (Views: 14.6ms | ActiveRecord: 0.3ms)
Started GET "/simple_cart/" for 127.0.0.1 at 2016-03-11 02:06:01 +0200
Processing by SimpleCart::CartsController#show as HTML
[1m[36mItem Load (0.2ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", 2]]
[1m[35mItem Load (0.1ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "2"]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "1"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "2"]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "1"]]
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml (12.9ms)
Completed 200 OK in 16ms (Views: 15.1ms | ActiveRecord: 0.3ms)
Started GET "/simple_cart/cart" for 127.0.0.1 at 2016-03-11 02:06:03 +0200
Processing by SimpleCart::CartsController#show as HTML
[1m[36mItem Load (0.1ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", 2]]
[1m[35mItem Load (0.1ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "2"]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "1"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "2"]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "1"]]
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml (11.6ms)
Completed 200 OK in 14ms (Views: 13.3ms | ActiveRecord: 0.2ms)
Started GET "/simple_cart/cart" for 127.0.0.1 at 2016-03-11 02:19:39 +0200
Processing by SimpleCart::CartsController#show as HTML
[1m[36mItem Load (0.1ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", 2]]
[1m[35mItem Load (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "2"]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "1"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "2"]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "1"]]
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml (12.5ms)
Completed 200 OK in 15ms (Views: 14.1ms | ActiveRecord: 0.2ms)
Started GET "/" for 127.0.0.1 at 2016-03-11 02:29:11 +0200
[1m[36mActiveRecord::SchemaMigration Load (0.2ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
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 (1.3ms)
Completed 200 OK in 19ms (Views: 18.6ms | ActiveRecord: 0.0ms)
Started GET "/" for 127.0.0.1 at 2016-03-11 02:29:11 +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.0ms)
Completed 200 OK in 1ms (Views: 0.7ms | ActiveRecord: 0.0ms)
Started GET "/items" for 127.0.0.1 at 2016-03-11 02:29:15 +0200
Processing by ItemsController#index as HTML
[1m[35mItem Load (0.2ms)[0m SELECT "items".* FROM "items"
Rendered items/index.html.erb (15.8ms)
Completed 200 OK in 23ms (Views: 20.5ms | ActiveRecord: 0.4ms)
Started GET "/items/1" for 127.0.0.1 at 2016-03-11 02:29:17 +0200
Processing by ItemsController#show as HTML
Parameters: {"id"=>"1"}
[1m[36mItem Load (0.2ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", 1]]
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/_buy.html.haml (16.2ms)
Rendered items/show.html.erb (20.4ms)
Completed 200 OK in 31ms (Views: 22.3ms | ActiveRecord: 0.2ms)
Started POST "/simple_cart/cart/1" for 127.0.0.1 at 2016-03-11 02:29:18 +0200
Processing by SimpleCart::CartsController#add as HTML
Parameters: {"utf8"=>"✓", "authenticity_token"=>"3SwpS9bZqsK6xWrv1UmLvZy186XqFG9ZnYcgTiPJQLsbPBRHTQ+mNLO4w4TGDPLJ30Ox4GY0vkeXCdsvTt7uKg==", "qty"=>"1", "klass"=>"Item", "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-11 02:29:18 +0200
Processing by SimpleCart::CartsController#show as HTML
[1m[35mItem Load (0.1ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 2]]
[1m[36mItem Load (0.1ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "2"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "1"]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "2"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "1"]]
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml (22.9ms)
Completed 200 OK in 27ms (Views: 26.3ms | ActiveRecord: 0.2ms)
Started GET "/simple_cart/cart" for 127.0.0.1 at 2016-03-11 02:29:20 +0200
Processing by SimpleCart::CartsController#show as HTML
[1m[35mItem Load (0.1ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 2]]
[1m[36mItem Load (0.1ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "2"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "1"]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "2"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "1"]]
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml (13.1ms)
Completed 200 OK in 16ms (Views: 15.2ms | ActiveRecord: 0.2ms)
Started PUT "/simple_cart/cart" for 127.0.0.1 at 2016-03-11 02:30:08 +0200
Processing by SimpleCart::CartsController#update as HTML
Parameters: {"utf8"=>"✓", "authenticity_token"=>"sEv5ScA9hVsLrzT3NsoFRiJoX8EgGARCxvDqU4eiW9R2W8RFW+uJrQLSnZwlj3wyYZ4dhKw41VzMfhEy6rX1RQ==", "Item_2"=>"10", "coupon"=>"", "commit"=>"Update"}
[1m[35mCoupon Load (0.2ms)[0m SELECT "coupons".* FROM "coupons" WHERE "coupons"."code" = ? LIMIT 1 [["code", ""]]
[1m[36mItem Load (0.3ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", 2]]
[1m[35mItem Load (0.1ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "2"]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "1"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "2"]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "1"]]
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml within layouts/simple_cart/application (21.6ms)
Completed 200 OK in 193ms (Views: 187.7ms | ActiveRecord: 1.5ms)
Started GET "/assets/simple_cart/application.self-2f12d59583468bdcee27c6046669f62a778d265fc91cf385e5d36e9189ac822e.css?body=1" for 127.0.0.1 at 2016-03-11 02:30:09 +0200
Started GET "/assets/simple_cart/application.self-8f06a73c35179188914ab50e057157639fce1401c1cdca640ac9cec33746fc5b.js?body=1" for 127.0.0.1 at 2016-03-11 02:30:09 +0200
Started GET "/simple_cart/cart" for 127.0.0.1 at 2016-03-11 02:30:11 +0200
Processing by SimpleCart::CartsController#show as HTML
[1m[36mItem Load (0.1ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", 2]]
[1m[35mItem Load (0.1ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "2"]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "1"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "2"]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "1"]]
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml within layouts/simple_cart/application (14.9ms)
Completed 200 OK in 30ms (Views: 29.1ms | ActiveRecord: 0.3ms)
Started GET "/items" for 127.0.0.1 at 2016-03-11 02:30:18 +0200
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
Processing by ItemsController#index as HTML
[1m[35mItem Load (0.1ms)[0m SELECT "items".* FROM "items"
Rendered items/index.html.erb (14.3ms)
Completed 200 OK in 34ms (Views: 31.5ms | ActiveRecord: 0.4ms)
Started GET "/items/1" for 127.0.0.1 at 2016-03-11 02:30:19 +0200
Processing by ItemsController#show as HTML
Parameters: {"id"=>"1"}
[1m[36mItem Load (0.3ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", 1]]
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/_buy.html.haml (17.3ms)
Rendered items/show.html.erb (21.6ms)
Completed 200 OK in 30ms (Views: 23.4ms | ActiveRecord: 0.3ms)
Started POST "/simple_cart/cart/1" for 127.0.0.1 at 2016-03-11 02:30:21 +0200
Processing by SimpleCart::CartsController#add as HTML
Parameters: {"utf8"=>"✓", "authenticity_token"=>"ayn8YrDrCQmyrmycRlBG2VSGtKgZ4XISmT9QT/0MCc+tOcFuKz0F/7vTxfdVFT+tF3D27ZXBowyTsasukBunXg==", "qty"=>"1", "klass"=>"Item", "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-11 02:30:21 +0200
Processing by SimpleCart::CartsController#show as HTML
[1m[35mItem Load (0.2ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 2]]
[1m[36mItem Load (0.1ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "2"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "1"]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "2"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "1"]]
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml (28.1ms)
Completed 200 OK in 34ms (Views: 33.0ms | ActiveRecord: 0.4ms)
Started GET "/simple_cart/cart" for 127.0.0.1 at 2016-03-11 02:30:23 +0200
Processing by SimpleCart::CartsController#show as HTML
[1m[35mItem Load (0.1ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 2]]
[1m[36mItem Load (0.1ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "2"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "1"]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "2"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "1"]]
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml (14.4ms)
Completed 200 OK in 17ms (Views: 16.1ms | ActiveRecord: 0.2ms)
Started GET "/simple_cart/cart" for 127.0.0.1 at 2016-03-11 02:30:24 +0200
Processing by SimpleCart::CartsController#show as HTML
[1m[35mItem Load (0.1ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 2]]
[1m[36mItem Load (0.1ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "2"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "1"]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "2"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "1"]]
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml (15.0ms)
Completed 200 OK in 19ms (Views: 17.5ms | ActiveRecord: 0.3ms)
Started GET "/simple_cart/" for 127.0.0.1 at 2016-03-11 02:30:26 +0200
Processing by SimpleCart::CartsController#show as HTML
[1m[35mItem Load (0.1ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 2]]
[1m[36mItem Load (0.1ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "2"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "1"]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "2"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "1"]]
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml (16.3ms)
Completed 200 OK in 19ms (Views: 18.5ms | ActiveRecord: 0.3ms)
Started GET "/simple_cart/" for 127.0.0.1 at 2016-03-11 02:30:26 +0200
Processing by SimpleCart::CartsController#show as HTML
[1m[35mItem Load (0.1ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 2]]
[1m[36mItem Load (0.1ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "2"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "1"]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "2"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "1"]]
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml (16.1ms)
Completed 200 OK in 19ms (Views: 18.4ms | ActiveRecord: 0.3ms)
Started GET "/simple_cart/cart" for 127.0.0.1 at 2016-03-11 02:30:29 +0200
Processing by SimpleCart::CartsController#show as HTML
[1m[35mItem Load (0.1ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 2]]
[1m[36mItem Load (0.1ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "2"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "1"]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "2"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "1"]]
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml (14.2ms)
Completed 200 OK in 17ms (Views: 16.2ms | ActiveRecord: 0.3ms)
Started GET "/simple_cart/cart" for 127.0.0.1 at 2016-03-11 02:30:35 +0200
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
Processing by SimpleCart::CartsController#show as HTML
[1m[35mItem Load (0.2ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 2]]
[1m[36mItem Load (0.1ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "2"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "1"]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "2"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "1"]]
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml within layouts/simple_cart/application (38.5ms)
Completed 200 OK in 248ms (Views: 228.9ms | ActiveRecord: 0.7ms)
Started GET "/assets/simple_cart/application.self-2f12d59583468bdcee27c6046669f62a778d265fc91cf385e5d36e9189ac822e.css?body=1" for 127.0.0.1 at 2016-03-11 02:30:35 +0200
Started GET "/assets/simple_cart/application.self-8f06a73c35179188914ab50e057157639fce1401c1cdca640ac9cec33746fc5b.js?body=1" for 127.0.0.1 at 2016-03-11 02:30:35 +0200
Started GET "/simple_cart/cart" for 127.0.0.1 at 2016-03-11 02:31:17 +0200
Processing by SimpleCart::CartsController#show as HTML
[1m[35mItem Load (0.2ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 2]]
[1m[36mItem Load (0.1ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "2"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "1"]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "2"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "1"]]
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml within layouts/simple_cart/application (20.1ms)
Completed 200 OK in 39ms (Views: 36.3ms | ActiveRecord: 0.7ms)
Started GET "/assets/simple_cart/application.self-2f12d59583468bdcee27c6046669f62a778d265fc91cf385e5d36e9189ac822e.css?body=1" for 127.0.0.1 at 2016-03-11 02:31:17 +0200
Started GET "/assets/simple_cart/application.self-8f06a73c35179188914ab50e057157639fce1401c1cdca640ac9cec33746fc5b.js?body=1" for 127.0.0.1 at 2016-03-11 02:31:17 +0200
Started GET "/bicycles" for 127.0.0.1 at 2016-03-11 02:31:21 +0200
[1m[36mActiveRecord::SchemaMigration Load (0.4ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
Processing by BicyclesController#index as HTML
[1m[35mBicycle Load (0.2ms)[0m SELECT "bicycles".* FROM "bicycles"
Rendered bicycles/index.html.erb (13.8ms)
Completed 200 OK in 33ms (Views: 31.0ms | ActiveRecord: 0.4ms)
Started GET "/bicycles" for 127.0.0.1 at 2016-03-11 02:31:22 +0200
Processing by BicyclesController#index as HTML
[1m[36mBicycle Load (0.3ms)[0m [1mSELECT "bicycles".* FROM "bicycles"[0m
Rendered bicycles/index.html.erb (2.4ms)
Completed 200 OK in 6ms (Views: 5.9ms | ActiveRecord: 0.3ms)
Started GET "/bicycles/1" for 127.0.0.1 at 2016-03-11 02:31:24 +0200
Processing by BicyclesController#show as HTML
Parameters: {"id"=>"1"}
[1m[35mBicycle Load (0.3ms)[0m SELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1 [["id", 1]]
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/_buy.html.haml (19.2ms)
Rendered bicycles/show.html.erb (23.1ms)
Completed 200 OK in 32ms (Views: 24.8ms | ActiveRecord: 0.3ms)
Started POST "/simple_cart/cart/1" for 127.0.0.1 at 2016-03-11 02:31:25 +0200
Processing by SimpleCart::CartsController#add as HTML
Parameters: {"utf8"=>"✓", "authenticity_token"=>"P5oi28puFgfOqGrcVKkp8ehRsib31BGmJ509J48YhNr5ih/XUbga8cfVw7dH7FCFq6fwY3v0wLgtE8ZG4g8qSw==", "qty"=>"1", "klass"=>"Bicycle", "commit"=>"Add to cart", "item_id"=>"1"}
Redirected to http://localhost:3000/simple_cart/cart
Completed 302 Found in 4ms (ActiveRecord: 0.0ms)
Started GET "/simple_cart/cart" for 127.0.0.1 at 2016-03-11 02:31:25 +0200
Processing by SimpleCart::CartsController#show as HTML
[1m[36mItem Load (0.3ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", 2]]
[1m[35mItem Load (0.1ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mBicycle Load (0.1ms)[0m [1mSELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "2"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "1"]]
[1m[35mCACHE (0.0ms)[0m SELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1 [["id", "1"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "2"]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "1"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1[0m [["id", "1"]]
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml (38.8ms)
Completed 200 OK in 46ms (Views: 44.0ms | ActiveRecord: 0.8ms)
Started GET "/simple_cart/cart" for 127.0.0.1 at 2016-03-11 02:31:27 +0200
Processing by SimpleCart::CartsController#show as HTML
[1m[35mItem Load (0.1ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 2]]
[1m[36mItem Load (0.1ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mBicycle Load (0.1ms)[0m SELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "2"]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "1"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1[0m [["id", "1"]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "2"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "1"]]
[1m[35mCACHE (0.0ms)[0m SELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1 [["id", "1"]]
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml (17.9ms)
Completed 200 OK in 21ms (Views: 19.8ms | ActiveRecord: 0.4ms)
Started GET "/simple_cart/cart" for 127.0.0.1 at 2016-03-11 02:31:28 +0200
Processing by SimpleCart::CartsController#show as HTML
[1m[36mItem Load (0.1ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", 2]]
[1m[35mItem Load (0.1ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mBicycle Load (0.1ms)[0m [1mSELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "2"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "1"]]
[1m[35mCACHE (0.0ms)[0m SELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1 [["id", "1"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "2"]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "1"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1[0m [["id", "1"]]
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml (31.0ms)
Completed 200 OK in 34ms (Views: 32.6ms | ActiveRecord: 0.5ms)
Started GET "/simple_cart/cart" for 127.0.0.1 at 2016-03-11 02:31:29 +0200
Processing by SimpleCart::CartsController#show as HTML
[1m[35mItem Load (0.1ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 2]]
[1m[36mItem Load (0.1ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mBicycle Load (0.1ms)[0m SELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "2"]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "1"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1[0m [["id", "1"]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "2"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "1"]]
[1m[35mCACHE (0.0ms)[0m SELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1 [["id", "1"]]
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml (19.8ms)
Completed 200 OK in 23ms (Views: 21.9ms | ActiveRecord: 0.4ms)
Started PUT "/simple_cart/cart" for 127.0.0.1 at 2016-03-11 02:31:30 +0200
Processing by SimpleCart::CartsController#update as HTML
Parameters: {"utf8"=>"✓", "authenticity_token"=>"N/OagUzOcgt3P5BtHnfXd5YIl8ZpP3j5LbJsyb5XsX7x46eN1xh+/X5COQYNMq4D1f7Vg+UfqecnPJeo00Af7w==", "Item_2"=>"10", "Item_1"=>"2", "Bicycle_1"=>"1", "coupon"=>"", "commit"=>"Update"}
[1m[36mCoupon Load (0.1ms)[0m [1mSELECT "coupons".* FROM "coupons" WHERE "coupons"."code" = ? LIMIT 1[0m [["code", ""]]
[1m[35mItem Load (0.1ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 2]]
[1m[36mItem Load (0.1ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mBicycle Load (0.1ms)[0m SELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "2"]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "1"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1[0m [["id", "1"]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "2"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "1"]]
[1m[35mCACHE (0.0ms)[0m SELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1 [["id", "1"]]
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml (24.1ms)
Completed 200 OK in 29ms (Views: 26.2ms | ActiveRecord: 0.7ms)
Started PUT "/simple_cart/cart" for 127.0.0.1 at 2016-03-11 02:31:32 +0200
Processing by SimpleCart::CartsController#update as HTML
Parameters: {"utf8"=>"✓", "authenticity_token"=>"EEZ+SAfAOgUTI+pY85+V41o3Hv+G+pz4XjuM2+3zBjDWVkNEnBY28xpeQzPg2uyXGcFcugraTeZUtXe6gOSooQ==", "Item_2"=>"10", "Item_1"=>"5", "Bicycle_1"=>"1", "coupon"=>"", "commit"=>"Update"}
[1m[36mCoupon Load (0.1ms)[0m [1mSELECT "coupons".* FROM "coupons" WHERE "coupons"."code" = ? LIMIT 1[0m [["code", ""]]
[1m[35mItem Load (0.2ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 2]]
[1m[36mItem Load (0.1ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mBicycle Load (0.1ms)[0m SELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "2"]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "1"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1[0m [["id", "1"]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "2"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "1"]]
[1m[35mCACHE (0.0ms)[0m SELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1 [["id", "1"]]
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml (19.6ms)
Completed 200 OK in 23ms (Views: 21.5ms | ActiveRecord: 0.6ms)
Started GET "/simple_cart/" for 127.0.0.1 at 2016-03-11 02:31:36 +0200
Processing by SimpleCart::CartsController#show as HTML
[1m[36mItem Load (0.1ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", 2]]
[1m[35mItem Load (0.1ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mBicycle Load (0.0ms)[0m [1mSELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "2"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "1"]]
[1m[35mCACHE (0.0ms)[0m SELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1 [["id", "1"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "2"]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "1"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1[0m [["id", "1"]]
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml (20.9ms)
Completed 200 OK in 24ms (Views: 22.7ms | ActiveRecord: 0.3ms)
Started GET "/simple_cart/" for 127.0.0.1 at 2016-03-11 02:31:37 +0200
Processing by SimpleCart::CartsController#show as HTML
[1m[35mItem Load (0.1ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 2]]
[1m[36mItem Load (0.1ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mBicycle Load (0.0ms)[0m SELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "2"]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "1"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1[0m [["id", "1"]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "2"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "1"]]
[1m[35mCACHE (0.0ms)[0m SELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1 [["id", "1"]]
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml (22.1ms)
Completed 200 OK in 25ms (Views: 24.2ms | ActiveRecord: 0.3ms)
Started GET "/items" for 127.0.0.1 at 2016-03-11 02:31:47 +0200
[1m[36mActiveRecord::SchemaMigration Load (0.2ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
Processing by ItemsController#index as HTML
[1m[35mItem Load (0.2ms)[0m SELECT "items".* FROM "items"
Rendered items/index.html.erb (13.7ms)
Completed 200 OK in 31ms (Views: 29.6ms | ActiveRecord: 0.4ms)
Started GET "/items/1" for 127.0.0.1 at 2016-03-11 02:31:49 +0200
Processing by ItemsController#show as HTML
Parameters: {"id"=>"1"}
[1m[36mItem Load (0.3ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", 1]]
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/_buy.html.haml (17.5ms)
Rendered items/show.html.erb (21.0ms)
Completed 200 OK in 31ms (Views: 22.9ms | ActiveRecord: 0.3ms)
Started POST "/simple_cart/cart/1" for 127.0.0.1 at 2016-03-11 02:31:50 +0200
Processing by SimpleCart::CartsController#add as HTML
Parameters: {"utf8"=>"✓", "authenticity_token"=>"fwwnhNvxjw7is+TGJFunVns6vVBdf9C6lsiR6lCMsfC5HBqIQCeD+OvOTa03Ht4iOMz/FdFfAaScRmqLPZsfYQ==", "qty"=>"1", "klass"=>"Item", "commit"=>"Add to cart", "item_id"=>"1"}
Redirected to http://localhost:3000/simple_cart/cart
Completed 302 Found in 4ms (ActiveRecord: 0.0ms)
Started GET "/simple_cart/cart" for 127.0.0.1 at 2016-03-11 02:31:50 +0200
Processing by SimpleCart::CartsController#show as HTML
[1m[35mItem Load (0.1ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 2]]
[1m[36mItem Load (0.1ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mBicycle Load (0.1ms)[0m SELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "2"]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "1"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1[0m [["id", "1"]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "2"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "1"]]
[1m[35mCACHE (0.0ms)[0m SELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1 [["id", "1"]]
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml (38.0ms)
Completed 200 OK in 45ms (Views: 43.3ms | ActiveRecord: 0.6ms)
Started GET "/simple_cart/cart" for 127.0.0.1 at 2016-03-11 02:31:52 +0200
Processing by SimpleCart::CartsController#show as HTML
[1m[36mItem Load (0.1ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", 2]]
[1m[35mItem Load (0.1ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mBicycle Load (0.1ms)[0m [1mSELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "2"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "1"]]
[1m[35mCACHE (0.0ms)[0m SELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1 [["id", "1"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "2"]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "1"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1[0m [["id", "1"]]
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml (17.4ms)
Completed 200 OK in 20ms (Views: 19.3ms | ActiveRecord: 0.3ms)
Started GET "/simple_cart/cart" for 127.0.0.1 at 2016-03-11 02:33:42 +0200
Processing by SimpleCart::CartsController#show as HTML
[1m[35mItem Load (0.2ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 2]]
[1m[36mItem Load (0.1ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mBicycle Load (0.2ms)[0m SELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "2"]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "1"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1[0m [["id", "1"]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "2"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "1"]]
[1m[35mCACHE (0.0ms)[0m SELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1 [["id", "1"]]
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml within layouts/simple_cart/application (24.0ms)
Completed 200 OK in 210ms (Views: 207.7ms | ActiveRecord: 1.1ms)
Started GET "/assets/simple_cart/application.self-2f12d59583468bdcee27c6046669f62a778d265fc91cf385e5d36e9189ac822e.css?body=1" for 127.0.0.1 at 2016-03-11 02:33:43 +0200
Started GET "/assets/simple_cart/application.self-8f06a73c35179188914ab50e057157639fce1401c1cdca640ac9cec33746fc5b.js?body=1" for 127.0.0.1 at 2016-03-11 02:33:43 +0200
Started GET "/simple_cart/" for 127.0.0.1 at 2016-03-11 02:33:46 +0200
Processing by SimpleCart::CartsController#show as HTML
[1m[36mItem Load (0.2ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", 2]]
[1m[35mItem Load (0.1ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mBicycle Load (0.0ms)[0m [1mSELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "2"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "1"]]
[1m[35mCACHE (0.0ms)[0m SELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1 [["id", "1"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "2"]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "1"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1[0m [["id", "1"]]
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml within layouts/simple_cart/application (14.8ms)
Completed 200 OK in 27ms (Views: 26.5ms | ActiveRecord: 0.4ms)
Started GET "/items" for 127.0.0.1 at 2016-03-11 02:33:48 +0200
Processing by ItemsController#index as HTML
[1m[35mItem Load (0.2ms)[0m SELECT "items".* FROM "items"
Rendered items/index.html.erb (2.4ms)
Completed 200 OK in 7ms (Views: 6.8ms | ActiveRecord: 0.2ms)
Started GET "/items/3" for 127.0.0.1 at 2016-03-11 02:33:50 +0200
Processing by ItemsController#show as HTML
Parameters: {"id"=>"3"}
[1m[36mItem Load (0.1ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", 3]]
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/_buy.html.haml (7.9ms)
Rendered items/show.html.erb (9.6ms)
Completed 200 OK in 12ms (Views: 11.4ms | ActiveRecord: 0.1ms)
Started POST "/simple_cart/cart/3" for 127.0.0.1 at 2016-03-11 02:33:51 +0200
Processing by SimpleCart::CartsController#add as HTML
Parameters: {"utf8"=>"✓", "authenticity_token"=>"6kB+0/BDo+m7eJ3vjVhfCy4V4P6U4v8p6V4e6HUkmk4sUEPfa5WvH7IFNISeHSZ/beOiuxjCLjfj0OWJGDM03w==", "qty"=>"1", "klass"=>"Item", "commit"=>"Add to cart", "item_id"=>"3"}
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-11 02:33:51 +0200
Processing by SimpleCart::CartsController#show as HTML
[1m[35mItem Load (0.3ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 2]]
[1m[36mItem Load (0.1ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mBicycle Load (0.1ms)[0m SELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mItem Load (0.2ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", 3]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "2"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "1"]]
[1m[35mCACHE (0.0ms)[0m SELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1 [["id", "1"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "3"]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "2"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "1"]]
[1m[35mCACHE (0.0ms)[0m SELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1 [["id", "1"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "3"]]
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml within layouts/simple_cart/application (25.5ms)
Completed 200 OK in 39ms (Views: 37.4ms | ActiveRecord: 0.9ms)
Started GET "/items" for 127.0.0.1 at 2016-03-11 02:33:57 +0200
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
Processing by ItemsController#index as HTML
[1m[35mItem Load (0.2ms)[0m SELECT "items".* FROM "items"
Rendered items/index.html.erb (14.1ms)
Completed 200 OK in 33ms (Views: 31.1ms | ActiveRecord: 0.5ms)
Started GET "/items/1" for 127.0.0.1 at 2016-03-11 02:33:59 +0200
Processing by ItemsController#show as HTML
Parameters: {"id"=>"1"}
[1m[36mItem Load (0.3ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", 1]]
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/_buy.html.haml (16.3ms)
Rendered items/show.html.erb (20.2ms)
Completed 200 OK in 32ms (Views: 22.6ms | ActiveRecord: 0.3ms)
Started POST "/simple_cart/cart/1" for 127.0.0.1 at 2016-03-11 02:34:00 +0200
Processing by SimpleCart::CartsController#add as HTML
Parameters: {"utf8"=>"✓", "authenticity_token"=>"dSQoVYUB4frrcG5xrlsaGg+xMsMqzgUDbw5p66SQf+2zNBVZHtftDOINxxq9HmNuTEdwhqbu1B1lgJKKyYfRfA==", "qty"=>"1", "klass"=>"Item", "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-11 02:34:00 +0200
Processing by SimpleCart::CartsController#show as HTML
[1m[35mItem Load (0.1ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 2]]
[1m[36mItem Load (0.1ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mBicycle Load (0.4ms)[0m SELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mItem Load (0.1ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", 3]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "2"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "1"]]
[1m[35mCACHE (0.0ms)[0m SELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1 [["id", "1"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "3"]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "2"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "1"]]
[1m[35mCACHE (0.0ms)[0m SELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1 [["id", "1"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "3"]]
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml (40.5ms)
Completed 200 OK in 46ms (Views: 44.6ms | ActiveRecord: 1.2ms)
Started GET "/simple_cart/cart" for 127.0.0.1 at 2016-03-11 02:34:02 +0200
Processing by SimpleCart::CartsController#show as HTML
[1m[35mItem Load (0.1ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 2]]
[1m[36mItem Load (0.1ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mBicycle Load (0.1ms)[0m SELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mItem Load (0.1ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", 3]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "2"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "1"]]
[1m[35mCACHE (0.0ms)[0m SELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1 [["id", "1"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "3"]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "2"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "1"]]
[1m[35mCACHE (0.0ms)[0m SELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1 [["id", "1"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "3"]]
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml (22.0ms)
Completed 200 OK in 25ms (Views: 23.6ms | ActiveRecord: 0.6ms)
Started GET "/items" for 127.0.0.1 at 2016-03-11 02:34:17 +0200
Processing by ItemsController#index as HTML
[1m[35mItem Load (0.3ms)[0m SELECT "items".* FROM "items"
Rendered items/index.html.erb (8.4ms)
Completed 200 OK in 13ms (Views: 10.9ms | ActiveRecord: 0.8ms)
Started GET "/items/1" for 127.0.0.1 at 2016-03-11 02:34:19 +0200
Processing by ItemsController#show as HTML
Parameters: {"id"=>"1"}
[1m[36mItem Load (0.2ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", 1]]
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/_buy.html.haml (7.6ms)
Rendered items/show.html.erb (9.4ms)
Completed 200 OK in 12ms (Views: 11.0ms | ActiveRecord: 0.2ms)
Started POST "/simple_cart/cart/1" for 127.0.0.1 at 2016-03-11 02:34:20 +0200
Processing by SimpleCart::CartsController#add as HTML
Parameters: {"utf8"=>"✓", "authenticity_token"=>"7essdRFZV13o3/beXd60sHfaW3RCtIlvmStrI06dDQAr+xF5io9bq+GiX7VOm83ENCwZMc6UWHGTpZBCI4qjkQ==", "qty"=>"1", "klass"=>"Item", "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-11 02:34:20 +0200
Processing by SimpleCart::CartsController#show as HTML
[1m[35mItem Load (0.1ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 2]]
[1m[36mItem Load (0.1ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mBicycle Load (0.2ms)[0m SELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mItem Load (0.1ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", 3]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "2"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "1"]]
[1m[35mCACHE (0.0ms)[0m SELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1 [["id", "1"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "3"]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "2"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "1"]]
[1m[35mCACHE (0.0ms)[0m SELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1 [["id", "1"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "3"]]
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml (36.6ms)
Completed 200 OK in 43ms (Views: 41.5ms | ActiveRecord: 0.9ms)
Started GET "/simple_cart/cart" for 127.0.0.1 at 2016-03-11 02:34:22 +0200
Processing by SimpleCart::CartsController#show as HTML
[1m[35mItem Load (0.1ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 2]]
[1m[36mItem Load (0.1ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mBicycle Load (0.1ms)[0m SELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mItem Load (0.1ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", 3]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "2"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "1"]]
[1m[35mCACHE (0.0ms)[0m SELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1 [["id", "1"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "3"]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "2"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "1"]]
[1m[35mCACHE (0.0ms)[0m SELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1 [["id", "1"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "3"]]
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml (22.8ms)
Completed 200 OK in 26ms (Views: 24.8ms | ActiveRecord: 0.6ms)
Started GET "/simple_cart/cart" for 127.0.0.1 at 2016-03-11 02:38:29 +0200
Processing by SimpleCart::CartsController#show as HTML
[1m[35mItem Load (0.2ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 2]]
[1m[36mItem Load (0.1ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mBicycle Load (0.1ms)[0m SELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mItem Load (0.1ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", 3]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "2"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "1"]]
[1m[35mCACHE (0.0ms)[0m SELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1 [["id", "1"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "3"]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "2"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "1"]]
[1m[35mCACHE (0.0ms)[0m SELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1 [["id", "1"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "3"]]
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml within layouts/simple_cart/application (26.6ms)
Completed 200 OK in 239ms (Views: 236.7ms | ActiveRecord: 1.1ms)
Started GET "/assets/simple_cart/application.self-2f12d59583468bdcee27c6046669f62a778d265fc91cf385e5d36e9189ac822e.css?body=1" for 127.0.0.1 at 2016-03-11 02:38:30 +0200
Started GET "/assets/simple_cart/application.self-8f06a73c35179188914ab50e057157639fce1401c1cdca640ac9cec33746fc5b.js?body=1" for 127.0.0.1 at 2016-03-11 02:38:30 +0200
Started GET "/items/1" for 127.0.0.1 at 2016-03-11 02:38:41 +0200
Processing by ItemsController#show as HTML
Parameters: {"id"=>"1"}
[1m[35mItem Load (0.1ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 1]]
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/_buy.html.haml (6.3ms)
Rendered items/show.html.erb (7.5ms)
Completed 200 OK in 13ms (Views: 11.7ms | ActiveRecord: 0.1ms)
Started POST "/simple_cart/cart/1" for 127.0.0.1 at 2016-03-11 02:38:43 +0200
Processing by SimpleCart::CartsController#add as HTML
Parameters: {"utf8"=>"✓", "authenticity_token"=>"WrI3VkOjC5+tOGQettgQnwFD2DF8//9luTgGG8iIeQ6cogpa2HUHaaRFzXWlnWnrQrWadPDfLnuztv16pZ/Xnw==", "qty"=>"1", "klass"=>"Item", "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-11 02:38:43 +0200
Processing by SimpleCart::CartsController#show as HTML
[1m[36mItem Load (0.1ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", 2]]
[1m[35mItem Load (0.1ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mBicycle Load (0.0ms)[0m [1mSELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mItem Load (0.1ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 3]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "2"]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "1"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1[0m [["id", "1"]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "3"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "2"]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "1"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1[0m [["id", "1"]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "3"]]
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml within layouts/simple_cart/application (21.7ms)
Completed 200 OK in 51ms (Views: 49.8ms | ActiveRecord: 0.3ms)
Started GET "/simple_cart/cart" for 127.0.0.1 at 2016-03-11 02:38:52 +0200
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
Processing by SimpleCart::CartsController#show as HTML
[1m[35mItem Load (0.2ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 2]]
[1m[36mItem Load (0.2ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mBicycle Load (0.1ms)[0m SELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mItem Load (0.1ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", 3]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "2"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "1"]]
[1m[35mCACHE (0.0ms)[0m SELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1 [["id", "1"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "3"]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "2"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "1"]]
[1m[35mCACHE (0.0ms)[0m SELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1 [["id", "1"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "3"]]
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml within layouts/simple_cart/application (50.1ms)
Completed 200 OK in 258ms (Views: 247.0ms | ActiveRecord: 1.2ms)
Started GET "/assets/simple_cart/application.self-2f12d59583468bdcee27c6046669f62a778d265fc91cf385e5d36e9189ac822e.css?body=1" for 127.0.0.1 at 2016-03-11 02:38:53 +0200
Started GET "/assets/simple_cart/application.self-8f06a73c35179188914ab50e057157639fce1401c1cdca640ac9cec33746fc5b.js?body=1" for 127.0.0.1 at 2016-03-11 02:38:53 +0200
Started GET "/items/2" for 127.0.0.1 at 2016-03-11 02:38:59 +0200
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
Processing by ItemsController#show as HTML
Parameters: {"id"=>"2"}
[1m[35mItem Load (0.2ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 2]]
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/_buy.html.haml (17.8ms)
Rendered items/show.html.erb (27.9ms)
Completed 200 OK in 54ms (Views: 34.6ms | ActiveRecord: 0.4ms)
Started POST "/simple_cart/cart/2" for 127.0.0.1 at 2016-03-11 02:39:01 +0200
Processing by SimpleCart::CartsController#add as HTML
Parameters: {"utf8"=>"✓", "authenticity_token"=>"xwuGHhcrZQYo8LxtVW0xnKeaQA3P1h+VjtT6G9BCejMBG7sSjP1p8CGNFQZGKEjo5GwCSEP2zouEWgF6vVXUog==", "qty"=>"1", "klass"=>"Item", "commit"=>"Add to cart", "item_id"=>"2"}
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-11 02:39:01 +0200
Processing by SimpleCart::CartsController#show as HTML
[1m[36mItem Load (0.1ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", 2]]
[1m[35mItem Load (0.1ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mBicycle Load (0.2ms)[0m [1mSELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mItem Load (0.1ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 3]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "2"]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "1"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1[0m [["id", "1"]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "3"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "2"]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "1"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1[0m [["id", "1"]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "3"]]
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml (42.2ms)
Completed 200 OK in 47ms (Views: 46.0ms | ActiveRecord: 0.8ms)
Started GET "/simple_cart/cart" for 127.0.0.1 at 2016-03-11 02:39:51 +0200
Processing by SimpleCart::CartsController#show as HTML
[1m[36mItem Load (0.2ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", 2]]
[1m[35mItem Load (0.1ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mBicycle Load (0.1ms)[0m [1mSELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mItem Load (0.1ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 3]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "2"]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "1"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1[0m [["id", "1"]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "3"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "2"]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "1"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1[0m [["id", "1"]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "3"]]
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml (21.0ms)
Completed 200 OK in 25ms (Views: 23.5ms | ActiveRecord: 0.6ms)
Started GET "/simple_cart/cart" for 127.0.0.1 at 2016-03-11 02:39:55 +0200
Processing by SimpleCart::CartsController#show as HTML
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml (4.0ms)
Completed 200 OK in 6ms (Views: 5.9ms | ActiveRecord: 0.0ms)
Started GET "/simple_cart" for 127.0.0.1 at 2016-03-11 02:39:58 +0200
Processing by SimpleCart::CartsController#show as HTML
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml (3.9ms)
Completed 200 OK in 6ms (Views: 5.6ms | ActiveRecord: 0.0ms)
Started GET "/simple_cart" for 127.0.0.1 at 2016-03-11 02:40:00 +0200
Processing by SimpleCart::CartsController#show as HTML
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml (3.6ms)
Completed 200 OK in 6ms (Views: 5.5ms | ActiveRecord: 0.0ms)
Started GET "/simple_cart" for 127.0.0.1 at 2016-03-11 02:40:01 +0200
Processing by SimpleCart::CartsController#show as HTML
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml (3.3ms)
Completed 200 OK in 6ms (Views: 5.1ms | ActiveRecord: 0.0ms)
Started GET "/simple_cart" for 127.0.0.1 at 2016-03-11 02:40:02 +0200
Processing by SimpleCart::CartsController#show as HTML
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml (3.5ms)
Completed 200 OK in 6ms (Views: 5.6ms | ActiveRecord: 0.0ms)
Started GET "/simple_cart" for 127.0.0.1 at 2016-03-11 02:40:02 +0200
Processing by SimpleCart::CartsController#show as HTML
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml (3.9ms)
Completed 200 OK in 6ms (Views: 5.8ms | ActiveRecord: 0.0ms)
Started GET "/simple_cart" for 127.0.0.1 at 2016-03-11 02:40:02 +0200
Processing by SimpleCart::CartsController#show as HTML
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml (4.4ms)
Completed 200 OK in 7ms (Views: 6.5ms | ActiveRecord: 0.0ms)
Started GET "/simple_cart" for 127.0.0.1 at 2016-03-11 02:40:03 +0200
Processing by SimpleCart::CartsController#show as HTML
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml (4.0ms)
Completed 200 OK in 6ms (Views: 5.8ms | ActiveRecord: 0.0ms)
Started GET "/simple_cart" for 127.0.0.1 at 2016-03-11 02:40:03 +0200
Processing by SimpleCart::CartsController#show as HTML
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml (3.5ms)
Completed 200 OK in 6ms (Views: 5.4ms | ActiveRecord: 0.0ms)
Started GET "/simple_cart/cart" for 127.0.0.1 at 2016-03-11 02:40:07 +0200
Processing by SimpleCart::CartsController#show as HTML
[1m[36mItem Load (0.2ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", 2]]
[1m[35mItem Load (0.1ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mBicycle Load (0.1ms)[0m [1mSELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mItem Load (0.1ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 3]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "2"]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "1"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1[0m [["id", "1"]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "3"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "2"]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "1"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1[0m [["id", "1"]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "3"]]
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml (20.6ms)
Completed 200 OK in 24ms (Views: 22.6ms | ActiveRecord: 0.5ms)
Started GET "/simple_cart/cart" for 127.0.0.1 at 2016-03-11 02:40:08 +0200
Processing by SimpleCart::CartsController#show as HTML
[1m[36mItem Load (0.1ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", 2]]
[1m[35mItem Load (0.1ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mBicycle Load (0.1ms)[0m [1mSELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mItem Load (0.1ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 3]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "2"]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "1"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1[0m [["id", "1"]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "3"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "2"]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "1"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1[0m [["id", "1"]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "3"]]
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml (23.7ms)
Completed 200 OK in 26ms (Views: 25.0ms | ActiveRecord: 0.4ms)
Started GET "/simple_cart/cart" for 127.0.0.1 at 2016-03-11 02:40:45 +0200
TypeError (superclass must be a Class (Module given)):
/home/leksster/ror/Rubygarage/Amazon/simple_cart/app/controllers/simple_cart/application_controller.rb:2:in `'
/home/leksster/ror/Rubygarage/Amazon/simple_cart/app/controllers/simple_cart/application_controller.rb:1:in `'
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/ror/Rubygarage/Amazon/simple_cart/app/controllers/simple_cart/carts_controller.rb:2:in `'
/home/leksster/ror/Rubygarage/Amazon/simple_cart/app/controllers/simple_cart/carts_controller.rb:1:in `'
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'
activesupport (4.2.5.2) lib/active_support/inflector/methods.rb:263:in `const_get'
activesupport (4.2.5.2) lib/active_support/inflector/methods.rb:263:in `block in constantize'
activesupport (4.2.5.2) lib/active_support/inflector/methods.rb:259:in `each'
activesupport (4.2.5.2) lib/active_support/inflector/methods.rb:259:in `inject'
activesupport (4.2.5.2) lib/active_support/inflector/methods.rb:259:in `constantize'
activesupport (4.2.5.2) lib/active_support/dependencies.rb:566:in `get'
activesupport (4.2.5.2) lib/active_support/dependencies.rb:597:in `constantize'
actionpack (4.2.5.2) lib/action_dispatch/routing/route_set.rb:70:in `controller_reference'
actionpack (4.2.5.2) lib/action_dispatch/routing/route_set.rb:60:in `controller'
actionpack (4.2.5.2) lib/action_dispatch/routing/route_set.rb:39: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 (4.7ms)
Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (2.4ms)
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 (2.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 (19.8ms)
Started GET "/simple_cart/cart" for 127.0.0.1 at 2016-03-11 02:40:58 +0200
Processing by SimpleCart::CartsController#show as HTML
[1m[36mItem Load (0.2ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", 2]]
[1m[35mItem Load (0.1ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mBicycle Load (0.2ms)[0m [1mSELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mItem Load (0.1ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 3]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "2"]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "1"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1[0m [["id", "1"]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "3"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "2"]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "1"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1[0m [["id", "1"]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "3"]]
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml within layouts/simple_cart/application (31.7ms)
Completed 200 OK in 224ms (Views: 220.7ms | ActiveRecord: 1.6ms)
Started GET "/assets/simple_cart/application.self-2f12d59583468bdcee27c6046669f62a778d265fc91cf385e5d36e9189ac822e.css?body=1" for 127.0.0.1 at 2016-03-11 02:40:59 +0200
Started GET "/assets/simple_cart/application.self-8f06a73c35179188914ab50e057157639fce1401c1cdca640ac9cec33746fc5b.js?body=1" for 127.0.0.1 at 2016-03-11 02:40:59 +0200
Started GET "/simple_cart/cart" for 127.0.0.1 at 2016-03-11 02:41:42 +0200
Processing by SimpleCart::CartsController#show as HTML
[1m[36mItem Load (0.2ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", 2]]
[1m[35mItem Load (0.2ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mBicycle Load (0.2ms)[0m [1mSELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mItem Load (0.1ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 3]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "2"]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "1"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1[0m [["id", "1"]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "3"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "2"]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "1"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1[0m [["id", "1"]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "3"]]
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml within layouts/simple_cart/application (47.9ms)
Completed 200 OK in 72ms (Views: 68.1ms | ActiveRecord: 1.7ms)
Started GET "/assets/simple_cart/application.self-2f12d59583468bdcee27c6046669f62a778d265fc91cf385e5d36e9189ac822e.css?body=1" for 127.0.0.1 at 2016-03-11 02:41:43 +0200
Started GET "/assets/simple_cart/application.self-8f06a73c35179188914ab50e057157639fce1401c1cdca640ac9cec33746fc5b.js?body=1" for 127.0.0.1 at 2016-03-11 02:41:43 +0200
Started GET "/items" for 127.0.0.1 at 2016-03-11 02:41:47 +0200
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
Processing by ItemsController#index as HTML
[1m[35mItem Load (0.1ms)[0m SELECT "items".* FROM "items"
Rendered items/index.html.erb (12.7ms)
Completed 200 OK in 32ms (Views: 30.2ms | ActiveRecord: 0.4ms)
Started GET "/items/1" for 127.0.0.1 at 2016-03-11 02:41:50 +0200
Processing by ItemsController#show as HTML
Parameters: {"id"=>"1"}
[1m[36mItem Load (0.2ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", 1]]
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/_buy.html.haml (17.1ms)
Rendered items/show.html.erb (22.9ms)
Completed 200 OK in 32ms (Views: 25.0ms | ActiveRecord: 0.2ms)
Started POST "/simple_cart/cart/1" for 127.0.0.1 at 2016-03-11 02:41:51 +0200
Processing by SimpleCart::CartsController#add as HTML
Parameters: {"utf8"=>"✓", "authenticity_token"=>"8zT4Ci3WmEBG7zB1h719ynTBKjaDU/anln7yPlKjSko1JMUGtgCUtk+SmR6U+AS+Nzdocw9zJ7mc8AlfP7Tk2w==", "qty"=>"1", "klass"=>"Item", "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-11 02:41:51 +0200
Processing by SimpleCart::CartsController#show as HTML
[1m[35mItem Load (0.1ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 2]]
[1m[36mItem Load (0.1ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mBicycle Load (0.2ms)[0m SELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mItem Load (0.1ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", 3]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "2"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "1"]]
[1m[35mCACHE (0.0ms)[0m SELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1 [["id", "1"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "3"]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "2"]]
[1m[36mCACHE (0.1ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "1"]]
[1m[35mCACHE (0.0ms)[0m SELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1 [["id", "1"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "3"]]
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml within layouts/simple_cart/application (45.0ms)
Completed 200 OK in 305ms (Views: 303.2ms | ActiveRecord: 1.0ms)
Started GET "/" for 127.0.0.1 at 2016-03-11 15:05:51 +0200
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
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 (7.1ms)
Completed 200 OK in 58ms (Views: 58.3ms | ActiveRecord: 0.0ms)
Started GET "/items" for 127.0.0.1 at 2016-03-11 15:05:55 +0200
Processing by ItemsController#index as HTML
[1m[35mItem Load (0.1ms)[0m SELECT "items".* FROM "items"
Rendered items/index.html.erb (30.4ms)
Completed 200 OK in 55ms (Views: 36.7ms | ActiveRecord: 0.4ms)
Started GET "/items/2" for 127.0.0.1 at 2016-03-11 15:05:57 +0200
Processing by ItemsController#show as HTML
Parameters: {"id"=>"2"}
[1m[36mItem Load (0.2ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", 2]]
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/_buy.html.haml (88.8ms)
Rendered items/show.html.erb (125.8ms)
Completed 200 OK in 191ms (Views: 142.8ms | ActiveRecord: 0.2ms)
Started POST "/simple_cart/cart/2" for 127.0.0.1 at 2016-03-11 15:06:00 +0200
Processing by SimpleCart::CartsController#add as HTML
Parameters: {"utf8"=>"✓", "authenticity_token"=>"h+3mA8shhRP9TP12BSlZTg6wY221gTvMcvjdjbRst7xB/dsPUPeJ5fQxVB0WbCA6TUYhKDmh6tJ4dibs2XsZLQ==", "qty"=>"3", "klass"=>"Item", "commit"=>"Add to cart", "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-11 15:06:00 +0200
Processing by SimpleCart::CartsController#show as HTML
[1m[35mItem Load (0.1ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 2]]
[1m[36mItem Load (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mBicycle Load (0.2ms)[0m SELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mItem Load (0.1ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", 3]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "2"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "1"]]
[1m[35mCACHE (0.0ms)[0m SELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1 [["id", "1"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "3"]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "2"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "1"]]
[1m[35mCACHE (0.0ms)[0m SELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1 [["id", "1"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "3"]]
Rendered /home/leksster/ror/Rubygarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml within layouts/simple_cart/application (38.1ms)
Completed 200 OK in 464ms (Views: 463.3ms | ActiveRecord: 0.6ms)
Started GET "/" for 127.0.0.1 at 2016-03-12 13:58:56 +0200
[1m[36mActiveRecord::SchemaMigration Load (0.2ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
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 (6.9ms)
Completed 200 OK in 174ms (Views: 173.3ms | ActiveRecord: 0.0ms)
Started GET "/" for 127.0.0.1 at 2016-03-12 13:58:57 +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.0ms)
Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms)
Started GET "/items" for 127.0.0.1 at 2016-03-12 13:59:00 +0200
Processing by ItemsController#index as HTML
[1m[35mItem Load (0.2ms)[0m SELECT "items".* FROM "items"
Rendered items/index.html.erb (47.2ms)
Completed 200 OK in 137ms (Views: 94.5ms | ActiveRecord: 0.4ms)
Started GET "/items/3" for 127.0.0.1 at 2016-03-12 14:01:08 +0200
Processing by ItemsController#show as HTML
Parameters: {"id"=>"3"}
[1m[36mItem Load (0.2ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", 3]]
Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/carts/_buy.html.haml (88.9ms)
Rendered items/show.html.erb (125.9ms)
Completed 200 OK in 183ms (Views: 143.7ms | ActiveRecord: 0.2ms)
Started POST "/simple_cart/cart/3" for 127.0.0.1 at 2016-03-12 14:01:12 +0200
Processing by SimpleCart::CartsController#add as HTML
Parameters: {"utf8"=>"✓", "authenticity_token"=>"dhKzCuM4XjienpUNJujGQREH1dQP8GEWjclgbFdtvBywAo4GeO5SzpfjPGY1rb81UvGXkYPQsAiHR5sNOnoSjQ==", "qty"=>"3", "klass"=>"Item", "commit"=>"Add to cart", "item_id"=>"3"}
Redirected to http://localhost:3000/simple_cart/cart
Completed 302 Found in 40ms (ActiveRecord: 0.0ms)
Started GET "/simple_cart/cart" for 127.0.0.1 at 2016-03-12 14:01:12 +0200
Processing by SimpleCart::CartsController#show as HTML
[1m[35mItem Load (0.2ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 2]]
[1m[36mItem Load (0.1ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mBicycle Load (0.2ms)[0m SELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mItem Load (0.1ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", 3]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "2"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "1"]]
[1m[35mCACHE (0.0ms)[0m SELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1 [["id", "1"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "3"]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "2"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "1"]]
[1m[35mCACHE (0.0ms)[0m SELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1 [["id", "1"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "3"]]
Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml within layouts/simple_cart/application (69.1ms)
Completed 200 OK in 2880ms (Views: 2879.2ms | ActiveRecord: 0.8ms)
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
[1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
Migrating to CreateOrderItems (20160312122333)
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
Migrating to CreateOrderItems (20160312122333)
[1m[35m (0.1ms)[0m begin transaction
[1m[36m (0.3ms)[0m [1mCREATE TABLE "order_items" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "price" decimal, "qty" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "itemable_id" integer, "itemable_type" varchar) [0m
[1m[35m (0.3ms)[0m select sqlite_version(*)
[1m[36m (0.1ms)[0m [1mCREATE INDEX "index_order_items_on_itemable_id" ON "order_items" ("itemable_id")[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20160312122333"]]
[1m[36m (64.8ms)[0m [1mcommit transaction[0m
[1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
[1m[36m (0.2ms)[0m [1m SELECT sql
FROM sqlite_master
WHERE name='index_order_items_on_itemable_id' AND type='index'
UNION ALL
SELECT sql
FROM sqlite_temp_master
WHERE name='index_order_items_on_itemable_id' AND type='index'
[0m
[1m[36mOrderItem Load (1.5ms)[0m [1mSELECT "order_items".* FROM "order_items"[0m
[1m[35m (0.1ms)[0m begin transaction
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "order_items" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", "2016-03-12 12:28:05.980160"], ["updated_at", "2016-03-12 12:28:05.980160"]]
[1m[35m (65.0ms)[0m commit transaction
[1m[36mOrderItem Load (0.2ms)[0m [1mSELECT "order_items".* FROM "order_items" ORDER BY "order_items"."id" ASC LIMIT 1[0m
[1m[35mOrderItem Load (0.2ms)[0m SELECT "order_items".* FROM "order_items" ORDER BY "order_items"."id" ASC LIMIT 1
[1m[36mItem Load (0.1ms)[0m [1mSELECT "items".* FROM "items" ORDER BY "items"."id" ASC LIMIT 1[0m
[1m[35mItem Load (0.2ms)[0m SELECT "items".* FROM "items" ORDER BY "items"."id" ASC LIMIT 1
[1m[36mOrderItem Load (0.2ms)[0m [1mSELECT "order_items".* FROM "order_items" WHERE "order_items"."itemable_id" = ? AND "order_items"."itemable_type" = ?[0m [["itemable_id", 1], ["itemable_type", "Item"]]
[1m[35mItem Load (0.2ms)[0m SELECT "items".* FROM "items" ORDER BY "items"."id" ASC LIMIT 1
[1m[36mOrderItem Load (0.1ms)[0m [1mSELECT "order_items".* FROM "order_items" ORDER BY "order_items"."id" ASC LIMIT 1[0m
[1m[35m (0.0ms)[0m begin transaction
[1m[36mSQL (0.2ms)[0m [1mUPDATE "order_items" SET "itemable_id" = ?, "itemable_type" = ?, "updated_at" = ? WHERE "order_items"."id" = ?[0m [["itemable_id", 1], ["itemable_type", "Item"], ["updated_at", "2016-03-12 12:29:14.226399"], ["id", 1]]
[1m[35m (56.2ms)[0m commit transaction
[1m[36mOrderItem Load (0.1ms)[0m [1mSELECT "order_items".* FROM "order_items" WHERE "order_items"."itemable_id" = ? AND "order_items"."itemable_type" = ?[0m [["itemable_id", 1], ["itemable_type", "Item"]]
[1m[35mOrderItem Load (0.3ms)[0m SELECT "order_items".* FROM "order_items" ORDER BY "order_items"."id" ASC LIMIT 1
[1m[36mItem Load (0.2ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mItem Load (0.3ms)[0m SELECT "items".* FROM "items" ORDER BY "items"."id" DESC LIMIT 1
[1m[36mItem Load (0.3ms)[0m [1mSELECT "items".* FROM "items" ORDER BY "items"."id" ASC LIMIT 1[0m
Started GET "/" for 127.0.0.1 at 2016-03-12 14:34:07 +0200
[1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
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.1ms)
Completed 200 OK in 1ms (Views: 0.8ms | ActiveRecord: 0.0ms)
Started GET "/" for 127.0.0.1 at 2016-03-12 14:34:07 +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.0ms)
Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)
Started GET "/items" for 127.0.0.1 at 2016-03-12 14:34:18 +0200
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
Processing by ItemsController#index as HTML
[1m[35mItem Load (0.2ms)[0m SELECT "items".* FROM "items"
Rendered items/index.html.erb (15.5ms)
Completed 200 OK in 35ms (Views: 21.1ms | ActiveRecord: 0.5ms)
Started GET "/items" for 127.0.0.1 at 2016-03-12 14:34:18 +0200
Processing by ItemsController#index as HTML
[1m[36mItem Load (0.2ms)[0m [1mSELECT "items".* FROM "items"[0m
Rendered items/index.html.erb (2.8ms)
Completed 200 OK in 5ms (Views: 4.4ms | ActiveRecord: 0.2ms)
Started GET "/items/3" for 127.0.0.1 at 2016-03-12 14:34:19 +0200
Processing by ItemsController#show as HTML
Parameters: {"id"=>"3"}
[1m[35mItem Load (0.3ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 3]]
Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/carts/_buy.html.haml (14.4ms)
Rendered items/show.html.erb (17.6ms)
Completed 200 OK in 28ms (Views: 19.3ms | ActiveRecord: 0.3ms)
Started POST "/simple_cart/cart/3" for 127.0.0.1 at 2016-03-12 14:34:20 +0200
Processing by SimpleCart::CartsController#add as HTML
Parameters: {"utf8"=>"✓", "authenticity_token"=>"A9Zi+ix7IAHW3ti/KaVPAcPoM6S2pH/Op5ybHcbKHonFxl/2t60s99+jcdQ64DZ1gB5x4TqErtCtEmB8q92wGA==", "qty"=>"1", "klass"=>"Item", "commit"=>"Add to cart", "item_id"=>"3"}
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-12 14:34:20 +0200
Processing by SimpleCart::CartsController#show as HTML
[1m[36mItem Load (0.1ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", 2]]
[1m[35mItem Load (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mBicycle Load (0.2ms)[0m [1mSELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mItem Load (0.1ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 3]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "2"]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "1"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1[0m [["id", "1"]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "3"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "2"]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "1"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1[0m [["id", "1"]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "3"]]
Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml within layouts/simple_cart/application (32.2ms)
Completed 200 OK in 236ms (Views: 234.5ms | ActiveRecord: 0.7ms)
Started GET "/simple_cart/cart/checkout" for 127.0.0.1 at 2016-03-12 14:34:22 +0200
ActionController::RoutingError (No route matches [GET] "/simple_cart/cart/checkout"):
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.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/_trace.html.erb (1.4ms)
Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/routes/_route.html.erb (1.5ms)
Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/routes/_route.html.erb (0.5ms)
Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/routes/_table.html.erb (12.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 (1.3ms)
Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/rescues/routing_error.html.erb within rescues/layout (53.1ms)
Started GET "/simple_cart/cart/checkout" for 127.0.0.1 at 2016-03-12 14:34:48 +0200
Processing by SimpleCart::CartsController#checkout as HTML
[1m[36mItem Load (0.1ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", 2]]
[1m[35mItem Load (0.1ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mBicycle Load (0.1ms)[0m [1mSELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mItem Load (0.1ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 3]]
Redirected to http://localhost:3000/simple_cart/cart
Completed 302 Found in 40ms (ActiveRecord: 1.7ms)
[1m[36mOrderItem Load (0.2ms)[0m [1mSELECT "order_items".* FROM "order_items"[0m
Started GET "/simple_cart/cart" for 127.0.0.1 at 2016-03-12 14:34:49 +0200
Processing by SimpleCart::CartsController#show as HTML
[1m[35mItem Load (0.1ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 2]]
[1m[36mItem Load (0.1ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mBicycle Load (0.4ms)[0m SELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mItem Load (0.1ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", 3]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "2"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "1"]]
[1m[35mCACHE (0.0ms)[0m SELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1 [["id", "1"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "3"]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "2"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "1"]]
[1m[35mCACHE (0.0ms)[0m SELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1 [["id", "1"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "3"]]
Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml within layouts/simple_cart/application (25.5ms)
Completed 200 OK in 45ms (Views: 43.5ms | ActiveRecord: 0.8ms)
Started GET "/simple_cart/cart/checkout" for 127.0.0.1 at 2016-03-12 14:34:50 +0200
Processing by SimpleCart::CartsController#checkout as HTML
[1m[35mItem Load (0.1ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 2]]
[1m[36mItem Load (0.1ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mBicycle Load (0.1ms)[0m SELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mItem Load (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", 3]]
Redirected to http://localhost:3000/simple_cart/cart
Completed 302 Found in 4ms (ActiveRecord: 0.3ms)
[1m[35mOrderItem Load (0.2ms)[0m SELECT "order_items".* FROM "order_items"
Started GET "/simple_cart/cart" for 127.0.0.1 at 2016-03-12 14:34:50 +0200
Processing by SimpleCart::CartsController#show as HTML
[1m[36mItem Load (0.1ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", 2]]
[1m[35mItem Load (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mBicycle Load (0.0ms)[0m [1mSELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mItem Load (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 3]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "2"]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "1"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1[0m [["id", "1"]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "3"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "2"]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "1"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1[0m [["id", "1"]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "3"]]
Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml within layouts/simple_cart/application (19.9ms)
Completed 200 OK in 38ms (Views: 37.0ms | ActiveRecord: 0.3ms)
Started GET "/simple_cart/cart/checkout" for 127.0.0.1 at 2016-03-12 14:34:53 +0200
Processing by SimpleCart::CartsController#checkout as HTML
[1m[36mItem Load (0.1ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", 2]]
[1m[35mItem Load (0.1ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mBicycle Load (0.1ms)[0m [1mSELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mItem Load (0.1ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 3]]
Redirected to http://localhost:3000/simple_cart/cart
Completed 302 Found in 4ms (ActiveRecord: 0.4ms)
[1m[36mOrderItem Load (0.2ms)[0m [1mSELECT "order_items".* FROM "order_items"[0m
Started GET "/simple_cart/cart" for 127.0.0.1 at 2016-03-12 14:34:53 +0200
Processing by SimpleCart::CartsController#show as HTML
[1m[35mItem Load (0.1ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 2]]
[1m[36mItem Load (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mBicycle Load (0.0ms)[0m SELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mItem Load (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", 3]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "2"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "1"]]
[1m[35mCACHE (0.0ms)[0m SELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1 [["id", "1"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "3"]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "2"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "1"]]
[1m[35mCACHE (0.0ms)[0m SELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1 [["id", "1"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "3"]]
Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml within layouts/simple_cart/application (19.5ms)
Completed 200 OK in 30ms (Views: 29.8ms | ActiveRecord: 0.3ms)
Started GET "/simple_cart/cart/checkout" for 127.0.0.1 at 2016-03-12 14:34:54 +0200
Processing by SimpleCart::CartsController#checkout as HTML
[1m[35mItem Load (0.1ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 2]]
[1m[36mItem Load (0.1ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mBicycle Load (0.1ms)[0m SELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mItem Load (0.1ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", 3]]
Redirected to http://localhost:3000/simple_cart/cart
Completed 302 Found in 4ms (ActiveRecord: 0.4ms)
[1m[35mOrderItem Load (0.2ms)[0m SELECT "order_items".* FROM "order_items"
Started GET "/simple_cart/cart" for 127.0.0.1 at 2016-03-12 14:34:54 +0200
Processing by SimpleCart::CartsController#show as HTML
[1m[36mItem Load (0.1ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", 2]]
[1m[35mItem Load (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mBicycle Load (0.0ms)[0m [1mSELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mItem Load (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 3]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "2"]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "1"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1[0m [["id", "1"]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "3"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "2"]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "1"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1[0m [["id", "1"]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "3"]]
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 27ms (Views: 25.9ms | ActiveRecord: 0.3ms)
[1m[35mOrderItem Load (0.5ms)[0m SELECT "order_items".* FROM "order_items"
[1m[36mOrderItem Load (0.2ms)[0m [1mSELECT "order_items".* FROM "order_items" ORDER BY "order_items"."id" ASC LIMIT 1[0m
[1m[35mBicycle Load (0.1ms)[0m SELECT "bicycles".* FROM "bicycles" ORDER BY "bicycles"."id" ASC LIMIT 1
[1m[36mOrderItem Load (0.3ms)[0m [1mSELECT "order_items".* FROM "order_items" ORDER BY "order_items"."id" ASC LIMIT 1[0m
[1m[35mOrderItem Load (0.3ms)[0m SELECT "order_items".* FROM "order_items" ORDER BY "order_items"."id" ASC LIMIT 1
[1m[36mItem Load (0.2ms)[0m [1mSELECT "items".* FROM "items" ORDER BY "items"."id" DESC LIMIT 1[0m
[1m[35mOrderItem Load (0.2ms)[0m SELECT "order_items".* FROM "order_items" ORDER BY "order_items"."id" ASC LIMIT 1
[1m[36mOrderItem Load (0.3ms)[0m [1mSELECT "order_items".* FROM "order_items" ORDER BY "order_items"."id" ASC LIMIT 1[0m
[1m[35mItem Load (0.2ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mBicycle Load (0.3ms)[0m [1mSELECT "bicycles".* FROM "bicycles" ORDER BY "bicycles"."id" ASC LIMIT 1[0m
Started GET "/simple_cart/cart" for 127.0.0.1 at 2016-03-12 14:37:24 +0200
Processing by SimpleCart::CartsController#show as HTML
[1m[36mItem Load (0.1ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", 2]]
[1m[35mItem Load (0.1ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mBicycle Load (0.1ms)[0m [1mSELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mItem Load (0.1ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 3]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "2"]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "1"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1[0m [["id", "1"]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "3"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "2"]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "1"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1[0m [["id", "1"]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "3"]]
Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml within layouts/simple_cart/application (26.4ms)
Completed 200 OK in 39ms (Views: 36.6ms | ActiveRecord: 1.2ms)
Started GET "/assets/simple_cart/application.self-2f12d59583468bdcee27c6046669f62a778d265fc91cf385e5d36e9189ac822e.css?body=1" for 127.0.0.1 at 2016-03-12 14:37:24 +0200
Started GET "/assets/simple_cart/application.self-8f06a73c35179188914ab50e057157639fce1401c1cdca640ac9cec33746fc5b.js?body=1" for 127.0.0.1 at 2016-03-12 14:37:24 +0200
Started GET "/simple_cart/cart/checkout" for 127.0.0.1 at 2016-03-12 14:37:25 +0200
Processing by SimpleCart::CartsController#checkout as HTML
[1m[36mItem Load (0.2ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", 2]]
[1m[35mItem Load (0.1ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mBicycle Load (0.1ms)[0m [1mSELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mItem Load (0.1ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 3]]
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
[1m[35mSQL (0.3ms)[0m INSERT INTO "order_items" ("price", "itemable_id", "itemable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["price", 25412.0], ["itemable_id", 2], ["itemable_type", "Item"], ["created_at", "2016-03-12 12:37:25.949522"], ["updated_at", "2016-03-12 12:37:25.949522"]]
[1m[36m (209.9ms)[0m [1mcommit transaction[0m
[1m[35m (0.1ms)[0m begin transaction
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "order_items" ("price", "itemable_id", "itemable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["price", 2.0], ["itemable_id", 1], ["itemable_type", "Item"], ["created_at", "2016-03-12 12:37:26.161563"], ["updated_at", "2016-03-12 12:37:26.161563"]]
[1m[35m (50.3ms)[0m commit transaction
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "order_items" ("price", "itemable_id", "itemable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["price", 22.0], ["itemable_id", 1], ["itemable_type", "Bicycle"], ["created_at", "2016-03-12 12:37:26.213600"], ["updated_at", "2016-03-12 12:37:26.213600"]]
[1m[36m (67.0ms)[0m [1mcommit transaction[0m
[1m[35m (0.1ms)[0m begin transaction
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "order_items" ("price", "itemable_id", "itemable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["price", 25.0], ["itemable_id", 3], ["itemable_type", "Item"], ["created_at", "2016-03-12 12:37:26.282684"], ["updated_at", "2016-03-12 12:37:26.282684"]]
[1m[35m (87.0ms)[0m commit transaction
Redirected to http://localhost:3000/simple_cart/cart
Completed 302 Found in 432ms (ActiveRecord: 416.0ms)
[1m[36mOrderItem Load (0.2ms)[0m [1mSELECT "order_items".* FROM "order_items"[0m
Started GET "/simple_cart/cart" for 127.0.0.1 at 2016-03-12 14:37:26 +0200
Processing by SimpleCart::CartsController#show as HTML
[1m[35mItem Load (0.1ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 2]]
[1m[36mItem Load (0.1ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mBicycle Load (0.1ms)[0m SELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mItem Load (0.1ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", 3]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "2"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "1"]]
[1m[35mCACHE (0.0ms)[0m SELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1 [["id", "1"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "3"]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "2"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "1"]]
[1m[35mCACHE (0.0ms)[0m SELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1 [["id", "1"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "3"]]
Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml within layouts/simple_cart/application (20.3ms)
Completed 200 OK in 33ms (Views: 31.9ms | ActiveRecord: 0.5ms)
[1m[35mOrderItem Load (0.5ms)[0m SELECT "order_items".* FROM "order_items"
[1m[36mSQL (63.4ms)[0m [1mDELETE FROM "order_items"[0m
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
[1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
Migrating to CreateOrderItems (20160312122333)
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
[1m[35m (0.1ms)[0m SELECT sql
FROM sqlite_master
WHERE name='index_order_items_on_itemable_id' AND type='index'
UNION ALL
SELECT sql
FROM sqlite_temp_master
WHERE name='index_order_items_on_itemable_id' AND type='index'
[1m[36m (0.3ms)[0m [1mDROP INDEX "index_order_items_on_itemable_id"[0m
[1m[35m (0.3ms)[0m DROP TABLE "order_items"
[1m[36mSQL (0.3ms)[0m [1mDELETE FROM "schema_migrations" WHERE "schema_migrations"."version" = ?[0m [["version", "20160312122333"]]
[1m[35m (68.5ms)[0m commit transaction
[1m[36mActiveRecord::SchemaMigration Load (0.2ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
Migrating to CreateOrderItems (20160312124601)
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
Migrating to CreateOrderItems (20160312124601)
[1m[35m (0.3ms)[0m begin transaction
[1m[36m (0.3ms)[0m [1mCREATE TABLE "order_items" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "price" decimal, "qty" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "itemable_id" integer, "itemable_type" varchar, "order_id" varchar) [0m
[1m[35m (0.0ms)[0m select sqlite_version(*)
[1m[36m (0.1ms)[0m [1mCREATE INDEX "index_order_items_on_itemable_id" ON "order_items" ("itemable_id")[0m
[1m[35m (0.1ms)[0m SELECT sql
FROM sqlite_master
WHERE name='index_order_items_on_itemable_id' AND type='index'
UNION ALL
SELECT sql
FROM sqlite_temp_master
WHERE name='index_order_items_on_itemable_id' AND type='index'
[1m[36m (0.1ms)[0m [1mCREATE INDEX "index_order_items_on_order_id" ON "order_items" ("order_id")[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20160312124601"]]
[1m[36m (99.3ms)[0m [1mcommit transaction[0m
Migrating to CreateOrder (20160312124602)
[1m[35m (0.1ms)[0m begin transaction
[1m[36m (0.3ms)[0m [1mCREATE TABLE "orders" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "total_price" decimal(10,2), "completed_date" date, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "shipping_id" integer, "aasm_state" varchar) [0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20160312124602"]]
[1m[36m (88.1ms)[0m [1mcommit transaction[0m
[1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
[1m[36m (0.2ms)[0m [1m SELECT sql
FROM sqlite_master
WHERE name='index_order_items_on_order_id' AND type='index'
UNION ALL
SELECT sql
FROM sqlite_temp_master
WHERE name='index_order_items_on_order_id' AND type='index'
[0m
[1m[35m (1.1ms)[0m SELECT sql
FROM sqlite_master
WHERE name='index_order_items_on_itemable_id' AND type='index'
UNION ALL
SELECT sql
FROM sqlite_temp_master
WHERE name='index_order_items_on_itemable_id' AND type='index'
[1m[36mOrderItem Load (0.8ms)[0m [1mSELECT "order_items".* FROM "order_items"[0m
[1m[35m (0.1ms)[0m begin transaction
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "order_items" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", "2016-03-12 12:48:26.473243"], ["updated_at", "2016-03-12 12:48:26.473243"]]
[1m[35m (56.7ms)[0m commit transaction
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
[1m[35mSQL (0.3ms)[0m INSERT INTO "orders" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-03-12 12:48:37.553295"], ["updated_at", "2016-03-12 12:48:37.553295"]]
[1m[36m (63.5ms)[0m [1mcommit transaction[0m
[1m[35m (0.1ms)[0m begin transaction
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "orders" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", "2016-03-12 12:49:00.748309"], ["updated_at", "2016-03-12 12:49:00.748309"]]
[1m[35m (83.4ms)[0m commit transaction
[1m[36mOrderItem Load (0.2ms)[0m [1mSELECT "order_items".* FROM "order_items" ORDER BY "order_items"."id" ASC LIMIT 1[0m
[1m[35m (0.1ms)[0m begin transaction
[1m[36mSQL (0.2ms)[0m [1mUPDATE "order_items" SET "order_id" = ?, "updated_at" = ? WHERE "order_items"."id" = ?[0m [["order_id", "2"], ["updated_at", "2016-03-12 12:49:00.858033"], ["id", 1]]
[1m[35m (72.4ms)[0m commit transaction
[1m[36mOrderItem Load (0.2ms)[0m [1mSELECT "order_items".* FROM "order_items" WHERE "order_items"."order_id" = ?[0m [["order_id", "2"]]
[1m[35mSQL (58.6ms)[0m DELETE FROM "orders"
[1m[36mOrder Load (0.2ms)[0m [1mSELECT "orders".* FROM "orders"[0m
[1m[35mSQL (58.4ms)[0m DELETE FROM "order_items"
Started GET "/simple_cart/cart" for 127.0.0.1 at 2016-03-12 14:49:40 +0200
[1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
Processing by SimpleCart::CartsController#show as HTML
[1m[36mItem Load (0.1ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", 2]]
[1m[35mItem Load (0.1ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mBicycle Load (0.1ms)[0m [1mSELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mItem Load (0.1ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 3]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "2"]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "1"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1[0m [["id", "1"]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "3"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "2"]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "1"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1[0m [["id", "1"]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "3"]]
Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml within layouts/simple_cart/application (24.1ms)
Completed 200 OK in 40ms (Views: 37.2ms | ActiveRecord: 0.9ms)
Started GET "/assets/simple_cart/application.self-2f12d59583468bdcee27c6046669f62a778d265fc91cf385e5d36e9189ac822e.css?body=1" for 127.0.0.1 at 2016-03-12 14:49:40 +0200
Started GET "/assets/simple_cart/application.self-8f06a73c35179188914ab50e057157639fce1401c1cdca640ac9cec33746fc5b.js?body=1" for 127.0.0.1 at 2016-03-12 14:49:40 +0200
Started GET "/simple_cart/cart/checkout" for 127.0.0.1 at 2016-03-12 14:49:48 +0200
Processing by SimpleCart::CartsController#checkout as HTML
[1m[36mItem Load (0.1ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", 2]]
[1m[35mItem Load (0.1ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mBicycle Load (0.1ms)[0m [1mSELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mItem Load (0.1ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 3]]
[1m[36m (0.3ms)[0m [1mbegin transaction[0m
[1m[35mSQL (0.3ms)[0m INSERT INTO "order_items" ("price", "itemable_id", "itemable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["price", 25412.0], ["itemable_id", 2], ["itemable_type", "Item"], ["created_at", "2016-03-12 12:49:48.164862"], ["updated_at", "2016-03-12 12:49:48.164862"]]
[1m[36m (63.3ms)[0m [1mcommit transaction[0m
[1m[35m (0.1ms)[0m begin transaction
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "order_items" ("price", "itemable_id", "itemable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["price", 2.0], ["itemable_id", 1], ["itemable_type", "Item"], ["created_at", "2016-03-12 12:49:48.230460"], ["updated_at", "2016-03-12 12:49:48.230460"]]
[1m[35m (49.8ms)[0m commit transaction
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "order_items" ("price", "itemable_id", "itemable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["price", 22.0], ["itemable_id", 1], ["itemable_type", "Bicycle"], ["created_at", "2016-03-12 12:49:48.282324"], ["updated_at", "2016-03-12 12:49:48.282324"]]
[1m[36m (50.4ms)[0m [1mcommit transaction[0m
[1m[35m (0.1ms)[0m begin transaction
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "order_items" ("price", "itemable_id", "itemable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["price", 25.0], ["itemable_id", 3], ["itemable_type", "Item"], ["created_at", "2016-03-12 12:49:48.334443"], ["updated_at", "2016-03-12 12:49:48.334443"]]
[1m[35m (176.1ms)[0m commit transaction
Redirected to http://localhost:3000/simple_cart/cart
Completed 302 Found in 361ms (ActiveRecord: 341.9ms)
[1m[36mOrderItem Load (0.2ms)[0m [1mSELECT "order_items".* FROM "order_items"[0m
Started GET "/simple_cart/cart" for 127.0.0.1 at 2016-03-12 14:49:48 +0200
Processing by SimpleCart::CartsController#show as HTML
[1m[35mItem Load (0.1ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 2]]
[1m[36mItem Load (0.1ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mBicycle Load (0.0ms)[0m SELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mItem Load (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", 3]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "2"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "1"]]
[1m[35mCACHE (0.0ms)[0m SELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1 [["id", "1"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "3"]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "2"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "1"]]
[1m[35mCACHE (0.0ms)[0m SELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1 [["id", "1"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "3"]]
Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml within layouts/simple_cart/application (16.4ms)
Completed 200 OK in 28ms (Views: 26.9ms | ActiveRecord: 0.4ms)
[1m[36mOrderItem Load (0.3ms)[0m [1mSELECT "order_items".* FROM "order_items"[0m
Started GET "/simple_cart/cart" for 127.0.0.1 at 2016-03-12 14:51:52 +0200
Processing by SimpleCart::CartsController#show as HTML
[1m[35mItem Load (0.1ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 2]]
[1m[36mItem Load (0.1ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mBicycle Load (0.1ms)[0m SELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mItem Load (0.1ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", 3]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "2"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "1"]]
[1m[35mCACHE (0.0ms)[0m SELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1 [["id", "1"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "3"]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "2"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "1"]]
[1m[35mCACHE (0.0ms)[0m SELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1 [["id", "1"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "3"]]
Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml within layouts/simple_cart/application (24.1ms)
Completed 200 OK in 38ms (Views: 35.4ms | ActiveRecord: 1.0ms)
Started GET "/assets/simple_cart/application.self-2f12d59583468bdcee27c6046669f62a778d265fc91cf385e5d36e9189ac822e.css?body=1" for 127.0.0.1 at 2016-03-12 14:51:52 +0200
Started GET "/assets/simple_cart/application.self-8f06a73c35179188914ab50e057157639fce1401c1cdca640ac9cec33746fc5b.js?body=1" for 127.0.0.1 at 2016-03-12 14:51:52 +0200
Started GET "/simple_cart/cart/checkout" for 127.0.0.1 at 2016-03-12 14:51:53 +0200
Processing by SimpleCart::CartsController#checkout as HTML
[1m[35mItem Load (0.2ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 2]]
[1m[36mItem Load (0.1ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mBicycle Load (0.1ms)[0m SELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mItem Load (0.1ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", 3]]
[1m[35m (0.1ms)[0m begin transaction
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "order_items" ("price", "qty", "itemable_id", "itemable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["price", 25412.0], ["qty", 14], ["itemable_id", 2], ["itemable_type", "Item"], ["created_at", "2016-03-12 12:51:53.531471"], ["updated_at", "2016-03-12 12:51:53.531471"]]
[1m[35m (224.1ms)[0m commit transaction
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "order_items" ("price", "qty", "itemable_id", "itemable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["price", 2.0], ["qty", 10], ["itemable_id", 1], ["itemable_type", "Item"], ["created_at", "2016-03-12 12:51:53.757684"], ["updated_at", "2016-03-12 12:51:53.757684"]]
[1m[36m (50.0ms)[0m [1mcommit transaction[0m
[1m[35m (0.1ms)[0m begin transaction
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "order_items" ("price", "qty", "itemable_id", "itemable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["price", 22.0], ["qty", 1], ["itemable_id", 1], ["itemable_type", "Bicycle"], ["created_at", "2016-03-12 12:51:53.809420"], ["updated_at", "2016-03-12 12:51:53.809420"]]
[1m[35m (67.2ms)[0m commit transaction
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "order_items" ("price", "qty", "itemable_id", "itemable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["price", 25.0], ["qty", 5], ["itemable_id", 3], ["itemable_type", "Item"], ["created_at", "2016-03-12 12:51:53.878387"], ["updated_at", "2016-03-12 12:51:53.878387"]]
[1m[36m (66.9ms)[0m [1mcommit transaction[0m
Redirected to http://localhost:3000/simple_cart/cart
Completed 302 Found in 425ms (ActiveRecord: 410.1ms)
[1m[35mOrderItem Load (0.2ms)[0m SELECT "order_items".* FROM "order_items"
Started GET "/simple_cart/cart" for 127.0.0.1 at 2016-03-12 14:51:53 +0200
Processing by SimpleCart::CartsController#show as HTML
[1m[36mItem Load (0.1ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", 2]]
[1m[35mItem Load (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mBicycle Load (0.0ms)[0m [1mSELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mItem Load (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 3]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "2"]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "1"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1[0m [["id", "1"]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "3"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "2"]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "1"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1[0m [["id", "1"]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "3"]]
Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml within layouts/simple_cart/application (15.4ms)
Completed 200 OK in 27ms (Views: 25.9ms | ActiveRecord: 0.3ms)
[1m[35mSQL (221.1ms)[0m DELETE FROM "order_items"
Started GET "/simple_cart/cart/checkout" for 127.0.0.1 at 2016-03-12 14:52:00 +0200
Processing by SimpleCart::CartsController#checkout as HTML
[1m[36mItem Load (0.1ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", 2]]
[1m[35mItem Load (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mBicycle Load (0.1ms)[0m [1mSELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mItem Load (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 3]]
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "order_items" ("price", "qty", "itemable_id", "itemable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["price", 25412.0], ["qty", 14], ["itemable_id", 2], ["itemable_type", "Item"], ["created_at", "2016-03-12 12:52:00.719116"], ["updated_at", "2016-03-12 12:52:00.719116"]]
[1m[36m (69.1ms)[0m [1mcommit transaction[0m
[1m[35m (0.1ms)[0m begin transaction
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "order_items" ("price", "qty", "itemable_id", "itemable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["price", 2.0], ["qty", 10], ["itemable_id", 1], ["itemable_type", "Item"], ["created_at", "2016-03-12 12:52:00.789806"], ["updated_at", "2016-03-12 12:52:00.789806"]]
[1m[35m (50.2ms)[0m commit transaction
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "order_items" ("price", "qty", "itemable_id", "itemable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["price", 22.0], ["qty", 1], ["itemable_id", 1], ["itemable_type", "Bicycle"], ["created_at", "2016-03-12 12:52:00.841701"], ["updated_at", "2016-03-12 12:52:00.841701"]]
[1m[36m (58.7ms)[0m [1mcommit transaction[0m
[1m[35m (0.1ms)[0m begin transaction
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "order_items" ("price", "qty", "itemable_id", "itemable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["price", 25.0], ["qty", 5], ["itemable_id", 3], ["itemable_type", "Item"], ["created_at", "2016-03-12 12:52:00.902071"], ["updated_at", "2016-03-12 12:52:00.902071"]]
[1m[35m (101.7ms)[0m commit transaction
Redirected to http://localhost:3000/simple_cart/cart
Completed 302 Found in 288ms (ActiveRecord: 280.8ms)
[1m[36mOrderItem Load (0.1ms)[0m [1mSELECT "order_items".* FROM "order_items"[0m
Started GET "/simple_cart/cart" for 127.0.0.1 at 2016-03-12 14:52:01 +0200
Processing by SimpleCart::CartsController#show as HTML
[1m[35mItem Load (0.1ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 2]]
[1m[36mItem Load (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mBicycle Load (0.0ms)[0m SELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mItem Load (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", 3]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "2"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "1"]]
[1m[35mCACHE (0.0ms)[0m SELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1 [["id", "1"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "3"]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "2"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "1"]]
[1m[35mCACHE (0.0ms)[0m SELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1 [["id", "1"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "3"]]
Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml within layouts/simple_cart/application (14.5ms)
Completed 200 OK in 25ms (Views: 24.2ms | ActiveRecord: 0.3ms)
[1m[36mOrderItem Load (0.3ms)[0m [1mSELECT "order_items".* FROM "order_items"[0m
Started GET "/simple_cart/cart" for 127.0.0.1 at 2016-03-12 14:52:52 +0200
SyntaxError (/home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/controllers/simple_cart/carts_controller.rb:10: syntax error, unexpected tCONSTANT, expecting keyword_do or '{' or '('
redirect_to cart_url, alert: puts OrderItem.all
^):
/home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/controllers/simple_cart/carts_controller.rb:10: syntax error, unexpected tCONSTANT, expecting keyword_do or '{' or '('
redirect_to cart_url, alert: puts OrderItem.all
^
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'
activesupport (4.2.5.2) lib/active_support/inflector/methods.rb:263:in `const_get'
activesupport (4.2.5.2) lib/active_support/inflector/methods.rb:263:in `block in constantize'
activesupport (4.2.5.2) lib/active_support/inflector/methods.rb:259:in `each'
activesupport (4.2.5.2) lib/active_support/inflector/methods.rb:259:in `inject'
activesupport (4.2.5.2) lib/active_support/inflector/methods.rb:259:in `constantize'
activesupport (4.2.5.2) lib/active_support/dependencies.rb:566:in `get'
activesupport (4.2.5.2) lib/active_support/dependencies.rb:597:in `constantize'
actionpack (4.2.5.2) lib/action_dispatch/routing/route_set.rb:70:in `controller_reference'
actionpack (4.2.5.2) lib/action_dispatch/routing/route_set.rb:60:in `controller'
actionpack (4.2.5.2) lib/action_dispatch/routing/route_set.rb:39: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 (4.3ms)
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 (1.3ms)
Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/rescues/diagnostics.html.erb within rescues/layout (20.8ms)
Started GET "/simple_cart/cart" for 127.0.0.1 at 2016-03-12 14:53:02 +0200
Processing by SimpleCart::CartsController#show as HTML
[1m[35mItem Load (0.2ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 2]]
[1m[36mItem Load (0.1ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mBicycle Load (0.1ms)[0m SELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mItem Load (0.1ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", 3]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "2"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "1"]]
[1m[35mCACHE (0.0ms)[0m SELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1 [["id", "1"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "3"]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "2"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "1"]]
[1m[35mCACHE (0.0ms)[0m SELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1 [["id", "1"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "3"]]
Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml within layouts/simple_cart/application (27.3ms)
Completed 200 OK in 41ms (Views: 38.3ms | ActiveRecord: 1.3ms)
Started GET "/assets/simple_cart/application.self-2f12d59583468bdcee27c6046669f62a778d265fc91cf385e5d36e9189ac822e.css?body=1" for 127.0.0.1 at 2016-03-12 14:53:02 +0200
Started GET "/assets/simple_cart/application.self-8f06a73c35179188914ab50e057157639fce1401c1cdca640ac9cec33746fc5b.js?body=1" for 127.0.0.1 at 2016-03-12 14:53:02 +0200
Started GET "/simple_cart/cart" for 127.0.0.1 at 2016-03-12 14:53:10 +0200
Processing by SimpleCart::CartsController#show as HTML
[1m[35mItem Load (0.2ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 2]]
[1m[36mItem Load (0.1ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mBicycle Load (0.1ms)[0m SELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mItem Load (0.1ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", 3]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "2"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "1"]]
[1m[35mCACHE (0.0ms)[0m SELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1 [["id", "1"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "3"]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "2"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "1"]]
[1m[35mCACHE (0.0ms)[0m SELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1 [["id", "1"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "3"]]
Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml within layouts/simple_cart/application (25.4ms)
Completed 200 OK in 39ms (Views: 35.9ms | ActiveRecord: 1.3ms)
Started GET "/assets/simple_cart/application.self-8f06a73c35179188914ab50e057157639fce1401c1cdca640ac9cec33746fc5b.js?body=1" for 127.0.0.1 at 2016-03-12 14:53:10 +0200
Started GET "/assets/simple_cart/application.self-2f12d59583468bdcee27c6046669f62a778d265fc91cf385e5d36e9189ac822e.css?body=1" for 127.0.0.1 at 2016-03-12 14:53:10 +0200
Started GET "/simple_cart/cart/checkout" for 127.0.0.1 at 2016-03-12 14:53:11 +0200
Processing by SimpleCart::CartsController#checkout as HTML
[1m[35mItem Load (0.1ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 2]]
[1m[36mItem Load (0.1ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mBicycle Load (0.1ms)[0m SELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mItem Load (0.1ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", 3]]
[1m[35m (0.1ms)[0m begin transaction
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "order_items" ("price", "qty", "itemable_id", "itemable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["price", 25412.0], ["qty", 14], ["itemable_id", 2], ["itemable_type", "Item"], ["created_at", "2016-03-12 12:53:11.812433"], ["updated_at", "2016-03-12 12:53:11.812433"]]
[1m[35m (51.8ms)[0m commit transaction
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "order_items" ("price", "qty", "itemable_id", "itemable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["price", 2.0], ["qty", 10], ["itemable_id", 1], ["itemable_type", "Item"], ["created_at", "2016-03-12 12:53:11.866512"], ["updated_at", "2016-03-12 12:53:11.866512"]]
[1m[36m (50.3ms)[0m [1mcommit transaction[0m
[1m[35m (0.1ms)[0m begin transaction
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "order_items" ("price", "qty", "itemable_id", "itemable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["price", 22.0], ["qty", 1], ["itemable_id", 1], ["itemable_type", "Bicycle"], ["created_at", "2016-03-12 12:53:11.918866"], ["updated_at", "2016-03-12 12:53:11.918866"]]
[1m[35m (79.0ms)[0m commit transaction
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "order_items" ("price", "qty", "itemable_id", "itemable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["price", 25.0], ["qty", 5], ["itemable_id", 3], ["itemable_type", "Item"], ["created_at", "2016-03-12 12:53:12.000368"], ["updated_at", "2016-03-12 12:53:12.000368"]]
[1m[36m (99.8ms)[0m [1mcommit transaction[0m
Redirected to http://localhost:3000/simple_cart/cart
Completed 302 Found in 299ms (ActiveRecord: 282.7ms)
Started GET "/simple_cart/cart" for 127.0.0.1 at 2016-03-12 14:53:12 +0200
Processing by SimpleCart::CartsController#show as HTML
[1m[35mItem Load (0.1ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 2]]
[1m[36mItem Load (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mBicycle Load (0.0ms)[0m SELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mItem Load (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", 3]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "2"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "1"]]
[1m[35mCACHE (0.0ms)[0m SELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1 [["id", "1"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "3"]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "2"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "1"]]
[1m[35mCACHE (0.0ms)[0m SELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1 [["id", "1"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "3"]]
Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml within layouts/simple_cart/application (19.3ms)
Completed 200 OK in 31ms (Views: 29.6ms | ActiveRecord: 0.3ms)
Started GET "/simple_cart/cart" for 127.0.0.1 at 2016-03-12 14:53:41 +0200
Processing by SimpleCart::CartsController#show as HTML
[1m[35mItem Load (0.1ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 2]]
[1m[36mItem Load (0.1ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mBicycle Load (0.1ms)[0m SELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mItem Load (0.1ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", 3]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "2"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "1"]]
[1m[35mCACHE (0.0ms)[0m SELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1 [["id", "1"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "3"]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "2"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "1"]]
[1m[35mCACHE (0.0ms)[0m SELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1 [["id", "1"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "3"]]
Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml within layouts/simple_cart/application (23.3ms)
Completed 200 OK in 37ms (Views: 33.8ms | ActiveRecord: 1.0ms)
Started GET "/assets/simple_cart/application.self-2f12d59583468bdcee27c6046669f62a778d265fc91cf385e5d36e9189ac822e.css?body=1" for 127.0.0.1 at 2016-03-12 14:53:42 +0200
Started GET "/assets/simple_cart/application.self-8f06a73c35179188914ab50e057157639fce1401c1cdca640ac9cec33746fc5b.js?body=1" for 127.0.0.1 at 2016-03-12 14:53:42 +0200
Started GET "/simple_cart/cart/checkout" for 127.0.0.1 at 2016-03-12 14:53:43 +0200
Processing by SimpleCart::CartsController#checkout as HTML
[1m[35mItem Load (0.1ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 2]]
[1m[36mItem Load (0.1ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mBicycle Load (0.1ms)[0m SELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mItem Load (0.1ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", 3]]
[1m[35m (0.1ms)[0m begin transaction
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "order_items" ("price", "qty", "itemable_id", "itemable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["price", 25412.0], ["qty", 14], ["itemable_id", 2], ["itemable_type", "Item"], ["created_at", "2016-03-12 12:53:43.148420"], ["updated_at", "2016-03-12 12:53:43.148420"]]
[1m[35m (64.0ms)[0m commit transaction
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "order_items" ("price", "qty", "itemable_id", "itemable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["price", 2.0], ["qty", 10], ["itemable_id", 1], ["itemable_type", "Item"], ["created_at", "2016-03-12 12:53:43.214990"], ["updated_at", "2016-03-12 12:53:43.214990"]]
[1m[36m (284.5ms)[0m [1mcommit transaction[0m
[1m[35m (0.1ms)[0m begin transaction
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "order_items" ("price", "qty", "itemable_id", "itemable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["price", 22.0], ["qty", 1], ["itemable_id", 1], ["itemable_type", "Bicycle"], ["created_at", "2016-03-12 12:53:43.501317"], ["updated_at", "2016-03-12 12:53:43.501317"]]
[1m[35m (50.5ms)[0m commit transaction
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "order_items" ("price", "qty", "itemable_id", "itemable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["price", 25.0], ["qty", 5], ["itemable_id", 3], ["itemable_type", "Item"], ["created_at", "2016-03-12 12:53:43.553536"], ["updated_at", "2016-03-12 12:53:43.553536"]]
[1m[36m (67.2ms)[0m [1mcommit transaction[0m
[1m[35mOrderItem Load (0.2ms)[0m SELECT "order_items".* FROM "order_items"
Redirected to http://localhost:3000/simple_cart/cart
Completed 302 Found in 484ms (ActiveRecord: 468.3ms)
Started GET "/simple_cart/cart" for 127.0.0.1 at 2016-03-12 14:53:43 +0200
Processing by SimpleCart::CartsController#show as HTML
[1m[36mItem Load (0.1ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", 2]]
[1m[35mItem Load (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mBicycle Load (0.0ms)[0m [1mSELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mItem Load (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 3]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "2"]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "1"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1[0m [["id", "1"]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "3"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "2"]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "1"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1[0m [["id", "1"]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "3"]]
Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml within layouts/simple_cart/application (15.1ms)
Completed 200 OK in 26ms (Views: 24.9ms | ActiveRecord: 0.3ms)
Started GET "/simple_cart/cart" for 127.0.0.1 at 2016-03-12 14:54:55 +0200
Processing by SimpleCart::CartsController#show as HTML
[1m[36mItem Load (0.1ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", 2]]
[1m[35mItem Load (0.1ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mBicycle Load (0.2ms)[0m [1mSELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mItem Load (0.1ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 3]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "2"]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "1"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1[0m [["id", "1"]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "3"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "2"]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "1"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1[0m [["id", "1"]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "3"]]
Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml within layouts/simple_cart/application (30.0ms)
Completed 200 OK in 42ms (Views: 39.8ms | ActiveRecord: 1.2ms)
Started GET "/assets/simple_cart/application.self-2f12d59583468bdcee27c6046669f62a778d265fc91cf385e5d36e9189ac822e.css?body=1" for 127.0.0.1 at 2016-03-12 14:54:55 +0200
Started GET "/assets/simple_cart/application.self-8f06a73c35179188914ab50e057157639fce1401c1cdca640ac9cec33746fc5b.js?body=1" for 127.0.0.1 at 2016-03-12 14:54:55 +0200
Started GET "/simple_cart/cart/checkout" for 127.0.0.1 at 2016-03-12 14:54:57 +0200
Processing by SimpleCart::CartsController#checkout as HTML
[1m[36mItem Load (0.1ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", 2]]
[1m[35mItem Load (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mBicycle Load (0.1ms)[0m [1mSELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mItem Load (0.1ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 3]]
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "order_items" ("price", "qty", "itemable_id", "itemable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["price", 25412.0], ["qty", 14], ["itemable_id", 2], ["itemable_type", "Item"], ["created_at", "2016-03-12 12:54:57.185104"], ["updated_at", "2016-03-12 12:54:57.185104"]]
[1m[36m (142.2ms)[0m [1mcommit transaction[0m
[1m[35m (0.1ms)[0m begin transaction
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "order_items" ("price", "qty", "itemable_id", "itemable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["price", 2.0], ["qty", 10], ["itemable_id", 1], ["itemable_type", "Item"], ["created_at", "2016-03-12 12:54:57.329253"], ["updated_at", "2016-03-12 12:54:57.329253"]]
[1m[35m (50.2ms)[0m commit transaction
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "order_items" ("price", "qty", "itemable_id", "itemable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["price", 22.0], ["qty", 1], ["itemable_id", 1], ["itemable_type", "Bicycle"], ["created_at", "2016-03-12 12:54:57.381120"], ["updated_at", "2016-03-12 12:54:57.381120"]]
[1m[36m (84.2ms)[0m [1mcommit transaction[0m
[1m[35m (0.1ms)[0m begin transaction
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "order_items" ("price", "qty", "itemable_id", "itemable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["price", 25.0], ["qty", 5], ["itemable_id", 3], ["itemable_type", "Item"], ["created_at", "2016-03-12 12:54:57.467529"], ["updated_at", "2016-03-12 12:54:57.467529"]]
[1m[35m (109.6ms)[0m commit transaction
Redirected to http://localhost:3000/simple_cart/cart
Completed 302 Found in 402ms (ActiveRecord: 387.9ms)
Started GET "/simple_cart/cart" for 127.0.0.1 at 2016-03-12 14:54:57 +0200
Processing by SimpleCart::CartsController#show as HTML
[1m[36mItem Load (0.1ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", 2]]
[1m[35mItem Load (0.1ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mBicycle Load (0.1ms)[0m [1mSELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mItem Load (0.1ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 3]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "2"]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "1"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1[0m [["id", "1"]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "3"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "2"]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "1"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1[0m [["id", "1"]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "3"]]
Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml within layouts/simple_cart/application (15.4ms)
Completed 200 OK in 26ms (Views: 24.7ms | ActiveRecord: 0.4ms)
Started GET "/simple_cart/cart/checkout" for 127.0.0.1 at 2016-03-12 14:54:58 +0200
Processing by SimpleCart::CartsController#checkout as HTML
[1m[36mItem Load (0.2ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", 2]]
[1m[35mItem Load (0.1ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mBicycle Load (0.1ms)[0m [1mSELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mItem Load (0.1ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 3]]
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "order_items" ("price", "qty", "itemable_id", "itemable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["price", 25412.0], ["qty", 14], ["itemable_id", 2], ["itemable_type", "Item"], ["created_at", "2016-03-12 12:54:58.923200"], ["updated_at", "2016-03-12 12:54:58.923200"]]
[1m[36m (218.5ms)[0m [1mcommit transaction[0m
[1m[35m (0.1ms)[0m begin transaction
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "order_items" ("price", "qty", "itemable_id", "itemable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["price", 2.0], ["qty", 10], ["itemable_id", 1], ["itemable_type", "Item"], ["created_at", "2016-03-12 12:54:59.143361"], ["updated_at", "2016-03-12 12:54:59.143361"]]
[1m[35m (67.2ms)[0m commit transaction
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "order_items" ("price", "qty", "itemable_id", "itemable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["price", 22.0], ["qty", 1], ["itemable_id", 1], ["itemable_type", "Bicycle"], ["created_at", "2016-03-12 12:54:59.212313"], ["updated_at", "2016-03-12 12:54:59.212313"]]
[1m[36m (50.1ms)[0m [1mcommit transaction[0m
[1m[35m (0.1ms)[0m begin transaction
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "order_items" ("price", "qty", "itemable_id", "itemable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["price", 25.0], ["qty", 5], ["itemable_id", 3], ["itemable_type", "Item"], ["created_at", "2016-03-12 12:54:59.264497"], ["updated_at", "2016-03-12 12:54:59.264497"]]
[1m[35m (206.8ms)[0m commit transaction
Redirected to http://localhost:3000/simple_cart/cart
Completed 302 Found in 553ms (ActiveRecord: 544.0ms)
Started GET "/simple_cart/cart" for 127.0.0.1 at 2016-03-12 14:54:59 +0200
Processing by SimpleCart::CartsController#show as HTML
[1m[36mItem Load (0.1ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", 2]]
[1m[35mItem Load (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mBicycle Load (0.0ms)[0m [1mSELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mItem Load (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 3]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "2"]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "1"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1[0m [["id", "1"]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "3"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "2"]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "1"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1[0m [["id", "1"]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "3"]]
Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml within layouts/simple_cart/application (21.5ms)
Completed 200 OK in 33ms (Views: 32.5ms | ActiveRecord: 0.3ms)
Started GET "/simple_cart/cart" for 127.0.0.1 at 2016-03-12 14:55:09 +0200
Processing by SimpleCart::CartsController#show as HTML
[1m[36mItem Load (0.2ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", 2]]
[1m[35mItem Load (0.1ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mBicycle Load (0.1ms)[0m [1mSELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mItem Load (0.1ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 3]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "2"]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "1"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1[0m [["id", "1"]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "3"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "2"]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "1"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1[0m [["id", "1"]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "3"]]
Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml within layouts/simple_cart/application (29.2ms)
Completed 200 OK in 43ms (Views: 39.6ms | ActiveRecord: 1.5ms)
Started GET "/assets/simple_cart/application.self-8f06a73c35179188914ab50e057157639fce1401c1cdca640ac9cec33746fc5b.js?body=1" for 127.0.0.1 at 2016-03-12 14:55:09 +0200
Started GET "/assets/simple_cart/application.self-2f12d59583468bdcee27c6046669f62a778d265fc91cf385e5d36e9189ac822e.css?body=1" for 127.0.0.1 at 2016-03-12 14:55:09 +0200
Started GET "/simple_cart/cart/checkout" for 127.0.0.1 at 2016-03-12 14:55:10 +0200
Processing by SimpleCart::CartsController#checkout as HTML
[1m[36mItem Load (0.2ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", 2]]
[1m[35mItem Load (0.1ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mBicycle Load (0.1ms)[0m [1mSELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mItem Load (0.1ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 3]]
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
[1m[35mSQL (0.3ms)[0m INSERT INTO "order_items" ("price", "qty", "itemable_id", "itemable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["price", 25412.0], ["qty", 14], ["itemable_id", 2], ["itemable_type", "Item"], ["created_at", "2016-03-12 12:55:10.950938"], ["updated_at", "2016-03-12 12:55:10.950938"]]
[1m[36m (268.6ms)[0m [1mcommit transaction[0m
[1m[35m (0.1ms)[0m begin transaction
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "order_items" ("price", "qty", "itemable_id", "itemable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["price", 2.0], ["qty", 10], ["itemable_id", 1], ["itemable_type", "Item"], ["created_at", "2016-03-12 12:55:11.221625"], ["updated_at", "2016-03-12 12:55:11.221625"]]
[1m[35m (50.0ms)[0m commit transaction
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "order_items" ("price", "qty", "itemable_id", "itemable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["price", 22.0], ["qty", 1], ["itemable_id", 1], ["itemable_type", "Bicycle"], ["created_at", "2016-03-12 12:55:11.273384"], ["updated_at", "2016-03-12 12:55:11.273384"]]
[1m[36m (67.4ms)[0m [1mcommit transaction[0m
[1m[35m (0.1ms)[0m begin transaction
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "order_items" ("price", "qty", "itemable_id", "itemable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["price", 25.0], ["qty", 5], ["itemable_id", 3], ["itemable_type", "Item"], ["created_at", "2016-03-12 12:55:11.342353"], ["updated_at", "2016-03-12 12:55:11.342353"]]
[1m[35m (75.2ms)[0m commit transaction
Redirected to http://localhost:3000/simple_cart/cart
Completed 302 Found in 481ms (ActiveRecord: 463.0ms)
[1m[36mOrderItem Load (0.2ms)[0m [1mSELECT "order_items".* FROM "order_items"[0m
ActionDispatch::Cookies::CookieOverflow (ActionDispatch::Cookies::CookieOverflow):
actionpack (4.2.5.2) lib/action_dispatch/middleware/cookies.rb:529:in `[]='
actionpack (4.2.5.2) lib/action_dispatch/middleware/session/cookie_store.rb:110:in `set_cookie'
rack (1.6.4) lib/rack/session/abstract/id.rb:351:in `commit_session'
rack (1.6.4) lib/rack/session/abstract/id.rb:226: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 (2.5ms)
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.4ms)
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.4ms)
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 (15.2ms)
Started GET "/simple_cart/cart" for 127.0.0.1 at 2016-03-12 14:55:28 +0200
Processing by SimpleCart::CartsController#show as HTML
[1m[35mItem Load (0.1ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 2]]
[1m[36mItem Load (0.1ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mBicycle Load (0.2ms)[0m SELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mItem Load (0.1ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", 3]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "2"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "1"]]
[1m[35mCACHE (0.0ms)[0m SELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1 [["id", "1"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "3"]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "2"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "1"]]
[1m[35mCACHE (0.0ms)[0m SELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1 [["id", "1"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "3"]]
Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml within layouts/simple_cart/application (24.0ms)
Completed 200 OK in 38ms (Views: 35.7ms | ActiveRecord: 1.1ms)
Started GET "/assets/simple_cart/application.self-2f12d59583468bdcee27c6046669f62a778d265fc91cf385e5d36e9189ac822e.css?body=1" for 127.0.0.1 at 2016-03-12 14:55:28 +0200
Started GET "/assets/simple_cart/application.self-8f06a73c35179188914ab50e057157639fce1401c1cdca640ac9cec33746fc5b.js?body=1" for 127.0.0.1 at 2016-03-12 14:55:28 +0200
Started GET "/simple_cart/cart/checkout" for 127.0.0.1 at 2016-03-12 14:55:29 +0200
Processing by SimpleCart::CartsController#checkout as HTML
[1m[35mItem Load (0.1ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 2]]
[1m[36mItem Load (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mBicycle Load (0.0ms)[0m SELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mItem Load (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", 3]]
[1m[35m (0.1ms)[0m begin transaction
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "order_items" ("price", "qty", "itemable_id", "itemable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["price", 25412.0], ["qty", 14], ["itemable_id", 2], ["itemable_type", "Item"], ["created_at", "2016-03-12 12:55:29.191382"], ["updated_at", "2016-03-12 12:55:29.191382"]]
[1m[35m (219.4ms)[0m commit transaction
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
[1m[35mSQL (0.3ms)[0m INSERT INTO "order_items" ("price", "qty", "itemable_id", "itemable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["price", 2.0], ["qty", 10], ["itemable_id", 1], ["itemable_type", "Item"], ["created_at", "2016-03-12 12:55:29.415545"], ["updated_at", "2016-03-12 12:55:29.415545"]]
[1m[36m (80.3ms)[0m [1mcommit transaction[0m
[1m[35m (0.1ms)[0m begin transaction
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "order_items" ("price", "qty", "itemable_id", "itemable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["price", 22.0], ["qty", 1], ["itemable_id", 1], ["itemable_type", "Bicycle"], ["created_at", "2016-03-12 12:55:29.498074"], ["updated_at", "2016-03-12 12:55:29.498074"]]
[1m[35m (50.5ms)[0m commit transaction
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "order_items" ("price", "qty", "itemable_id", "itemable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["price", 25.0], ["qty", 5], ["itemable_id", 3], ["itemable_type", "Item"], ["created_at", "2016-03-12 12:55:29.550119"], ["updated_at", "2016-03-12 12:55:29.550119"]]
[1m[36m (50.4ms)[0m [1mcommit transaction[0m
Redirected to http://localhost:3000/simple_cart/cart
Completed 302 Found in 423ms (ActiveRecord: 402.4ms)
Started GET "/simple_cart/cart/checkout" for 127.0.0.1 at 2016-03-12 14:55:29 +0200
Processing by SimpleCart::CartsController#checkout as HTML
[1m[35mItem Load (0.1ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 2]]
[1m[36mItem Load (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mBicycle Load (0.0ms)[0m SELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mItem Load (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", 3]]
[1m[35m (0.1ms)[0m begin transaction
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "order_items" ("price", "qty", "itemable_id", "itemable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["price", 25412.0], ["qty", 14], ["itemable_id", 2], ["itemable_type", "Item"], ["created_at", "2016-03-12 12:55:29.607720"], ["updated_at", "2016-03-12 12:55:29.607720"]]
[1m[35m (662.1ms)[0m commit transaction
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
[1m[35mSQL (0.3ms)[0m INSERT INTO "order_items" ("price", "qty", "itemable_id", "itemable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["price", 2.0], ["qty", 10], ["itemable_id", 1], ["itemable_type", "Item"], ["created_at", "2016-03-12 12:55:30.271840"], ["updated_at", "2016-03-12 12:55:30.271840"]]
[1m[36m (73.9ms)[0m [1mcommit transaction[0m
[1m[35m (0.1ms)[0m begin transaction
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "order_items" ("price", "qty", "itemable_id", "itemable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["price", 22.0], ["qty", 1], ["itemable_id", 1], ["itemable_type", "Bicycle"], ["created_at", "2016-03-12 12:55:30.348130"], ["updated_at", "2016-03-12 12:55:30.348130"]]
[1m[35m (83.0ms)[0m commit transaction
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "order_items" ("price", "qty", "itemable_id", "itemable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["price", 25.0], ["qty", 5], ["itemable_id", 3], ["itemable_type", "Item"], ["created_at", "2016-03-12 12:55:30.433161"], ["updated_at", "2016-03-12 12:55:30.433161"]]
[1m[36m (75.6ms)[0m [1mcommit transaction[0m
Redirected to http://localhost:3000/simple_cart/cart
Completed 302 Found in 904ms (ActiveRecord: 895.9ms)
Started GET "/simple_cart/cart" for 127.0.0.1 at 2016-03-12 14:55:30 +0200
Processing by SimpleCart::CartsController#show as HTML
[1m[35mItem Load (0.1ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 2]]
[1m[36mItem Load (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mBicycle Load (0.1ms)[0m SELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mItem Load (0.1ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", 3]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "2"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "1"]]
[1m[35mCACHE (0.0ms)[0m SELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1 [["id", "1"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "3"]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "2"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "1"]]
[1m[35mCACHE (0.0ms)[0m SELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1 [["id", "1"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "3"]]
Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml within layouts/simple_cart/application (23.3ms)
Completed 200 OK in 35ms (Views: 34.2ms | ActiveRecord: 0.4ms)
Started GET "/simple_cart/cart" for 127.0.0.1 at 2016-03-12 14:55:46 +0200
Processing by SimpleCart::CartsController#show as HTML
[1m[35mItem Load (0.1ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 2]]
[1m[36mItem Load (0.1ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mBicycle Load (0.1ms)[0m SELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mItem Load (0.1ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", 3]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "2"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "1"]]
[1m[35mCACHE (0.0ms)[0m SELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1 [["id", "1"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "3"]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "2"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "1"]]
[1m[35mCACHE (0.0ms)[0m SELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1 [["id", "1"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "3"]]
Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml within layouts/simple_cart/application (23.8ms)
Completed 200 OK in 38ms (Views: 34.9ms | ActiveRecord: 1.1ms)
Started GET "/assets/simple_cart/application.self-2f12d59583468bdcee27c6046669f62a778d265fc91cf385e5d36e9189ac822e.css?body=1" for 127.0.0.1 at 2016-03-12 14:55:46 +0200
Started GET "/assets/simple_cart/application.self-8f06a73c35179188914ab50e057157639fce1401c1cdca640ac9cec33746fc5b.js?body=1" for 127.0.0.1 at 2016-03-12 14:55:46 +0200
Started GET "/simple_cart/cart/checkout" for 127.0.0.1 at 2016-03-12 14:55:48 +0200
Processing by SimpleCart::CartsController#checkout as HTML
[1m[35mItem Load (0.1ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 2]]
[1m[36mItem Load (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mBicycle Load (0.0ms)[0m SELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mItem Load (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", 3]]
[1m[35m (0.1ms)[0m begin transaction
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "order_items" ("price", "qty", "itemable_id", "itemable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["price", 25412.0], ["qty", 14], ["itemable_id", 2], ["itemable_type", "Item"], ["created_at", "2016-03-12 12:55:48.078468"], ["updated_at", "2016-03-12 12:55:48.078468"]]
[1m[35m (224.8ms)[0m commit transaction
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "order_items" ("price", "qty", "itemable_id", "itemable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["price", 2.0], ["qty", 10], ["itemable_id", 1], ["itemable_type", "Item"], ["created_at", "2016-03-12 12:55:48.305264"], ["updated_at", "2016-03-12 12:55:48.305264"]]
[1m[36m (50.3ms)[0m [1mcommit transaction[0m
[1m[35m (0.1ms)[0m begin transaction
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "order_items" ("price", "qty", "itemable_id", "itemable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["price", 22.0], ["qty", 1], ["itemable_id", 1], ["itemable_type", "Bicycle"], ["created_at", "2016-03-12 12:55:48.357194"], ["updated_at", "2016-03-12 12:55:48.357194"]]
[1m[35m (67.4ms)[0m commit transaction
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "order_items" ("price", "qty", "itemable_id", "itemable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["price", 25.0], ["qty", 5], ["itemable_id", 3], ["itemable_type", "Item"], ["created_at", "2016-03-12 12:55:48.426253"], ["updated_at", "2016-03-12 12:55:48.426253"]]
[1m[36m (75.2ms)[0m [1mcommit transaction[0m
[1m[35mOrderItem Load (0.3ms)[0m SELECT "order_items".* FROM "order_items"
Redirected to http://localhost:3000/simple_cart/cart
Completed 302 Found in 438ms (ActiveRecord: 419.5ms)
ActionDispatch::Cookies::CookieOverflow (ActionDispatch::Cookies::CookieOverflow):
actionpack (4.2.5.2) lib/action_dispatch/middleware/cookies.rb:529:in `[]='
actionpack (4.2.5.2) lib/action_dispatch/middleware/session/cookie_store.rb:110:in `set_cookie'
rack (1.6.4) lib/rack/session/abstract/id.rb:351:in `commit_session'
rack (1.6.4) lib/rack/session/abstract/id.rb:226: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 (2.4ms)
Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (1.2ms)
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.3ms)
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 (14.3ms)
Started GET "/simple_cart/cart" for 127.0.0.1 at 2016-03-12 14:55:53 +0200
Processing by SimpleCart::CartsController#show as HTML
[1m[36mItem Load (0.1ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", 2]]
[1m[35mItem Load (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mBicycle Load (0.0ms)[0m [1mSELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mItem Load (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 3]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "2"]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "1"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1[0m [["id", "1"]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "3"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "2"]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "1"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1[0m [["id", "1"]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "3"]]
Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml within layouts/simple_cart/application (16.6ms)
Completed 200 OK in 27ms (Views: 26.1ms | ActiveRecord: 0.3ms)
Started GET "/assets/simple_cart/application.self-8f06a73c35179188914ab50e057157639fce1401c1cdca640ac9cec33746fc5b.js?body=1" for 127.0.0.1 at 2016-03-12 14:55:53 +0200
Started GET "/assets/simple_cart/application.self-2f12d59583468bdcee27c6046669f62a778d265fc91cf385e5d36e9189ac822e.css?body=1" for 127.0.0.1 at 2016-03-12 14:55:53 +0200
Started GET "/simple_cart/cart/checkout" for 127.0.0.1 at 2016-03-12 14:55:54 +0200
Processing by SimpleCart::CartsController#checkout as HTML
[1m[36mItem Load (0.2ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", 2]]
[1m[35mItem Load (0.1ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mBicycle Load (0.1ms)[0m [1mSELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mItem Load (0.1ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 3]]
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
[1m[35mSQL (0.3ms)[0m INSERT INTO "order_items" ("price", "qty", "itemable_id", "itemable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["price", 25412.0], ["qty", 14], ["itemable_id", 2], ["itemable_type", "Item"], ["created_at", "2016-03-12 12:55:54.578306"], ["updated_at", "2016-03-12 12:55:54.578306"]]
[1m[36m (105.0ms)[0m [1mcommit transaction[0m
[1m[35m (0.1ms)[0m begin transaction
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "order_items" ("price", "qty", "itemable_id", "itemable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["price", 2.0], ["qty", 10], ["itemable_id", 1], ["itemable_type", "Item"], ["created_at", "2016-03-12 12:55:54.685611"], ["updated_at", "2016-03-12 12:55:54.685611"]]
[1m[35m (50.1ms)[0m commit transaction
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "order_items" ("price", "qty", "itemable_id", "itemable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["price", 22.0], ["qty", 1], ["itemable_id", 1], ["itemable_type", "Bicycle"], ["created_at", "2016-03-12 12:55:54.737370"], ["updated_at", "2016-03-12 12:55:54.737370"]]
[1m[36m (50.6ms)[0m [1mcommit transaction[0m
[1m[35m (0.1ms)[0m begin transaction
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "order_items" ("price", "qty", "itemable_id", "itemable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["price", 25.0], ["qty", 5], ["itemable_id", 3], ["itemable_type", "Item"], ["created_at", "2016-03-12 12:55:54.789806"], ["updated_at", "2016-03-12 12:55:54.789806"]]
[1m[35m (66.8ms)[0m commit transaction
[1m[36mOrderItem Load (0.3ms)[0m [1mSELECT "order_items".* FROM "order_items"[0m
Redirected to http://localhost:3000/simple_cart/cart
Completed 302 Found in 292ms (ActiveRecord: 274.3ms)
ActionDispatch::Cookies::CookieOverflow (ActionDispatch::Cookies::CookieOverflow):
actionpack (4.2.5.2) lib/action_dispatch/middleware/cookies.rb:529:in `[]='
actionpack (4.2.5.2) lib/action_dispatch/middleware/session/cookie_store.rb:110:in `set_cookie'
rack (1.6.4) lib/rack/session/abstract/id.rb:351:in `commit_session'
rack (1.6.4) lib/rack/session/abstract/id.rb:226: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 (2.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 (7.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 (1.2ms)
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.7ms)
Started GET "/simple_cart/cart" for 127.0.0.1 at 2016-03-12 14:56:04 +0200
Processing by SimpleCart::CartsController#show as HTML
[1m[35mItem Load (0.1ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 2]]
[1m[36mItem Load (0.1ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mBicycle Load (0.1ms)[0m SELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mItem Load (0.1ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", 3]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "2"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "1"]]
[1m[35mCACHE (0.0ms)[0m SELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1 [["id", "1"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "3"]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "2"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "1"]]
[1m[35mCACHE (0.0ms)[0m SELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1 [["id", "1"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "3"]]
Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml within layouts/simple_cart/application (24.9ms)
Completed 200 OK in 38ms (Views: 35.7ms | ActiveRecord: 1.1ms)
Started GET "/assets/simple_cart/application.self-2f12d59583468bdcee27c6046669f62a778d265fc91cf385e5d36e9189ac822e.css?body=1" for 127.0.0.1 at 2016-03-12 14:56:05 +0200
Started GET "/assets/simple_cart/application.self-8f06a73c35179188914ab50e057157639fce1401c1cdca640ac9cec33746fc5b.js?body=1" for 127.0.0.1 at 2016-03-12 14:56:05 +0200
Started GET "/simple_cart/cart" for 127.0.0.1 at 2016-03-12 14:56:20 +0200
Processing by SimpleCart::CartsController#show as HTML
[1m[35mItem Load (0.1ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 2]]
[1m[36mItem Load (0.1ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mBicycle Load (0.1ms)[0m SELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mItem Load (0.1ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", 3]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "2"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "1"]]
[1m[35mCACHE (0.0ms)[0m SELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1 [["id", "1"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "3"]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "2"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "1"]]
[1m[35mCACHE (0.0ms)[0m SELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1 [["id", "1"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "3"]]
Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml within layouts/simple_cart/application (27.5ms)
Completed 200 OK in 42ms (Views: 41.3ms | ActiveRecord: 0.5ms)
Started GET "/assets/simple_cart/application.self-2f12d59583468bdcee27c6046669f62a778d265fc91cf385e5d36e9189ac822e.css?body=1" for 127.0.0.1 at 2016-03-12 14:56:20 +0200
Started GET "/assets/simple_cart/application.self-8f06a73c35179188914ab50e057157639fce1401c1cdca640ac9cec33746fc5b.js?body=1" for 127.0.0.1 at 2016-03-12 14:56:20 +0200
Started GET "/simple_cart/cart" for 127.0.0.1 at 2016-03-12 14:56:30 +0200
Processing by SimpleCart::CartsController#show as HTML
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "order_items"
[1m[36mItem Load (0.1ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", 2]]
[1m[35mItem Load (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mBicycle Load (0.0ms)[0m [1mSELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mItem Load (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 3]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "2"]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "1"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1[0m [["id", "1"]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "3"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "2"]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "1"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1[0m [["id", "1"]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "3"]]
Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml within layouts/simple_cart/application (21.4ms)
Completed 200 OK in 33ms (Views: 32.4ms | ActiveRecord: 0.5ms)
Started GET "/assets/simple_cart/application.self-2f12d59583468bdcee27c6046669f62a778d265fc91cf385e5d36e9189ac822e.css?body=1" for 127.0.0.1 at 2016-03-12 14:56:30 +0200
Started GET "/assets/simple_cart/application.self-8f06a73c35179188914ab50e057157639fce1401c1cdca640ac9cec33746fc5b.js?body=1" for 127.0.0.1 at 2016-03-12 14:56:30 +0200
[1m[35mOrderItem Load (0.5ms)[0m SELECT "order_items".* FROM "order_items"
[1m[36mSQL (63.4ms)[0m [1mDELETE FROM "order_items"[0m
Started GET "/simple_cart/cart" for 127.0.0.1 at 2016-03-12 14:57:33 +0200
Processing by SimpleCart::CartsController#show as HTML
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "order_items"[0m
[1m[35mItem Load (0.2ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 2]]
[1m[36mItem Load (0.1ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mBicycle Load (0.1ms)[0m SELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mItem Load (0.1ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", 3]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "2"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "1"]]
[1m[35mCACHE (0.0ms)[0m SELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1 [["id", "1"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "3"]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "2"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "1"]]
[1m[35mCACHE (0.0ms)[0m SELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1 [["id", "1"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "3"]]
Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml within layouts/simple_cart/application (29.4ms)
Completed 200 OK in 50ms (Views: 46.9ms | ActiveRecord: 1.5ms)
Started GET "/assets/simple_cart/application.self-2f12d59583468bdcee27c6046669f62a778d265fc91cf385e5d36e9189ac822e.css?body=1" for 127.0.0.1 at 2016-03-12 14:57:33 +0200
Started GET "/assets/simple_cart/application.self-8f06a73c35179188914ab50e057157639fce1401c1cdca640ac9cec33746fc5b.js?body=1" for 127.0.0.1 at 2016-03-12 14:57:33 +0200
Started GET "/simple_cart/cart/checkout" for 127.0.0.1 at 2016-03-12 14:57:35 +0200
Processing by SimpleCart::CartsController#checkout as HTML
[1m[35mItem Load (0.1ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 2]]
[1m[36mItem Load (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mBicycle Load (0.0ms)[0m SELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mItem Load (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", 3]]
Redirected to http://localhost:3000/simple_cart/cart
Completed 302 Found in 6ms (ActiveRecord: 0.4ms)
Started GET "/simple_cart/cart" for 127.0.0.1 at 2016-03-12 14:57:35 +0200
Processing by SimpleCart::CartsController#show as HTML
[1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "order_items"
[1m[36mItem Load (0.1ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", 2]]
[1m[35mItem Load (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mBicycle Load (0.0ms)[0m [1mSELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mItem Load (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 3]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "2"]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "1"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1[0m [["id", "1"]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "3"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "2"]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "1"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1[0m [["id", "1"]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "3"]]
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 26ms (Views: 25.6ms | ActiveRecord: 0.4ms)
Started GET "/simple_cart/cart/checkout" for 127.0.0.1 at 2016-03-12 14:57:39 +0200
Processing by SimpleCart::CartsController#checkout as HTML
[1m[36mItem Load (0.1ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", 2]]
[1m[35mItem Load (0.1ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mBicycle Load (0.1ms)[0m [1mSELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mItem Load (0.1ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 3]]
Redirected to http://localhost:3000/simple_cart/cart
Completed 302 Found in 3ms (ActiveRecord: 0.3ms)
Started GET "/simple_cart/cart" for 127.0.0.1 at 2016-03-12 14:57:39 +0200
Processing by SimpleCart::CartsController#show as HTML
[1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "order_items"[0m
[1m[35mItem Load (0.1ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 2]]
[1m[36mItem Load (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mBicycle Load (0.0ms)[0m SELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mItem Load (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", 3]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "2"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "1"]]
[1m[35mCACHE (0.0ms)[0m SELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1 [["id", "1"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "3"]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "2"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "1"]]
[1m[35mCACHE (0.0ms)[0m SELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1 [["id", "1"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "3"]]
Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml within layouts/simple_cart/application (16.6ms)
Completed 200 OK in 28ms (Views: 27.3ms | ActiveRecord: 0.5ms)
Started GET "/simple_cart/cart/checkout" for 127.0.0.1 at 2016-03-12 14:57:40 +0200
Processing by SimpleCart::CartsController#checkout as HTML
[1m[35mItem Load (0.1ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 2]]
[1m[36mItem Load (0.1ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mBicycle Load (0.1ms)[0m SELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mItem Load (0.1ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", 3]]
Redirected to http://localhost:3000/simple_cart/cart
Completed 302 Found in 3ms (ActiveRecord: 0.3ms)
Started GET "/simple_cart/cart" for 127.0.0.1 at 2016-03-12 14:57:40 +0200
Processing by SimpleCart::CartsController#show as HTML
[1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "order_items"
[1m[36mItem Load (0.1ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", 2]]
[1m[35mItem Load (0.1ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mBicycle Load (0.0ms)[0m [1mSELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mItem Load (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 3]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "2"]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "1"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1[0m [["id", "1"]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "3"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "2"]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "1"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1[0m [["id", "1"]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "3"]]
Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml within layouts/simple_cart/application (16.1ms)
Completed 200 OK in 27ms (Views: 26.1ms | ActiveRecord: 0.5ms)
Started GET "/simple_cart/cart" for 127.0.0.1 at 2016-03-12 14:57:51 +0200
Processing by SimpleCart::CartsController#show as HTML
[1m[36mItem Load (0.1ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", 2]]
[1m[35mItem Load (0.1ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mBicycle Load (0.1ms)[0m [1mSELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mItem Load (0.1ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 3]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "2"]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "1"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1[0m [["id", "1"]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "3"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "2"]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "1"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1[0m [["id", "1"]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "3"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "2"]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "1"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1[0m [["id", "1"]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "3"]]
Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml within layouts/simple_cart/application (32.3ms)
Completed 200 OK in 46ms (Views: 45.0ms | ActiveRecord: 0.5ms)
Started GET "/assets/simple_cart/application.self-2f12d59583468bdcee27c6046669f62a778d265fc91cf385e5d36e9189ac822e.css?body=1" for 127.0.0.1 at 2016-03-12 14:57:51 +0200
Started GET "/assets/simple_cart/application.self-8f06a73c35179188914ab50e057157639fce1401c1cdca640ac9cec33746fc5b.js?body=1" for 127.0.0.1 at 2016-03-12 14:57:51 +0200
Started GET "/simple_cart/cart" for 127.0.0.1 at 2016-03-12 14:59:55 +0200
Processing by SimpleCart::CartsController#show as HTML
[1m[36mItem Load (0.1ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", 2]]
[1m[35mItem Load (0.1ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mBicycle Load (0.1ms)[0m [1mSELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mItem Load (0.1ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 3]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "2"]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "1"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1[0m [["id", "1"]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "3"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "2"]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "1"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1[0m [["id", "1"]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "3"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "2"]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "1"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1[0m [["id", "1"]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "3"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "2"]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "1"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1[0m [["id", "1"]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "3"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "2"]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "1"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1[0m [["id", "1"]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "3"]]
Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml within layouts/simple_cart/application (60.8ms)
Completed 200 OK in 75ms (Views: 72.4ms | ActiveRecord: 1.6ms)
Started GET "/assets/simple_cart/application.self-2f12d59583468bdcee27c6046669f62a778d265fc91cf385e5d36e9189ac822e.css?body=1" for 127.0.0.1 at 2016-03-12 14:59:55 +0200
Started GET "/assets/simple_cart/application.self-8f06a73c35179188914ab50e057157639fce1401c1cdca640ac9cec33746fc5b.js?body=1" for 127.0.0.1 at 2016-03-12 14:59:55 +0200
Started GET "/simple_cart/cart" for 127.0.0.1 at 2016-03-12 14:59:56 +0200
Processing by SimpleCart::CartsController#show as HTML
[1m[36mItem Load (0.1ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", 2]]
[1m[35mItem Load (0.1ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mBicycle Load (0.1ms)[0m [1mSELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mItem Load (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 3]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "2"]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "1"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1[0m [["id", "1"]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "3"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "2"]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "1"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1[0m [["id", "1"]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "3"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "2"]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "1"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1[0m [["id", "1"]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "3"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "2"]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "1"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1[0m [["id", "1"]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "3"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "2"]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "1"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1[0m [["id", "1"]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "3"]]
Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml within layouts/simple_cart/application (20.2ms)
Completed 200 OK in 32ms (Views: 30.9ms | ActiveRecord: 0.6ms)
Started GET "/assets/simple_cart/application.self-2f12d59583468bdcee27c6046669f62a778d265fc91cf385e5d36e9189ac822e.css?body=1" for 127.0.0.1 at 2016-03-12 14:59:56 +0200
Started GET "/assets/simple_cart/application.self-8f06a73c35179188914ab50e057157639fce1401c1cdca640ac9cec33746fc5b.js?body=1" for 127.0.0.1 at 2016-03-12 14:59:56 +0200
Started GET "/simple_cart/cart" for 127.0.0.1 at 2016-03-12 14:59:57 +0200
Processing by SimpleCart::CartsController#show as HTML
[1m[36mItem Load (0.1ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", 2]]
[1m[35mItem Load (0.1ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mBicycle Load (0.1ms)[0m [1mSELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mItem Load (0.1ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 3]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "2"]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "1"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1[0m [["id", "1"]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "3"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "2"]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "1"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1[0m [["id", "1"]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "3"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "2"]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "1"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1[0m [["id", "1"]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "3"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "2"]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "1"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1[0m [["id", "1"]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "3"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "2"]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "1"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1[0m [["id", "1"]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "3"]]
Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml within layouts/simple_cart/application (20.7ms)
Completed 200 OK in 31ms (Views: 29.8ms | ActiveRecord: 0.5ms)
Started GET "/assets/simple_cart/application.self-2f12d59583468bdcee27c6046669f62a778d265fc91cf385e5d36e9189ac822e.css?body=1" for 127.0.0.1 at 2016-03-12 14:59:57 +0200
Started GET "/assets/simple_cart/application.self-8f06a73c35179188914ab50e057157639fce1401c1cdca640ac9cec33746fc5b.js?body=1" for 127.0.0.1 at 2016-03-12 14:59:57 +0200
Started GET "/simple_cart/cart/checkout" for 127.0.0.1 at 2016-03-12 14:59:59 +0200
Processing by SimpleCart::CartsController#checkout as HTML
[1m[36mItem Load (0.1ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", 2]]
[1m[35mItem Load (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mBicycle Load (0.0ms)[0m [1mSELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mItem Load (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 3]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "2"]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "1"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1[0m [["id", "1"]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "3"]]
Redirected to http://localhost:3000/simple_cart/cart
Completed 302 Found in 4ms (ActiveRecord: 0.3ms)
Started GET "/simple_cart/cart" for 127.0.0.1 at 2016-03-12 14:59:59 +0200
Processing by SimpleCart::CartsController#show as HTML
[1m[36mItem Load (0.1ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", 2]]
[1m[35mItem Load (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mBicycle Load (0.0ms)[0m [1mSELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mItem Load (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 3]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "2"]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "1"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1[0m [["id", "1"]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "3"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "2"]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "1"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1[0m [["id", "1"]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "3"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "2"]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "1"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1[0m [["id", "1"]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "3"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "2"]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "1"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1[0m [["id", "1"]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "3"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "2"]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "1"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1[0m [["id", "1"]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "3"]]
Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml within layouts/simple_cart/application (18.8ms)
Completed 200 OK in 30ms (Views: 28.8ms | ActiveRecord: 0.4ms)
Started GET "/simple_cart/cart/checkout" for 127.0.0.1 at 2016-03-12 15:00:07 +0200
Processing by SimpleCart::CartsController#checkout as HTML
[1m[36mItem Load (0.1ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", 2]]
[1m[35mItem Load (0.1ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mBicycle Load (0.1ms)[0m [1mSELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mItem Load (0.1ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 3]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "2"]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "1"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1[0m [["id", "1"]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "3"]]
Redirected to http://localhost:3000/simple_cart/cart
Completed 302 Found in 5ms (ActiveRecord: 0.4ms)
Started GET "/simple_cart/cart" for 127.0.0.1 at 2016-03-12 15:00:07 +0200
Processing by SimpleCart::CartsController#show as HTML
[1m[36mItem Load (0.1ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", 2]]
[1m[35mItem Load (0.1ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mBicycle Load (0.1ms)[0m [1mSELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mItem Load (0.1ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 3]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "2"]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "1"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1[0m [["id", "1"]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "3"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "2"]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "1"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1[0m [["id", "1"]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "3"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "2"]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "1"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1[0m [["id", "1"]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "3"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "2"]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "1"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1[0m [["id", "1"]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "3"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "2"]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "1"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1[0m [["id", "1"]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "3"]]
Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml within layouts/simple_cart/application (22.4ms)
Completed 200 OK in 33ms (Views: 32.3ms | ActiveRecord: 0.6ms)
[1m[35mOrder Load (0.2ms)[0m SELECT "orders".* FROM "orders"
[1m[36mOrder Load (0.5ms)[0m [1mSELECT "orders".* FROM "orders"[0m
Started GET "/simple_cart/cart" for 127.0.0.1 at 2016-03-12 15:00:29 +0200
Processing by SimpleCart::CartsController#show as HTML
[1m[36mItem Load (0.1ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", 2]]
[1m[35mItem Load (0.1ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mBicycle Load (0.1ms)[0m [1mSELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mItem Load (0.1ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 3]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "2"]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "1"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1[0m [["id", "1"]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "3"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "2"]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "1"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1[0m [["id", "1"]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "3"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "2"]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "1"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1[0m [["id", "1"]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "3"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "2"]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "1"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1[0m [["id", "1"]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "3"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "2"]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "1"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1[0m [["id", "1"]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "3"]]
Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml within layouts/simple_cart/application (45.7ms)
Completed 200 OK in 60ms (Views: 55.9ms | ActiveRecord: 1.6ms)
Started GET "/assets/simple_cart/application.self-2f12d59583468bdcee27c6046669f62a778d265fc91cf385e5d36e9189ac822e.css?body=1" for 127.0.0.1 at 2016-03-12 15:00:30 +0200
Started GET "/assets/simple_cart/application.self-8f06a73c35179188914ab50e057157639fce1401c1cdca640ac9cec33746fc5b.js?body=1" for 127.0.0.1 at 2016-03-12 15:00:30 +0200
Started GET "/simple_cart/cart/checkout" for 127.0.0.1 at 2016-03-12 15:00:31 +0200
Processing by SimpleCart::CartsController#checkout as HTML
[1m[36mItem Load (0.1ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", 2]]
[1m[35mItem Load (0.1ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mBicycle Load (0.1ms)[0m [1mSELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mItem Load (0.1ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 3]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "2"]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "1"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1[0m [["id", "1"]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "3"]]
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
[1m[35mSQL (0.3ms)[0m INSERT INTO "orders" ("total_price", "completed_date", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["total_price", 355935.0], ["completed_date", "2016-03-12"], ["created_at", "2016-03-12 13:00:31.681034"], ["updated_at", "2016-03-12 13:00:31.681034"]]
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "order_items" ("price", "qty", "itemable_id", "itemable_type", "order_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["price", 25412.0], ["qty", 14], ["itemable_id", 2], ["itemable_type", "Item"], ["order_id", "3"], ["created_at", "2016-03-12 13:00:31.682928"], ["updated_at", "2016-03-12 13:00:31.682928"]]
[1m[35mSQL (0.2ms)[0m INSERT INTO "order_items" ("price", "qty", "itemable_id", "itemable_type", "order_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["price", 2.0], ["qty", 10], ["itemable_id", 1], ["itemable_type", "Item"], ["order_id", "3"], ["created_at", "2016-03-12 13:00:31.684662"], ["updated_at", "2016-03-12 13:00:31.684662"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "order_items" ("price", "qty", "itemable_id", "itemable_type", "order_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["price", 22.0], ["qty", 1], ["itemable_id", 1], ["itemable_type", "Bicycle"], ["order_id", "3"], ["created_at", "2016-03-12 13:00:31.687015"], ["updated_at", "2016-03-12 13:00:31.687015"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "order_items" ("price", "qty", "itemable_id", "itemable_type", "order_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["price", 25.0], ["qty", 5], ["itemable_id", 3], ["itemable_type", "Item"], ["order_id", "3"], ["created_at", "2016-03-12 13:00:31.688934"], ["updated_at", "2016-03-12 13:00:31.688934"]]
[1m[36m (83.2ms)[0m [1mcommit transaction[0m
Redirected to http://localhost:3000/simple_cart/cart
Completed 302 Found in 100ms (ActiveRecord: 84.7ms)
Started GET "/simple_cart/cart" for 127.0.0.1 at 2016-03-12 15:00:31 +0200
Processing by SimpleCart::CartsController#show as HTML
[1m[35mItem Load (0.1ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 2]]
[1m[36mItem Load (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mBicycle Load (0.0ms)[0m SELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mItem Load (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", 3]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "2"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "1"]]
[1m[35mCACHE (0.0ms)[0m SELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1 [["id", "1"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "3"]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "2"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "1"]]
[1m[35mCACHE (0.0ms)[0m SELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1 [["id", "1"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "3"]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "2"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "1"]]
[1m[35mCACHE (0.0ms)[0m SELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1 [["id", "1"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "3"]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "2"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "1"]]
[1m[35mCACHE (0.0ms)[0m SELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1 [["id", "1"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "3"]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "2"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "1"]]
[1m[35mCACHE (0.0ms)[0m SELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1 [["id", "1"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "3"]]
Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml within layouts/simple_cart/application (19.5ms)
Completed 200 OK in 30ms (Views: 29.6ms | ActiveRecord: 0.4ms)
[1m[35mOrder Load (0.3ms)[0m SELECT "orders".* FROM "orders"
Started GET "/simple_cart/cart" for 127.0.0.1 at 2016-03-12 15:47:40 +0200
Processing by SimpleCart::CartsController#show as HTML
[1m[35mItem Load (0.2ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 2]]
[1m[36mItem Load (0.1ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mBicycle Load (0.0ms)[0m SELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mItem Load (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", 3]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "2"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "1"]]
[1m[35mCACHE (0.0ms)[0m SELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1 [["id", "1"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "3"]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "2"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "1"]]
[1m[35mCACHE (0.0ms)[0m SELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1 [["id", "1"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "3"]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "2"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "1"]]
[1m[35mCACHE (0.0ms)[0m SELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1 [["id", "1"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "3"]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "2"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "1"]]
[1m[35mCACHE (0.0ms)[0m SELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1 [["id", "1"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "3"]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "2"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "1"]]
[1m[35mCACHE (0.0ms)[0m SELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1 [["id", "1"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "3"]]
Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml within layouts/simple_cart/application (23.2ms)
Completed 200 OK in 35ms (Views: 33.6ms | ActiveRecord: 0.6ms)
Started GET "/assets/simple_cart/application.self-8f06a73c35179188914ab50e057157639fce1401c1cdca640ac9cec33746fc5b.js?body=1" for 127.0.0.1 at 2016-03-12 15:47:40 +0200
Started GET "/assets/simple_cart/application.self-2f12d59583468bdcee27c6046669f62a778d265fc91cf385e5d36e9189ac822e.css?body=1" for 127.0.0.1 at 2016-03-12 15:47:40 +0200
Started PUT "/simple_cart/cart" for 127.0.0.1 at 2016-03-12 15:48:18 +0200
Processing by SimpleCart::CartsController#update as HTML
Parameters: {"utf8"=>"✓", "authenticity_token"=>"ZQiwstlFW1WLrOpBCl8Uz28FwFyfgtA5IekdQRQ1oi+jGI2+QpNXo4LRQyoZGm27LPOCGROiAScrZ+YgeSIMvg==", "Item_2"=>"14", "Item_1"=>"10", "Bicycle_1"=>"1", "Item_3"=>"5", "coupon"=>"A2016", "commit"=>"Update"}
[1m[35mCoupon Load (0.1ms)[0m SELECT "coupons".* FROM "coupons" WHERE "coupons"."code" = ? LIMIT 1 [["code", "A2016"]]
[1m[36mItem Load (0.1ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", 2]]
[1m[35mItem Load (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mBicycle Load (0.0ms)[0m [1mSELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mItem Load (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 3]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "2"]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "1"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1[0m [["id", "1"]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "3"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "2"]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "1"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1[0m [["id", "1"]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "3"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "2"]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "1"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1[0m [["id", "1"]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "3"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "2"]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "1"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1[0m [["id", "1"]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "3"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "2"]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "1"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1[0m [["id", "1"]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "3"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "2"]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "1"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1[0m [["id", "1"]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "3"]]
Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml within layouts/simple_cart/application (22.1ms)
Completed 200 OK in 39ms (Views: 32.8ms | ActiveRecord: 0.8ms)
Started PUT "/simple_cart/cart" for 127.0.0.1 at 2016-03-12 15:48:24 +0200
Processing by SimpleCart::CartsController#update as HTML
Parameters: {"utf8"=>"✓", "authenticity_token"=>"cS5dLgc1NVZRMTFBWligyqI2qj5D3FRg/csWRJohYzm3PmAinOM5oFhMmCpJHdm+4cDoe8/8hX73Re0l9zbNqA==", "Item_2"=>"14", "Item_1"=>"10", "Bicycle_1"=>"1", "Item_3"=>"5", "coupon"=>"", "commit"=>"Update"}
[1m[36mCoupon Load (0.1ms)[0m [1mSELECT "coupons".* FROM "coupons" WHERE "coupons"."code" = ? LIMIT 1[0m [["code", ""]]
[1m[35mItem Load (0.1ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 2]]
[1m[36mItem Load (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mBicycle Load (0.0ms)[0m SELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mItem Load (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", 3]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "2"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "1"]]
[1m[35mCACHE (0.0ms)[0m SELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1 [["id", "1"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "3"]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "2"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "1"]]
[1m[35mCACHE (0.0ms)[0m SELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1 [["id", "1"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "3"]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "2"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "1"]]
[1m[35mCACHE (0.0ms)[0m SELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1 [["id", "1"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "3"]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "2"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "1"]]
[1m[35mCACHE (0.0ms)[0m SELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1 [["id", "1"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "3"]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "2"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "1"]]
[1m[35mCACHE (0.0ms)[0m SELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1 [["id", "1"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "3"]]
Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml within layouts/simple_cart/application (24.5ms)
Completed 200 OK in 35ms (Views: 34.2ms | ActiveRecord: 0.6ms)
Started PUT "/simple_cart/cart" for 127.0.0.1 at 2016-03-12 15:59:37 +0200
Processing by SimpleCart::CartsController#update as HTML
Parameters: {"utf8"=>"✓", "authenticity_token"=>"DRWuRheySGqQqYMf9Cw+uTyCTeuzmf22cnZS+9N5oj3LBZNKjGREnJnUKnTnaUfNf3QPrj+5LKh4+Kmavm4MrA==", "Item_2"=>"14", "Item_1"=>"10", "Bicycle_1"=>"1", "Item_3"=>"5", "coupon"=>"", "commit"=>"Update"}
[1m[35mCoupon Load (0.1ms)[0m SELECT "coupons".* FROM "coupons" WHERE "coupons"."code" = ? LIMIT 1 [["code", ""]]
[1m[36mItem Load (0.1ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", 2]]
[1m[35mItem Load (0.1ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mBicycle Load (0.0ms)[0m [1mSELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mItem Load (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 3]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "2"]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "1"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1[0m [["id", "1"]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "3"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "2"]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "1"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1[0m [["id", "1"]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "3"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "2"]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "1"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1[0m [["id", "1"]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "3"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "2"]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "1"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1[0m [["id", "1"]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "3"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "2"]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "1"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1[0m [["id", "1"]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "3"]]
Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml within layouts/simple_cart/application (22.7ms)
Completed 200 OK in 37ms (Views: 35.8ms | ActiveRecord: 0.6ms)
Started PUT "/simple_cart/cart" for 127.0.0.1 at 2016-03-12 15:59:41 +0200
Processing by SimpleCart::CartsController#update as HTML
Parameters: {"utf8"=>"✓", "authenticity_token"=>"FFzgWFOYFvnLoCEm7RRug0ViQ3pp7VGLQGLFr1IGLGfSTN1UyE4aD8LdiE3+URf3BpQBP+XNgJVK7D7OPxGC9g==", "Item_2"=>"15", "Item_1"=>"10", "Bicycle_1"=>"1", "Item_3"=>"5", "coupon"=>"", "commit"=>"Update"}
[1m[36mCoupon Load (0.1ms)[0m [1mSELECT "coupons".* FROM "coupons" WHERE "coupons"."code" = ? LIMIT 1[0m [["code", ""]]
[1m[35mItem Load (0.1ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 2]]
[1m[36mItem Load (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mBicycle Load (0.1ms)[0m SELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mItem Load (0.1ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", 3]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "2"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "1"]]
[1m[35mCACHE (0.0ms)[0m SELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1 [["id", "1"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "3"]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "2"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "1"]]
[1m[35mCACHE (0.0ms)[0m SELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1 [["id", "1"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "3"]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "2"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "1"]]
[1m[35mCACHE (0.0ms)[0m SELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1 [["id", "1"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "3"]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "2"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "1"]]
[1m[35mCACHE (0.0ms)[0m SELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1 [["id", "1"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "3"]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "2"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "1"]]
[1m[35mCACHE (0.0ms)[0m SELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1 [["id", "1"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "3"]]
Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml within layouts/simple_cart/application (24.7ms)
Completed 200 OK in 39ms (Views: 37.7ms | ActiveRecord: 0.7ms)
Started PUT "/simple_cart/cart" for 127.0.0.1 at 2016-03-12 16:03:26 +0200
Processing by SimpleCart::CartsController#update as HTML
Parameters: {"utf8"=>"✓", "authenticity_token"=>"FFzgWFOYFvnLoCEm7RRug0ViQ3pp7VGLQGLFr1IGLGfSTN1UyE4aD8LdiE3+URf3BpQBP+XNgJVK7D7OPxGC9g==", "Item_2"=>"15", "Item_1"=>"10", "Bicycle_1"=>"1", "Item_3"=>"5", "coupon"=>"", "commit"=>"Update"}
[1m[35mCoupon Load (0.1ms)[0m SELECT "coupons".* FROM "coupons" WHERE "coupons"."code" = ? LIMIT 1 [["code", ""]]
[1m[36mItem Load (0.1ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", 2]]
[1m[35mItem Load (0.1ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mBicycle Load (0.1ms)[0m [1mSELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mItem Load (0.1ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 3]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "2"]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "1"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1[0m [["id", "1"]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "3"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "2"]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "1"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1[0m [["id", "1"]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "3"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "2"]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "1"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1[0m [["id", "1"]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "3"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "2"]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "1"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1[0m [["id", "1"]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "3"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "2"]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "1"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1[0m [["id", "1"]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "3"]]
Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml within layouts/simple_cart/application (24.5ms)
Completed 200 OK in 39ms (Views: 37.2ms | ActiveRecord: 0.8ms)
Started GET "/assets/simple_cart/application.self-2f12d59583468bdcee27c6046669f62a778d265fc91cf385e5d36e9189ac822e.css?body=1" for 127.0.0.1 at 2016-03-12 16:03:27 +0200
Started GET "/assets/simple_cart/application.self-8f06a73c35179188914ab50e057157639fce1401c1cdca640ac9cec33746fc5b.js?body=1" for 127.0.0.1 at 2016-03-12 16:03:27 +0200
Started GET "/simple_cart/cart" for 127.0.0.1 at 2016-03-12 16:03:29 +0200
Processing by SimpleCart::CartsController#show as HTML
[1m[36mItem Load (0.1ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", 2]]
[1m[35mItem Load (0.1ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mBicycle Load (0.1ms)[0m [1mSELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mItem Load (0.1ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 3]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "2"]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "1"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1[0m [["id", "1"]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "3"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "2"]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "1"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1[0m [["id", "1"]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "3"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "2"]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "1"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1[0m [["id", "1"]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "3"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "2"]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "1"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1[0m [["id", "1"]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "3"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "2"]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "1"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1[0m [["id", "1"]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "3"]]
Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml within layouts/simple_cart/application (27.2ms)
Completed 200 OK in 42ms (Views: 40.9ms | ActiveRecord: 0.6ms)
Started GET "/simple_cart/cart/checkout" for 127.0.0.1 at 2016-03-12 16:03:59 +0200
Processing by SimpleCart::CartsController#checkout as HTML
[1m[36mItem Load (0.1ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", 2]]
[1m[35mItem Load (0.1ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mBicycle Load (0.1ms)[0m [1mSELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mItem Load (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 3]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "2"]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "1"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1[0m [["id", "1"]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "3"]]
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
[1m[35mSQL (0.3ms)[0m INSERT INTO "orders" ("total_price", "completed_date", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["total_price", 381347.0], ["completed_date", "2016-03-12"], ["created_at", "2016-03-12 14:03:59.073651"], ["updated_at", "2016-03-12 14:03:59.073651"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "order_items" ("price", "qty", "itemable_id", "itemable_type", "order_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["price", 25412.0], ["qty", 15], ["itemable_id", 2], ["itemable_type", "Item"], ["order_id", "4"], ["created_at", "2016-03-12 14:03:59.075502"], ["updated_at", "2016-03-12 14:03:59.075502"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "order_items" ("price", "qty", "itemable_id", "itemable_type", "order_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["price", 2.0], ["qty", 10], ["itemable_id", 1], ["itemable_type", "Item"], ["order_id", "4"], ["created_at", "2016-03-12 14:03:59.076684"], ["updated_at", "2016-03-12 14:03:59.076684"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "order_items" ("price", "qty", "itemable_id", "itemable_type", "order_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["price", 22.0], ["qty", 1], ["itemable_id", 1], ["itemable_type", "Bicycle"], ["order_id", "4"], ["created_at", "2016-03-12 14:03:59.077679"], ["updated_at", "2016-03-12 14:03:59.077679"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "order_items" ("price", "qty", "itemable_id", "itemable_type", "order_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["price", 25.0], ["qty", 5], ["itemable_id", 3], ["itemable_type", "Item"], ["order_id", "4"], ["created_at", "2016-03-12 14:03:59.078608"], ["updated_at", "2016-03-12 14:03:59.078608"]]
[1m[36m (65.0ms)[0m [1mcommit transaction[0m
Redirected to http://localhost:3000/simple_cart/cart
Completed 302 Found in 77ms (ActiveRecord: 66.0ms)
Started GET "/simple_cart/cart" for 127.0.0.1 at 2016-03-12 16:03:59 +0200
Processing by SimpleCart::CartsController#show as HTML
[1m[35mItem Load (0.1ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 2]]
[1m[36mItem Load (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mBicycle Load (0.1ms)[0m SELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mItem Load (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", 3]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "2"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "1"]]
[1m[35mCACHE (0.0ms)[0m SELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1 [["id", "1"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "3"]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "2"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "1"]]
[1m[35mCACHE (0.0ms)[0m SELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1 [["id", "1"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "3"]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "2"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "1"]]
[1m[35mCACHE (0.0ms)[0m SELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1 [["id", "1"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "3"]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "2"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "1"]]
[1m[35mCACHE (0.0ms)[0m SELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1 [["id", "1"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "3"]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "2"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "1"]]
[1m[35mCACHE (0.0ms)[0m SELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1 [["id", "1"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "3"]]
Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml within layouts/simple_cart/application (22.1ms)
Completed 200 OK in 36ms (Views: 35.1ms | ActiveRecord: 0.5ms)
Started GET "/simple_cart/cart" for 127.0.0.1 at 2016-03-12 16:08:31 +0200
[1m[36mActiveRecord::SchemaMigration Load (0.2ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
Processing by SimpleCart::CartsController#show as HTML
[1m[35mItem Load (0.2ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 2]]
[1m[36mItem Load (0.1ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mBicycle Load (0.2ms)[0m SELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mItem Load (0.1ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", 3]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "2"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "1"]]
[1m[35mCACHE (0.0ms)[0m SELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1 [["id", "1"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "3"]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "2"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "1"]]
[1m[35mCACHE (0.0ms)[0m SELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1 [["id", "1"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "3"]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "2"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "1"]]
[1m[35mCACHE (0.0ms)[0m SELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1 [["id", "1"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "3"]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "2"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "1"]]
[1m[35mCACHE (0.0ms)[0m SELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1 [["id", "1"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "3"]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "2"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "1"]]
[1m[35mCACHE (0.0ms)[0m SELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1 [["id", "1"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "3"]]
Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml within layouts/simple_cart/application (79.5ms)
Completed 200 OK in 277ms (Views: 257.6ms | ActiveRecord: 2.0ms)
Started GET "/simple_cart/cart/checkout" for 127.0.0.1 at 2016-03-12 16:08:33 +0200
Processing by SimpleCart::CartsController#checkout as HTML
[1m[35mItem Load (0.1ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 2]]
[1m[36mItem Load (0.1ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mBicycle Load (0.1ms)[0m SELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mItem Load (0.1ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", 3]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "2"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "1"]]
[1m[35mCACHE (0.0ms)[0m SELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1 [["id", "1"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "3"]]
[1m[35m (0.1ms)[0m begin transaction
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "orders" ("total_price", "completed_date", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["total_price", 381347.0], ["completed_date", "2016-03-12"], ["created_at", "2016-03-12 14:08:33.495183"], ["updated_at", "2016-03-12 14:08:33.495183"]]
[1m[35mSQL (0.3ms)[0m INSERT INTO "order_items" ("price", "qty", "itemable_id", "itemable_type", "order_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["price", 25412.0], ["qty", 15], ["itemable_id", 2], ["itemable_type", "Item"], ["order_id", "5"], ["created_at", "2016-03-12 14:08:33.497454"], ["updated_at", "2016-03-12 14:08:33.497454"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "order_items" ("price", "qty", "itemable_id", "itemable_type", "order_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["price", 2.0], ["qty", 10], ["itemable_id", 1], ["itemable_type", "Item"], ["order_id", "5"], ["created_at", "2016-03-12 14:08:33.499725"], ["updated_at", "2016-03-12 14:08:33.499725"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "order_items" ("price", "qty", "itemable_id", "itemable_type", "order_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["price", 22.0], ["qty", 1], ["itemable_id", 1], ["itemable_type", "Bicycle"], ["order_id", "5"], ["created_at", "2016-03-12 14:08:33.501350"], ["updated_at", "2016-03-12 14:08:33.501350"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "order_items" ("price", "qty", "itemable_id", "itemable_type", "order_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["price", 25.0], ["qty", 5], ["itemable_id", 3], ["itemable_type", "Item"], ["order_id", "5"], ["created_at", "2016-03-12 14:08:33.502599"], ["updated_at", "2016-03-12 14:08:33.502599"]]
[1m[35m (64.9ms)[0m commit transaction
Redirected to http://localhost:3000/simple_cart/cart
Completed 302 Found in 82ms (ActiveRecord: 66.3ms)
Started GET "/simple_cart/cart" for 127.0.0.1 at 2016-03-12 16:08:33 +0200
Processing by SimpleCart::CartsController#show as HTML
[1m[36mItem Load (0.1ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", 2]]
[1m[35mItem Load (0.1ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mBicycle Load (0.1ms)[0m [1mSELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mItem Load (0.1ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 3]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "2"]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "1"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1[0m [["id", "1"]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "3"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "2"]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "1"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1[0m [["id", "1"]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "3"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "2"]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "1"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1[0m [["id", "1"]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "3"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "2"]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "1"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1[0m [["id", "1"]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "3"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "2"]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "1"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1[0m [["id", "1"]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "3"]]
Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml within layouts/simple_cart/application (27.8ms)
Completed 200 OK in 44ms (Views: 42.8ms | ActiveRecord: 0.6ms)
Started GET "/simple_cart/checkout" for 127.0.0.1 at 2016-03-12 16:08:36 +0200
ActionController::RoutingError (No route matches [GET] "/simple_cart/checkout"):
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.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/_trace.html.erb (9.6ms)
Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/routes/_route.html.erb (1.8ms)
Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/routes/_route.html.erb (0.8ms)
Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/routes/_table.html.erb (3.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 (2.2ms)
Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/rescues/routing_error.html.erb within rescues/layout (46.2ms)
Started GET "/simple_cart/orders" for 127.0.0.1 at 2016-03-12 16:09:33 +0200
ActionController::RoutingError (uninitialized constant SimpleCart::OrdersController):
activesupport (4.2.5.2) lib/active_support/inflector/methods.rb:263:in `const_get'
activesupport (4.2.5.2) lib/active_support/inflector/methods.rb:263:in `block in constantize'
activesupport (4.2.5.2) lib/active_support/inflector/methods.rb:259:in `each'
activesupport (4.2.5.2) lib/active_support/inflector/methods.rb:259:in `inject'
activesupport (4.2.5.2) lib/active_support/inflector/methods.rb:259:in `constantize'
actionpack (4.2.5.2) lib/action_dispatch/routing/route_set.rb:70:in `controller_reference'
actionpack (4.2.5.2) lib/action_dispatch/routing/route_set.rb:60:in `controller'
actionpack (4.2.5.2) lib/action_dispatch/routing/route_set.rb:39: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/_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/routes/_route.html.erb (1.3ms)
Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/routes/_route.html.erb (0.7ms)
Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/routes/_table.html.erb (1.5ms)
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.6ms)
Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/rescues/routing_error.html.erb within rescues/layout (35.6ms)
Started GET "/simple_cart/orders" for 127.0.0.1 at 2016-03-12 16:10:12 +0200
ActionController::RoutingError (uninitialized constant SimpleCart::OrdersController):
activesupport (4.2.5.2) lib/active_support/inflector/methods.rb:263:in `const_get'
activesupport (4.2.5.2) lib/active_support/inflector/methods.rb:263:in `block in constantize'
activesupport (4.2.5.2) lib/active_support/inflector/methods.rb:259:in `each'
activesupport (4.2.5.2) lib/active_support/inflector/methods.rb:259:in `inject'
activesupport (4.2.5.2) lib/active_support/inflector/methods.rb:259:in `constantize'
actionpack (4.2.5.2) lib/action_dispatch/routing/route_set.rb:70:in `controller_reference'
actionpack (4.2.5.2) lib/action_dispatch/routing/route_set.rb:60:in `controller'
actionpack (4.2.5.2) lib/action_dispatch/routing/route_set.rb:39: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/_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/routes/_route.html.erb (1.4ms)
Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/routes/_route.html.erb (0.7ms)
Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/routes/_table.html.erb (1.2ms)
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.6ms)
Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/rescues/routing_error.html.erb within rescues/layout (34.3ms)
Started GET "/simple_cart/orders/1/checkout" for 127.0.0.1 at 2016-03-12 16:10:23 +0200
ActionController::RoutingError (uninitialized constant SimpleCart::CheckoutController::Wicked):
/home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/controllers/simple_cart/checkout_controller.rb:4:in `'
/home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/controllers/simple_cart/checkout_controller.rb:2:in `'
/home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/controllers/simple_cart/checkout_controller.rb:1:in `'
activesupport (4.2.5.2) lib/active_support/inflector/methods.rb:263:in `const_get'
activesupport (4.2.5.2) lib/active_support/inflector/methods.rb:263:in `block in constantize'
activesupport (4.2.5.2) lib/active_support/inflector/methods.rb:259:in `each'
activesupport (4.2.5.2) lib/active_support/inflector/methods.rb:259:in `inject'
activesupport (4.2.5.2) lib/active_support/inflector/methods.rb:259:in `constantize'
actionpack (4.2.5.2) lib/action_dispatch/routing/route_set.rb:70:in `controller_reference'
actionpack (4.2.5.2) lib/action_dispatch/routing/route_set.rb:60:in `controller'
actionpack (4.2.5.2) lib/action_dispatch/routing/route_set.rb:39: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/_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/routes/_route.html.erb (1.3ms)
Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/routes/_route.html.erb (0.8ms)
Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/routes/_table.html.erb (1.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 (1.8ms)
Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/rescues/routing_error.html.erb within rescues/layout (33.8ms)
Started GET "/simple_cart/orders/1/checkout" for 127.0.0.1 at 2016-03-12 16:11:34 +0200
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
ActionController::RoutingError (uninitialized constant SimpleCart::CheckoutController::Wicked):
/home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/controllers/simple_cart/checkout_controller.rb:4:in `'
/home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/controllers/simple_cart/checkout_controller.rb:2:in `'
/home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/controllers/simple_cart/checkout_controller.rb:1:in `'
activesupport (4.2.5.2) lib/active_support/inflector/methods.rb:263:in `const_get'
activesupport (4.2.5.2) lib/active_support/inflector/methods.rb:263:in `block in constantize'
activesupport (4.2.5.2) lib/active_support/inflector/methods.rb:259:in `each'
activesupport (4.2.5.2) lib/active_support/inflector/methods.rb:259:in `inject'
activesupport (4.2.5.2) lib/active_support/inflector/methods.rb:259:in `constantize'
actionpack (4.2.5.2) lib/action_dispatch/routing/route_set.rb:70:in `controller_reference'
actionpack (4.2.5.2) lib/action_dispatch/routing/route_set.rb:60:in `controller'
actionpack (4.2.5.2) lib/action_dispatch/routing/route_set.rb:39: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/_trace.html.erb (1.7ms)
Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/routes/_route.html.erb (1.3ms)
Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/routes/_route.html.erb (0.8ms)
Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/routes/_table.html.erb (2.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 (9.0ms)
Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/rescues/routing_error.html.erb within rescues/layout (46.8ms)
[1m[36mOrder Load (0.3ms)[0m [1mSELECT "orders".* FROM "orders" ORDER BY "orders"."id" ASC LIMIT 1[0m
Started GET "/simple_cart/orders/3/checkout" for 127.0.0.1 at 2016-03-12 16:12:13 +0200
ActionController::RoutingError (uninitialized constant SimpleCart::CheckoutController::Wicked):
/home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/controllers/simple_cart/checkout_controller.rb:4:in `'
/home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/controllers/simple_cart/checkout_controller.rb:2:in `'
/home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/controllers/simple_cart/checkout_controller.rb:1:in `'
activesupport (4.2.5.2) lib/active_support/inflector/methods.rb:263:in `const_get'
activesupport (4.2.5.2) lib/active_support/inflector/methods.rb:263:in `block in constantize'
activesupport (4.2.5.2) lib/active_support/inflector/methods.rb:259:in `each'
activesupport (4.2.5.2) lib/active_support/inflector/methods.rb:259:in `inject'
activesupport (4.2.5.2) lib/active_support/inflector/methods.rb:259:in `constantize'
actionpack (4.2.5.2) lib/action_dispatch/routing/route_set.rb:70:in `controller_reference'
actionpack (4.2.5.2) lib/action_dispatch/routing/route_set.rb:60:in `controller'
actionpack (4.2.5.2) lib/action_dispatch/routing/route_set.rb:39: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/_trace.html.erb (1.6ms)
Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/routes/_route.html.erb (1.2ms)
Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/routes/_route.html.erb (0.7ms)
Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/routes/_table.html.erb (1.2ms)
Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (1.2ms)
Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/rescues/routing_error.html.erb within rescues/layout (32.0ms)
Started GET "/simple_cart/orders/3/checkout" for 127.0.0.1 at 2016-03-12 16:12:49 +0200
ActionController::RoutingError (uninitialized constant SimpleCart::CheckoutController::Wicked):
/home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/controllers/simple_cart/checkout_controller.rb:4:in `'
/home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/controllers/simple_cart/checkout_controller.rb:2:in `'
/home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/controllers/simple_cart/checkout_controller.rb:1:in `'
activesupport (4.2.5.2) lib/active_support/inflector/methods.rb:263:in `const_get'
activesupport (4.2.5.2) lib/active_support/inflector/methods.rb:263:in `block in constantize'
activesupport (4.2.5.2) lib/active_support/inflector/methods.rb:259:in `each'
activesupport (4.2.5.2) lib/active_support/inflector/methods.rb:259:in `inject'
activesupport (4.2.5.2) lib/active_support/inflector/methods.rb:259:in `constantize'
actionpack (4.2.5.2) lib/action_dispatch/routing/route_set.rb:70:in `controller_reference'
actionpack (4.2.5.2) lib/action_dispatch/routing/route_set.rb:60:in `controller'
actionpack (4.2.5.2) lib/action_dispatch/routing/route_set.rb:39: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/_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/routes/_route.html.erb (1.3ms)
Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/routes/_route.html.erb (0.8ms)
Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/routes/_table.html.erb (1.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 (1.5ms)
Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/rescues/routing_error.html.erb within rescues/layout (34.9ms)
Started GET "/simple_cart/orders/3/checkout" for 127.0.0.1 at 2016-03-12 16:12:56 +0200
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
ActionController::RoutingError (uninitialized constant SimpleCart::CheckoutController::Wicked):
/home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/controllers/simple_cart/checkout_controller.rb:4:in `'
/home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/controllers/simple_cart/checkout_controller.rb:2:in `'
/home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/controllers/simple_cart/checkout_controller.rb:1:in `'
activesupport (4.2.5.2) lib/active_support/inflector/methods.rb:263:in `const_get'
activesupport (4.2.5.2) lib/active_support/inflector/methods.rb:263:in `block in constantize'
activesupport (4.2.5.2) lib/active_support/inflector/methods.rb:259:in `each'
activesupport (4.2.5.2) lib/active_support/inflector/methods.rb:259:in `inject'
activesupport (4.2.5.2) lib/active_support/inflector/methods.rb:259:in `constantize'
actionpack (4.2.5.2) lib/action_dispatch/routing/route_set.rb:70:in `controller_reference'
actionpack (4.2.5.2) lib/action_dispatch/routing/route_set.rb:60:in `controller'
actionpack (4.2.5.2) lib/action_dispatch/routing/route_set.rb:39: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/_trace.html.erb (1.6ms)
Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/routes/_route.html.erb (1.3ms)
Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/routes/_route.html.erb (0.8ms)
Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/routes/_table.html.erb (1.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 (7.4ms)
Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/rescues/routing_error.html.erb within rescues/layout (43.7ms)
Started GET "/simple_cart/orders/3/checkout" for 127.0.0.1 at 2016-03-12 16:13:43 +0200
ActionController::RoutingError (undefined method `steps' for SimpleCart::CheckoutController:Class):
/home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/controllers/simple_cart/checkout_controller.rb:8:in `'
/home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/controllers/simple_cart/checkout_controller.rb:2:in `'
/home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/controllers/simple_cart/checkout_controller.rb:1:in `'
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'
activesupport (4.2.5.2) lib/active_support/inflector/methods.rb:263:in `const_get'
activesupport (4.2.5.2) lib/active_support/inflector/methods.rb:263:in `block in constantize'
activesupport (4.2.5.2) lib/active_support/inflector/methods.rb:259:in `each'
activesupport (4.2.5.2) lib/active_support/inflector/methods.rb:259:in `inject'
activesupport (4.2.5.2) lib/active_support/inflector/methods.rb:259:in `constantize'
activesupport (4.2.5.2) lib/active_support/dependencies.rb:566:in `get'
activesupport (4.2.5.2) lib/active_support/dependencies.rb:597:in `constantize'
actionpack (4.2.5.2) lib/action_dispatch/routing/route_set.rb:70:in `controller_reference'
actionpack (4.2.5.2) lib/action_dispatch/routing/route_set.rb:60:in `controller'
actionpack (4.2.5.2) lib/action_dispatch/routing/route_set.rb:39: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/_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/routes/_route.html.erb (1.3ms)
Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/routes/_route.html.erb (0.7ms)
Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/routes/_table.html.erb (1.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 (1.4ms)
Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/rescues/routing_error.html.erb within rescues/layout (36.5ms)
Started GET "/simple_cart/orders/3/checkout" for 127.0.0.1 at 2016-03-12 16:14:00 +0200
ActionController::RoutingError (uninitialized constant SimpleCart::Wicked):
/home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/controllers/simple_cart/checkout_controller.rb:4:in `'
/home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/controllers/simple_cart/checkout_controller.rb:2:in `'
/home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/controllers/simple_cart/checkout_controller.rb:1:in `'
activesupport (4.2.5.2) lib/active_support/inflector/methods.rb:263:in `const_get'
activesupport (4.2.5.2) lib/active_support/inflector/methods.rb:263:in `block in constantize'
activesupport (4.2.5.2) lib/active_support/inflector/methods.rb:259:in `each'
activesupport (4.2.5.2) lib/active_support/inflector/methods.rb:259:in `inject'
activesupport (4.2.5.2) lib/active_support/inflector/methods.rb:259:in `constantize'
actionpack (4.2.5.2) lib/action_dispatch/routing/route_set.rb:70:in `controller_reference'
actionpack (4.2.5.2) lib/action_dispatch/routing/route_set.rb:60:in `controller'
actionpack (4.2.5.2) lib/action_dispatch/routing/route_set.rb:39: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/_trace.html.erb (1.6ms)
Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/routes/_route.html.erb (1.1ms)
Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/routes/_route.html.erb (0.7ms)
Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/routes/_table.html.erb (1.2ms)
Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (1.2ms)
Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/rescues/routing_error.html.erb within rescues/layout (32.6ms)
Started GET "/simple_cart/orders/3/checkout" for 127.0.0.1 at 2016-03-12 16:14:48 +0200
ActionController::RoutingError (uninitialized constant Wicked):
/home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/controllers/simple_cart/checkout_controller.rb:4:in `'
/home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/controllers/simple_cart/checkout_controller.rb:2:in `'
/home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/controllers/simple_cart/checkout_controller.rb:1:in `'
activesupport (4.2.5.2) lib/active_support/inflector/methods.rb:263:in `const_get'
activesupport (4.2.5.2) lib/active_support/inflector/methods.rb:263:in `block in constantize'
activesupport (4.2.5.2) lib/active_support/inflector/methods.rb:259:in `each'
activesupport (4.2.5.2) lib/active_support/inflector/methods.rb:259:in `inject'
activesupport (4.2.5.2) lib/active_support/inflector/methods.rb:259:in `constantize'
actionpack (4.2.5.2) lib/action_dispatch/routing/route_set.rb:70:in `controller_reference'
actionpack (4.2.5.2) lib/action_dispatch/routing/route_set.rb:60:in `controller'
actionpack (4.2.5.2) lib/action_dispatch/routing/route_set.rb:39: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/_trace.html.erb (1.7ms)
Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/routes/_route.html.erb (1.2ms)
Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/routes/_route.html.erb (0.9ms)
Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/routes/_table.html.erb (4.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 (1.2ms)
Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/rescues/routing_error.html.erb within rescues/layout (39.8ms)
Started GET "/simple_cart/orders/3/checkout" for 127.0.0.1 at 2016-03-12 16:14:53 +0200
ActionController::RoutingError (uninitialized constant SimpleCart::CheckoutController::Wicked):
/home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/controllers/simple_cart/checkout_controller.rb:4:in `'
/home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/controllers/simple_cart/checkout_controller.rb:2:in `'
/home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/controllers/simple_cart/checkout_controller.rb:1:in `'
activesupport (4.2.5.2) lib/active_support/inflector/methods.rb:263:in `const_get'
activesupport (4.2.5.2) lib/active_support/inflector/methods.rb:263:in `block in constantize'
activesupport (4.2.5.2) lib/active_support/inflector/methods.rb:259:in `each'
activesupport (4.2.5.2) lib/active_support/inflector/methods.rb:259:in `inject'
activesupport (4.2.5.2) lib/active_support/inflector/methods.rb:259:in `constantize'
actionpack (4.2.5.2) lib/action_dispatch/routing/route_set.rb:70:in `controller_reference'
actionpack (4.2.5.2) lib/action_dispatch/routing/route_set.rb:60:in `controller'
actionpack (4.2.5.2) lib/action_dispatch/routing/route_set.rb:39: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/_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/routes/_route.html.erb (1.4ms)
Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/routes/_route.html.erb (0.8ms)
Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/routes/_table.html.erb (1.5ms)
Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (1.2ms)
Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/rescues/routing_error.html.erb within rescues/layout (36.4ms)
Started GET "/simple_cart/orders/3/checkout" for 127.0.0.1 at 2016-03-12 16:15:44 +0200
ActionController::RoutingError (uninitialized constant SimpleCart::CheckoutController::Wicked):
/home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/controllers/simple_cart/checkout_controller.rb:4:in `'
/home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/controllers/simple_cart/checkout_controller.rb:2:in `'
/home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/controllers/simple_cart/checkout_controller.rb:1:in `'
activesupport (4.2.5.2) lib/active_support/inflector/methods.rb:263:in `const_get'
activesupport (4.2.5.2) lib/active_support/inflector/methods.rb:263:in `block in constantize'
activesupport (4.2.5.2) lib/active_support/inflector/methods.rb:259:in `each'
activesupport (4.2.5.2) lib/active_support/inflector/methods.rb:259:in `inject'
activesupport (4.2.5.2) lib/active_support/inflector/methods.rb:259:in `constantize'
actionpack (4.2.5.2) lib/action_dispatch/routing/route_set.rb:70:in `controller_reference'
actionpack (4.2.5.2) lib/action_dispatch/routing/route_set.rb:60:in `controller'
actionpack (4.2.5.2) lib/action_dispatch/routing/route_set.rb:39: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/_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/routes/_route.html.erb (1.5ms)
Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/routes/_route.html.erb (0.8ms)
Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/routes/_table.html.erb (1.2ms)
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.7ms)
Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/rescues/routing_error.html.erb within rescues/layout (34.7ms)
Started GET "/simple_cart/orders/3/checkout" for 127.0.0.1 at 2016-03-12 16:15:46 +0200
ActionController::RoutingError (uninitialized constant SimpleCart::CheckoutController::Wicked):
/home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/controllers/simple_cart/checkout_controller.rb:4:in `'
/home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/controllers/simple_cart/checkout_controller.rb:2:in `'
/home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/controllers/simple_cart/checkout_controller.rb:1:in `'
activesupport (4.2.5.2) lib/active_support/inflector/methods.rb:263:in `const_get'
activesupport (4.2.5.2) lib/active_support/inflector/methods.rb:263:in `block in constantize'
activesupport (4.2.5.2) lib/active_support/inflector/methods.rb:259:in `each'
activesupport (4.2.5.2) lib/active_support/inflector/methods.rb:259:in `inject'
activesupport (4.2.5.2) lib/active_support/inflector/methods.rb:259:in `constantize'
actionpack (4.2.5.2) lib/action_dispatch/routing/route_set.rb:70:in `controller_reference'
actionpack (4.2.5.2) lib/action_dispatch/routing/route_set.rb:60:in `controller'
actionpack (4.2.5.2) lib/action_dispatch/routing/route_set.rb:39: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/_trace.html.erb (1.7ms)
Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/routes/_route.html.erb (1.4ms)
Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/routes/_route.html.erb (0.8ms)
Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/routes/_table.html.erb (1.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 (1.3ms)
Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/rescues/routing_error.html.erb within rescues/layout (37.5ms)
Started GET "/simple_cart/orders/3/checkout" for 127.0.0.1 at 2016-03-12 16:15:50 +0200
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
Processing by SimpleCart::CheckoutController#index as HTML
Parameters: {"order_id"=>"3"}
Completed 500 Internal Server Error in 3ms (ActiveRecord: 0.0ms)
NoMethodError (undefined method `authenticate_user!' for #):
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: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 (4.7ms)
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 (8.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 (25.7ms)
Started GET "/simple_cart/orders/3/checkout" for 127.0.0.1 at 2016-03-12 16:16:06 +0200
Processing by SimpleCart::CheckoutController#index as HTML
Parameters: {"order_id"=>"3"}
[1m[35mOrder Load (0.2ms)[0m SELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1 [["id", 3]]
Redirected to http://localhost:3000/simple_cart/orders/3/checkout/billing
Completed 302 Found in 15ms (ActiveRecord: 0.7ms)
Started GET "/simple_cart/orders/3/checkout/billing" for 127.0.0.1 at 2016-03-12 16:16:06 +0200
Processing by SimpleCart::CheckoutController#show as HTML
Parameters: {"order_id"=>"3", "id"=>"billing"}
[1m[36mOrder Load (0.2ms)[0m [1mSELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1[0m [["id", 3]]
Completed 500 Internal Server Error in 3ms (ActiveRecord: 0.2ms)
NameError (undefined local variable or method `current_user' for #):
/home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/controllers/simple_cart/checkout_controller.rb:20:in `show'
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: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 (4.4ms)
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 (1.2ms)
Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/rescues/diagnostics.html.erb within rescues/layout (18.5ms)
Started GET "/simple_cart/orders/3/checkout/billing" for 127.0.0.1 at 2016-03-12 16:16:21 +0200
Processing by SimpleCart::CheckoutController#show as HTML
Parameters: {"order_id"=>"3", "id"=>"billing"}
[1m[35mOrder Load (0.1ms)[0m SELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1 [["id", 3]]
Completed 500 Internal Server Error in 11ms (ActiveRecord: 0.7ms)
ActionView::MissingTemplate (Missing template simple_cart/checkout/billing, simple_cart/application/billing with {:locale=>[:en], :formats=>[:html], :variants=>[], :handlers=>[:erb, :builder, :raw, :ruby, :haml]}. Searched in:
* "/home/leksster/Ruby/RubyGarage/Amazon/simple_cart/test/dummy/app/views"
* "/home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views"
):
actionview (4.2.5.2) lib/action_view/path_set.rb:46:in `find'
actionview (4.2.5.2) lib/action_view/lookup_context.rb:121:in `find'
actionview (4.2.5.2) lib/action_view/renderer/abstract_renderer.rb:18:in `find_template'
actionview (4.2.5.2) lib/action_view/renderer/template_renderer.rb:40:in `determine_template'
actionview (4.2.5.2) lib/action_view/renderer/template_renderer.rb:8: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'
wicked (1.2.1) lib/wicked/controller/concerns/render_redirect.rb:29:in `render_step'
wicked (1.2.1) lib/wicked/controller/concerns/render_redirect.rb:11:in `render_wizard'
/home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/controllers/simple_cart/checkout_controller.rb:23:in `show'
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: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 (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 (1.1ms)
Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/rescues/missing_template.html.erb within rescues/layout (18.9ms)
Started GET "/simple_cart/orders/3/checkout/billing" for 127.0.0.1 at 2016-03-12 16:16:52 +0200
Processing by SimpleCart::CheckoutController#show as HTML
Parameters: {"order_id"=>"3", "id"=>"billing"}
[1m[36mOrder Load (0.1ms)[0m [1mSELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1[0m [["id", 3]]
Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/_progress.html.haml (3.9ms)
Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/billing.html.haml within layouts/simple_cart/application (11.2ms)
Completed 500 Internal Server Error in 14ms (ActiveRecord: 0.1ms)
ActionView::Template::Error (undefined method `shipping_address' for #):
1: .btn-group.btn-group-lg{role: "group"}
2: = link_to 'Address', wizard_path(:billing), :class => "btn btn-primary"
3:
4: = link_to_unless @order.shipping_address.nil? || @order.shipping_address.new_record?, 'Delivery', wizard_path(:delivery), { :class => "btn btn-#{step != :billing && step != :shipping ? 'primary' : 'default'}" } do
5: = link_to('Delivery', '#', {:class => "btn btn-#{step != :billing && step != :shipping ? 'primary' : 'default'}"})
6:
7: = link_to_unless @order.shipping.nil?, 'Payment', wizard_path(:payment), { :class => "btn btn-#{step == :payment || step == :confirm ? 'primary' : 'default'}" } do
activemodel (4.2.5.2) lib/active_model/attribute_methods.rb:433:in `method_missing'
/home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/_progress.html.haml:4:in `__home_leksster__uby__uby_arage__mazon_simple_cart_app_views_simple_cart_checkout__progress_html_haml___1798299143596749262_48259860'
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/partial_renderer.rb:339:in `render_partial'
actionview (4.2.5.2) lib/action_view/renderer/partial_renderer.rb:310:in `block in render'
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/partial_renderer.rb:309:in `render'
actionview (4.2.5.2) lib/action_view/renderer/renderer.rb:51:in `render_partial'
actionview (4.2.5.2) lib/action_view/helpers/rendering_helper.rb:35:in `render'
haml (4.0.7) lib/haml/helpers/action_view_mods.rb:10:in `block in render_with_haml'
haml (4.0.7) lib/haml/helpers.rb:89:in `non_haml'
haml (4.0.7) lib/haml/helpers/action_view_mods.rb:10:in `render_with_haml'
/home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/billing.html.haml:5:in `__home_leksster__uby__uby_arage__mazon_simple_cart_app_views_simple_cart_checkout_billing_html_haml__2104662388516300894_48776860'
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'
wicked (1.2.1) lib/wicked/controller/concerns/render_redirect.rb:29:in `render_step'
wicked (1.2.1) lib/wicked/controller/concerns/render_redirect.rb:11:in `render_wizard'
/home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/controllers/simple_cart/checkout_controller.rb:23:in `show'
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: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 (6.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.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 (1.1ms)
Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/rescues/template_error.html.erb within rescues/layout (19.8ms)
Started GET "/simple_cart/orders/3/checkout/billing" for 127.0.0.1 at 2016-03-12 16:17:20 +0200
Processing by SimpleCart::CheckoutController#show as HTML
Parameters: {"order_id"=>"3", "id"=>"billing"}
[1m[35mOrder Load (0.1ms)[0m SELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1 [["id", 3]]
Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/_progress.html.haml (1.6ms)
Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/_address.html.haml (41.3ms)
Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/billing.html.haml within layouts/simple_cart/application (49.1ms)
Completed 500 Internal Server Error in 53ms (ActiveRecord: 0.1ms)
ActionView::Template::Error (undefined local variable or method `current_user' for #<#:0x000000041c8ff0>):
1: .form-group
2: = ff.label :firstname
3: = ff.text_field :firstname, class: 'form-control', :value => current_user.firstname
4: .form-group
5: = ff.label :lastname
6: = ff.text_field :lastname, class: 'form-control', :value => current_user.lastname
/home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/_address.html.haml:3:in `__home_leksster__uby__uby_arage__mazon_simple_cart_app_views_simple_cart_checkout__address_html_haml___1437294562815059800_33649040'
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/partial_renderer.rb:339:in `render_partial'
actionview (4.2.5.2) lib/action_view/renderer/partial_renderer.rb:310:in `block in render'
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/partial_renderer.rb:309:in `render'
actionview (4.2.5.2) lib/action_view/renderer/renderer.rb:51:in `render_partial'
actionview (4.2.5.2) lib/action_view/helpers/rendering_helper.rb:35:in `render'
haml (4.0.7) lib/haml/helpers/action_view_mods.rb:10:in `block in render_with_haml'
haml (4.0.7) lib/haml/helpers.rb:89:in `non_haml'
haml (4.0.7) lib/haml/helpers/action_view_mods.rb:10:in `render_with_haml'
/home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/billing.html.haml:18:in `block (2 levels) in __home_leksster__uby__uby_arage__mazon_simple_cart_app_views_simple_cart_checkout_billing_html_haml__2104662388516300894_48776860'
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_helper.rb:714:in `fields_for'
actionview (4.2.5.2) lib/action_view/helpers/form_helper.rb:1599:in `fields_for'
/home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/billing.html.haml:17:in `block in __home_leksster__uby__uby_arage__mazon_simple_cart_app_views_simple_cart_checkout_billing_html_haml__2104662388516300894_48776860'
haml (4.0.7) lib/haml/helpers/action_view_mods.rb:137:in `call'
haml (4.0.7) lib/haml/helpers/action_view_mods.rb:137:in `block (2 levels) in form_for_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:137:in `block in form_for_with_haml'
actionview (4.2.5.2) lib/action_view/helpers/capture_helper.rb:38:in `block in capture'
actionview (4.2.5.2) lib/action_view/helpers/capture_helper.rb:202:in `with_output_buffer'
haml (4.0.7) lib/haml/helpers/action_view_xss_mods.rb:5:in `with_output_buffer_with_haml_xss'
actionview (4.2.5.2) lib/action_view/helpers/capture_helper.rb:38:in `capture'
haml (4.0.7) lib/haml/helpers/action_view_mods.rb:52:in `capture_with_haml'
actionview (4.2.5.2) lib/action_view/helpers/form_helper.rb:444:in `form_for'
haml (4.0.7) lib/haml/helpers/action_view_mods.rb:139:in `form_for_with_haml'
haml (4.0.7) lib/haml/helpers/action_view_xss_mods.rb:28:in `form_for_with_haml_xss'
/home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/billing.html.haml:6:in `__home_leksster__uby__uby_arage__mazon_simple_cart_app_views_simple_cart_checkout_billing_html_haml__2104662388516300894_48776860'
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'
wicked (1.2.1) lib/wicked/controller/concerns/render_redirect.rb:29:in `render_step'
wicked (1.2.1) lib/wicked/controller/concerns/render_redirect.rb:11:in `render_wizard'
/home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/controllers/simple_cart/checkout_controller.rb:23:in `show'
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: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 (8.4ms)
Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (3.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 (1.1ms)
Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/rescues/template_error.html.erb within rescues/layout (22.1ms)
Started GET "/simple_cart/orders/3/checkout/billing" for 127.0.0.1 at 2016-03-12 16:17:55 +0200
Processing by SimpleCart::CheckoutController#show as HTML
Parameters: {"order_id"=>"3", "id"=>"billing"}
[1m[36mOrder Load (0.1ms)[0m [1mSELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1[0m [["id", 3]]
Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/_progress.html.haml (4.2ms)
Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/_address.html.haml (10.3ms)
Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/billing.html.haml within layouts/simple_cart/application (17.6ms)
Completed 500 Internal Server Error in 21ms (ActiveRecord: 0.1ms)
ActionView::Template::Error (undefined local variable or method `current_user' for #<#:0x00000003ed80c0>):
1: .form-group
2: = ff.label :firstname
3: = ff.text_field :firstname, class: 'form-control', :value => current_user.firstname
4: .form-group
5: = ff.label :lastname
6: = ff.text_field :lastname, class: 'form-control', :value => current_user.lastname
/home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/_address.html.haml:3:in `__home_leksster__uby__uby_arage__mazon_simple_cart_app_views_simple_cart_checkout__address_html_haml___1437294562815059800_33649040'
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/partial_renderer.rb:339:in `render_partial'
actionview (4.2.5.2) lib/action_view/renderer/partial_renderer.rb:310:in `block in render'
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/partial_renderer.rb:309:in `render'
actionview (4.2.5.2) lib/action_view/renderer/renderer.rb:51:in `render_partial'
actionview (4.2.5.2) lib/action_view/helpers/rendering_helper.rb:35:in `render'
haml (4.0.7) lib/haml/helpers/action_view_mods.rb:10:in `block in render_with_haml'
haml (4.0.7) lib/haml/helpers.rb:89:in `non_haml'
haml (4.0.7) lib/haml/helpers/action_view_mods.rb:10:in `render_with_haml'
/home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/billing.html.haml:18:in `block (2 levels) in __home_leksster__uby__uby_arage__mazon_simple_cart_app_views_simple_cart_checkout_billing_html_haml__2104662388516300894_48776860'
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_helper.rb:714:in `fields_for'
actionview (4.2.5.2) lib/action_view/helpers/form_helper.rb:1599:in `fields_for'
/home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/billing.html.haml:17:in `block in __home_leksster__uby__uby_arage__mazon_simple_cart_app_views_simple_cart_checkout_billing_html_haml__2104662388516300894_48776860'
haml (4.0.7) lib/haml/helpers/action_view_mods.rb:137:in `call'
haml (4.0.7) lib/haml/helpers/action_view_mods.rb:137:in `block (2 levels) in form_for_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:137:in `block in form_for_with_haml'
actionview (4.2.5.2) lib/action_view/helpers/capture_helper.rb:38:in `block in capture'
actionview (4.2.5.2) lib/action_view/helpers/capture_helper.rb:202:in `with_output_buffer'
haml (4.0.7) lib/haml/helpers/action_view_xss_mods.rb:5:in `with_output_buffer_with_haml_xss'
actionview (4.2.5.2) lib/action_view/helpers/capture_helper.rb:38:in `capture'
haml (4.0.7) lib/haml/helpers/action_view_mods.rb:52:in `capture_with_haml'
actionview (4.2.5.2) lib/action_view/helpers/form_helper.rb:444:in `form_for'
haml (4.0.7) lib/haml/helpers/action_view_mods.rb:139:in `form_for_with_haml'
haml (4.0.7) lib/haml/helpers/action_view_xss_mods.rb:28:in `form_for_with_haml_xss'
/home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/billing.html.haml:6:in `__home_leksster__uby__uby_arage__mazon_simple_cart_app_views_simple_cart_checkout_billing_html_haml__2104662388516300894_48776860'
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'
wicked (1.2.1) lib/wicked/controller/concerns/render_redirect.rb:29:in `render_step'
wicked (1.2.1) lib/wicked/controller/concerns/render_redirect.rb:11:in `render_wizard'
/home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/controllers/simple_cart/checkout_controller.rb:23:in `show'
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: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 (8.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 (4.5ms)
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.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 (24.2ms)
Started GET "/simple_cart/orders/3/checkout/billing" for 127.0.0.1 at 2016-03-12 16:18:15 +0200
Processing by SimpleCart::CheckoutController#show as HTML
Parameters: {"order_id"=>"3", "id"=>"billing"}
[1m[35mOrder Load (0.2ms)[0m SELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1 [["id", 3]]
Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/_progress.html.haml (2.4ms)
Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/_address.html.haml (6.9ms)
Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/billing.html.haml within layouts/simple_cart/application (11.9ms)
Completed 500 Internal Server Error in 16ms (ActiveRecord: 0.2ms)
ActionView::Template::Error (uninitialized constant ActionView::CompiledTemplates::Country):
18: = ff.text_field :phone, class: 'form-control'
19: .form-group
20: = ff.label :country
21: = ff.collection_select :country, Country.order(:name), :id, :name, {}, {class: 'form-control'}
/home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/_address.html.haml:21:in `__home_leksster__uby__uby_arage__mazon_simple_cart_app_views_simple_cart_checkout__address_html_haml___1437294562815059800_32026920'
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/partial_renderer.rb:339:in `render_partial'
actionview (4.2.5.2) lib/action_view/renderer/partial_renderer.rb:310:in `block in render'
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/partial_renderer.rb:309:in `render'
actionview (4.2.5.2) lib/action_view/renderer/renderer.rb:51:in `render_partial'
actionview (4.2.5.2) lib/action_view/helpers/rendering_helper.rb:35:in `render'
haml (4.0.7) lib/haml/helpers/action_view_mods.rb:10:in `block in render_with_haml'
haml (4.0.7) lib/haml/helpers.rb:89:in `non_haml'
haml (4.0.7) lib/haml/helpers/action_view_mods.rb:10:in `render_with_haml'
/home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/billing.html.haml:18:in `block (2 levels) in __home_leksster__uby__uby_arage__mazon_simple_cart_app_views_simple_cart_checkout_billing_html_haml__2104662388516300894_48776860'
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_helper.rb:714:in `fields_for'
actionview (4.2.5.2) lib/action_view/helpers/form_helper.rb:1599:in `fields_for'
/home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/billing.html.haml:17:in `block in __home_leksster__uby__uby_arage__mazon_simple_cart_app_views_simple_cart_checkout_billing_html_haml__2104662388516300894_48776860'
haml (4.0.7) lib/haml/helpers/action_view_mods.rb:137:in `call'
haml (4.0.7) lib/haml/helpers/action_view_mods.rb:137:in `block (2 levels) in form_for_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:137:in `block in form_for_with_haml'
actionview (4.2.5.2) lib/action_view/helpers/capture_helper.rb:38:in `block in capture'
actionview (4.2.5.2) lib/action_view/helpers/capture_helper.rb:202:in `with_output_buffer'
haml (4.0.7) lib/haml/helpers/action_view_xss_mods.rb:5:in `with_output_buffer_with_haml_xss'
actionview (4.2.5.2) lib/action_view/helpers/capture_helper.rb:38:in `capture'
haml (4.0.7) lib/haml/helpers/action_view_mods.rb:52:in `capture_with_haml'
actionview (4.2.5.2) lib/action_view/helpers/form_helper.rb:444:in `form_for'
haml (4.0.7) lib/haml/helpers/action_view_mods.rb:139:in `form_for_with_haml'
haml (4.0.7) lib/haml/helpers/action_view_xss_mods.rb:28:in `form_for_with_haml_xss'
/home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/billing.html.haml:6:in `__home_leksster__uby__uby_arage__mazon_simple_cart_app_views_simple_cart_checkout_billing_html_haml__2104662388516300894_48776860'
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'
wicked (1.2.1) lib/wicked/controller/concerns/render_redirect.rb:29:in `render_step'
wicked (1.2.1) lib/wicked/controller/concerns/render_redirect.rb:11:in `render_wizard'
/home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/controllers/simple_cart/checkout_controller.rb:23:in `show'
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: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 (8.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 (3.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 (1.2ms)
Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/rescues/template_error.html.erb within rescues/layout (22.0ms)
Started GET "/simple_cart/orders/3/checkout/billing" for 127.0.0.1 at 2016-03-12 16:18:31 +0200
Processing by SimpleCart::CheckoutController#show as HTML
Parameters: {"order_id"=>"3", "id"=>"billing"}
[1m[36mOrder Load (0.1ms)[0m [1mSELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1[0m [["id", 3]]
Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/_progress.html.haml (1.4ms)
Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/_address.html.haml (30.5ms)
Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/billing.html.haml within layouts/simple_cart/application (34.9ms)
Completed 500 Internal Server Error in 38ms (ActiveRecord: 0.1ms)
ActionView::Template::Error (undefined method `name' for "1":String):
18: = ff.text_field :phone, class: 'form-control'
19: .form-group
20: = ff.label :country
21: = ff.collection_select :country, ['1', '2'], :id, :name, {}, {class: 'form-control'}
actionview (4.2.5.2) lib/action_view/helpers/form_options_helper.rb:759:in `value_for_collection'
actionview (4.2.5.2) lib/action_view/helpers/form_options_helper.rb:395:in `block in options_from_collection_for_select'
actionview (4.2.5.2) lib/action_view/helpers/form_options_helper.rb:394:in `map'
actionview (4.2.5.2) lib/action_view/helpers/form_options_helper.rb:394:in `options_from_collection_for_select'
actionview (4.2.5.2) lib/action_view/helpers/tags/collection_select.rb:21:in `render'
actionview (4.2.5.2) lib/action_view/helpers/form_options_helper.rb:202:in `collection_select'
actionview (4.2.5.2) lib/action_view/helpers/form_options_helper.rb:789:in `collection_select'
/home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/_address.html.haml:21:in `__home_leksster__uby__uby_arage__mazon_simple_cart_app_views_simple_cart_checkout__address_html_haml___1437294562815059800_31009540'
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/partial_renderer.rb:339:in `render_partial'
actionview (4.2.5.2) lib/action_view/renderer/partial_renderer.rb:310:in `block in render'
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/partial_renderer.rb:309:in `render'
actionview (4.2.5.2) lib/action_view/renderer/renderer.rb:51:in `render_partial'
actionview (4.2.5.2) lib/action_view/helpers/rendering_helper.rb:35:in `render'
haml (4.0.7) lib/haml/helpers/action_view_mods.rb:10:in `block in render_with_haml'
haml (4.0.7) lib/haml/helpers.rb:89:in `non_haml'
haml (4.0.7) lib/haml/helpers/action_view_mods.rb:10:in `render_with_haml'
/home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/billing.html.haml:18:in `block (2 levels) in __home_leksster__uby__uby_arage__mazon_simple_cart_app_views_simple_cart_checkout_billing_html_haml__2104662388516300894_48776860'
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_helper.rb:714:in `fields_for'
actionview (4.2.5.2) lib/action_view/helpers/form_helper.rb:1599:in `fields_for'
/home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/billing.html.haml:17:in `block in __home_leksster__uby__uby_arage__mazon_simple_cart_app_views_simple_cart_checkout_billing_html_haml__2104662388516300894_48776860'
haml (4.0.7) lib/haml/helpers/action_view_mods.rb:137:in `call'
haml (4.0.7) lib/haml/helpers/action_view_mods.rb:137:in `block (2 levels) in form_for_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:137:in `block in form_for_with_haml'
actionview (4.2.5.2) lib/action_view/helpers/capture_helper.rb:38:in `block in capture'
actionview (4.2.5.2) lib/action_view/helpers/capture_helper.rb:202:in `with_output_buffer'
haml (4.0.7) lib/haml/helpers/action_view_xss_mods.rb:5:in `with_output_buffer_with_haml_xss'
actionview (4.2.5.2) lib/action_view/helpers/capture_helper.rb:38:in `capture'
haml (4.0.7) lib/haml/helpers/action_view_mods.rb:52:in `capture_with_haml'
actionview (4.2.5.2) lib/action_view/helpers/form_helper.rb:444:in `form_for'
haml (4.0.7) lib/haml/helpers/action_view_mods.rb:139:in `form_for_with_haml'
haml (4.0.7) lib/haml/helpers/action_view_xss_mods.rb:28:in `form_for_with_haml_xss'
/home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/billing.html.haml:6:in `__home_leksster__uby__uby_arage__mazon_simple_cart_app_views_simple_cart_checkout_billing_html_haml__2104662388516300894_48776860'
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'
wicked (1.2.1) lib/wicked/controller/concerns/render_redirect.rb:29:in `render_step'
wicked (1.2.1) lib/wicked/controller/concerns/render_redirect.rb:11:in `render_wizard'
/home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/controllers/simple_cart/checkout_controller.rb:23:in `show'
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: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 (8.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 (3.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 (1.2ms)
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 (26.3ms)
Started GET "/simple_cart/orders/3/checkout/billing" for 127.0.0.1 at 2016-03-12 16:18:54 +0200
Processing by SimpleCart::CheckoutController#show as HTML
Parameters: {"order_id"=>"3", "id"=>"billing"}
[1m[35mOrder Load (0.1ms)[0m SELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1 [["id", 3]]
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 (6.6ms)
Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/billing.html.haml within layouts/simple_cart/application (9.7ms)
Completed 500 Internal Server Error in 12ms (ActiveRecord: 0.1ms)
ActionView::Template::Error ({} is not a symbol nor a string):
18: = ff.text_field :phone, class: 'form-control'
19: .form-group
20: = ff.label :country
21: = ff.collection_select :country, ['1', '2'], :id, {}, {class: 'form-control'}
actionview (4.2.5.2) lib/action_view/helpers/form_options_helper.rb:759:in `value_for_collection'
actionview (4.2.5.2) lib/action_view/helpers/form_options_helper.rb:395:in `block in options_from_collection_for_select'
actionview (4.2.5.2) lib/action_view/helpers/form_options_helper.rb:394:in `map'
actionview (4.2.5.2) lib/action_view/helpers/form_options_helper.rb:394:in `options_from_collection_for_select'
actionview (4.2.5.2) lib/action_view/helpers/tags/collection_select.rb:21:in `render'
actionview (4.2.5.2) lib/action_view/helpers/form_options_helper.rb:202:in `collection_select'
actionview (4.2.5.2) lib/action_view/helpers/form_options_helper.rb:789:in `collection_select'
/home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/_address.html.haml:21:in `__home_leksster__uby__uby_arage__mazon_simple_cart_app_views_simple_cart_checkout__address_html_haml___1437294562815059800_49708620'
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/partial_renderer.rb:339:in `render_partial'
actionview (4.2.5.2) lib/action_view/renderer/partial_renderer.rb:310:in `block in render'
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/partial_renderer.rb:309:in `render'
actionview (4.2.5.2) lib/action_view/renderer/renderer.rb:51:in `render_partial'
actionview (4.2.5.2) lib/action_view/helpers/rendering_helper.rb:35:in `render'
haml (4.0.7) lib/haml/helpers/action_view_mods.rb:10:in `block in render_with_haml'
haml (4.0.7) lib/haml/helpers.rb:89:in `non_haml'
haml (4.0.7) lib/haml/helpers/action_view_mods.rb:10:in `render_with_haml'
/home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/billing.html.haml:18:in `block (2 levels) in __home_leksster__uby__uby_arage__mazon_simple_cart_app_views_simple_cart_checkout_billing_html_haml__2104662388516300894_48776860'
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_helper.rb:714:in `fields_for'
actionview (4.2.5.2) lib/action_view/helpers/form_helper.rb:1599:in `fields_for'
/home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/billing.html.haml:17:in `block in __home_leksster__uby__uby_arage__mazon_simple_cart_app_views_simple_cart_checkout_billing_html_haml__2104662388516300894_48776860'
haml (4.0.7) lib/haml/helpers/action_view_mods.rb:137:in `call'
haml (4.0.7) lib/haml/helpers/action_view_mods.rb:137:in `block (2 levels) in form_for_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:137:in `block in form_for_with_haml'
actionview (4.2.5.2) lib/action_view/helpers/capture_helper.rb:38:in `block in capture'
actionview (4.2.5.2) lib/action_view/helpers/capture_helper.rb:202:in `with_output_buffer'
haml (4.0.7) lib/haml/helpers/action_view_xss_mods.rb:5:in `with_output_buffer_with_haml_xss'
actionview (4.2.5.2) lib/action_view/helpers/capture_helper.rb:38:in `capture'
haml (4.0.7) lib/haml/helpers/action_view_mods.rb:52:in `capture_with_haml'
actionview (4.2.5.2) lib/action_view/helpers/form_helper.rb:444:in `form_for'
haml (4.0.7) lib/haml/helpers/action_view_mods.rb:139:in `form_for_with_haml'
haml (4.0.7) lib/haml/helpers/action_view_xss_mods.rb:28:in `form_for_with_haml_xss'
/home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/billing.html.haml:6:in `__home_leksster__uby__uby_arage__mazon_simple_cart_app_views_simple_cart_checkout_billing_html_haml__2104662388516300894_48776860'
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'
wicked (1.2.1) lib/wicked/controller/concerns/render_redirect.rb:29:in `render_step'
wicked (1.2.1) lib/wicked/controller/concerns/render_redirect.rb:11:in `render_wizard'
/home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/controllers/simple_cart/checkout_controller.rb:23:in `show'
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: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 (8.5ms)
Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (3.1ms)
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/template_error.html.erb within rescues/layout (22.2ms)
Started GET "/simple_cart/orders/3/checkout/billing" for 127.0.0.1 at 2016-03-12 16:19:10 +0200
Processing by SimpleCart::CheckoutController#show as HTML
Parameters: {"order_id"=>"3", "id"=>"billing"}
[1m[36mOrder Load (0.1ms)[0m [1mSELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1[0m [["id", 3]]
Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/_progress.html.haml (1.4ms)
Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/_address.html.haml (5.8ms)
[1m[35mCACHE (0.0ms)[0m SELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1 [["id", "3"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1[0m [["id", "3"]]
Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/_summary.html.haml (7.1ms)
Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/billing.html.haml within layouts/simple_cart/application (39.2ms)
Completed 500 Internal Server Error in 43ms (ActiveRecord: 0.2ms)
ActionView::Template::Error (undefined method `shipping' for #):
3: %strong
4: = number_to_currency(Order.find(params[:order_id]).total_price)
5:
6: - unless Order.find(params[:order_id]).shipping.nil?
7: %p
8: Shipping:
9: %strong
activemodel (4.2.5.2) lib/active_model/attribute_methods.rb:433:in `method_missing'
/home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/_summary.html.haml:6:in `__home_leksster__uby__uby_arage__mazon_simple_cart_app_views_simple_cart_checkout__summary_html_haml___4337207624017973274_47535960'
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/partial_renderer.rb:339:in `render_partial'
actionview (4.2.5.2) lib/action_view/renderer/partial_renderer.rb:310:in `block in render'
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/partial_renderer.rb:309:in `render'
actionview (4.2.5.2) lib/action_view/renderer/renderer.rb:51:in `render_partial'
actionview (4.2.5.2) lib/action_view/helpers/rendering_helper.rb:35:in `render'
haml (4.0.7) lib/haml/helpers/action_view_mods.rb:10:in `block in render_with_haml'
haml (4.0.7) lib/haml/helpers.rb:89:in `non_haml'
haml (4.0.7) lib/haml/helpers/action_view_mods.rb:10:in `render_with_haml'
/home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/billing.html.haml:29:in `block in __home_leksster__uby__uby_arage__mazon_simple_cart_app_views_simple_cart_checkout_billing_html_haml__2104662388516300894_48776860'
haml (4.0.7) lib/haml/helpers/action_view_mods.rb:137:in `call'
haml (4.0.7) lib/haml/helpers/action_view_mods.rb:137:in `block (2 levels) in form_for_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:137:in `block in form_for_with_haml'
actionview (4.2.5.2) lib/action_view/helpers/capture_helper.rb:38:in `block in capture'
actionview (4.2.5.2) lib/action_view/helpers/capture_helper.rb:202:in `with_output_buffer'
haml (4.0.7) lib/haml/helpers/action_view_xss_mods.rb:5:in `with_output_buffer_with_haml_xss'
actionview (4.2.5.2) lib/action_view/helpers/capture_helper.rb:38:in `capture'
haml (4.0.7) lib/haml/helpers/action_view_mods.rb:52:in `capture_with_haml'
actionview (4.2.5.2) lib/action_view/helpers/form_helper.rb:444:in `form_for'
haml (4.0.7) lib/haml/helpers/action_view_mods.rb:139:in `form_for_with_haml'
haml (4.0.7) lib/haml/helpers/action_view_xss_mods.rb:28:in `form_for_with_haml_xss'
/home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/billing.html.haml:6:in `__home_leksster__uby__uby_arage__mazon_simple_cart_app_views_simple_cart_checkout_billing_html_haml__2104662388516300894_48776860'
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'
wicked (1.2.1) lib/wicked/controller/concerns/render_redirect.rb:29:in `render_step'
wicked (1.2.1) lib/wicked/controller/concerns/render_redirect.rb:11:in `render_wizard'
/home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/controllers/simple_cart/checkout_controller.rb:23:in `show'
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: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.5ms)
Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (3.0ms)
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/template_error.html.erb within rescues/layout (21.4ms)
Started GET "/simple_cart/orders/3/checkout/billing" for 127.0.0.1 at 2016-03-12 16:19:30 +0200
Processing by SimpleCart::CheckoutController#show as HTML
Parameters: {"order_id"=>"3", "id"=>"billing"}
[1m[35mOrder Load (0.2ms)[0m SELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1 [["id", 3]]
Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/_progress.html.haml (1.8ms)
Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/_address.html.haml (4.3ms)
[1m[36mCACHE (0.0ms)[0m [1mSELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1[0m [["id", "3"]]
[1m[35mCACHE (0.0ms)[0m SELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1 [["id", "3"]]
Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/_summary.html.haml (3.0ms)
Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/billing.html.haml within layouts/simple_cart/application (13.7ms)
Completed 500 Internal Server Error in 18ms (ActiveRecord: 0.2ms)
ActionView::Template::Error (undefined method `shipping' for #):
3: %strong
4: = number_to_currency(Order.find(params[:order_id]).total_price)
5:
6: - unless Order.find(params[:order_id]).shipping.nil?
7: %p
8: Shipping:
9: %strong
activemodel (4.2.5.2) lib/active_model/attribute_methods.rb:433:in `method_missing'
/home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/_summary.html.haml:6:in `__home_leksster__uby__uby_arage__mazon_simple_cart_app_views_simple_cart_checkout__summary_html_haml___4337207624017973274_47535960'
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/partial_renderer.rb:339:in `render_partial'
actionview (4.2.5.2) lib/action_view/renderer/partial_renderer.rb:310:in `block in render'
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/partial_renderer.rb:309:in `render'
actionview (4.2.5.2) lib/action_view/renderer/renderer.rb:51:in `render_partial'
actionview (4.2.5.2) lib/action_view/helpers/rendering_helper.rb:35:in `render'
haml (4.0.7) lib/haml/helpers/action_view_mods.rb:10:in `block in render_with_haml'
haml (4.0.7) lib/haml/helpers.rb:89:in `non_haml'
haml (4.0.7) lib/haml/helpers/action_view_mods.rb:10:in `render_with_haml'
/home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/billing.html.haml:29:in `block in __home_leksster__uby__uby_arage__mazon_simple_cart_app_views_simple_cart_checkout_billing_html_haml__2104662388516300894_48776860'
haml (4.0.7) lib/haml/helpers/action_view_mods.rb:137:in `call'
haml (4.0.7) lib/haml/helpers/action_view_mods.rb:137:in `block (2 levels) in form_for_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:137:in `block in form_for_with_haml'
actionview (4.2.5.2) lib/action_view/helpers/capture_helper.rb:38:in `block in capture'
actionview (4.2.5.2) lib/action_view/helpers/capture_helper.rb:202:in `with_output_buffer'
haml (4.0.7) lib/haml/helpers/action_view_xss_mods.rb:5:in `with_output_buffer_with_haml_xss'
actionview (4.2.5.2) lib/action_view/helpers/capture_helper.rb:38:in `capture'
haml (4.0.7) lib/haml/helpers/action_view_mods.rb:52:in `capture_with_haml'
actionview (4.2.5.2) lib/action_view/helpers/form_helper.rb:444:in `form_for'
haml (4.0.7) lib/haml/helpers/action_view_mods.rb:139:in `form_for_with_haml'
haml (4.0.7) lib/haml/helpers/action_view_xss_mods.rb:28:in `form_for_with_haml_xss'
/home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/billing.html.haml:6:in `__home_leksster__uby__uby_arage__mazon_simple_cart_app_views_simple_cart_checkout_billing_html_haml__2104662388516300894_48776860'
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'
wicked (1.2.1) lib/wicked/controller/concerns/render_redirect.rb:29:in `render_step'
wicked (1.2.1) lib/wicked/controller/concerns/render_redirect.rb:11:in `render_wizard'
/home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/controllers/simple_cart/checkout_controller.rb:23:in `show'
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: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 (12.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.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 (1.3ms)
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 (25.8ms)
Started GET "/simple_cart/orders/3/checkout/billing" for 127.0.0.1 at 2016-03-12 16:19:35 +0200
Processing by SimpleCart::CheckoutController#show as HTML
Parameters: {"order_id"=>"3", "id"=>"billing"}
[1m[36mOrder Load (0.1ms)[0m [1mSELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1[0m [["id", 3]]
Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/_progress.html.haml (1.2ms)
Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/_address.html.haml (5.6ms)
[1m[35mCACHE (0.0ms)[0m SELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1 [["id", "3"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1[0m [["id", "3"]]
Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/_summary.html.haml (2.8ms)
Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/billing.html.haml within layouts/simple_cart/application (13.2ms)
Completed 500 Internal Server Error in 16ms (ActiveRecord: 0.2ms)
ActionView::Template::Error (undefined method `shipping' for #):
3: %strong
4: = number_to_currency(Order.find(params[:order_id]).total_price)
5:
6: - unless Order.find(params[:order_id]).shipping.nil?
7: %p
8: Shipping:
9: %strong
activemodel (4.2.5.2) lib/active_model/attribute_methods.rb:433:in `method_missing'
/home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/_summary.html.haml:6:in `__home_leksster__uby__uby_arage__mazon_simple_cart_app_views_simple_cart_checkout__summary_html_haml___4337207624017973274_47535960'
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/partial_renderer.rb:339:in `render_partial'
actionview (4.2.5.2) lib/action_view/renderer/partial_renderer.rb:310:in `block in render'
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/partial_renderer.rb:309:in `render'
actionview (4.2.5.2) lib/action_view/renderer/renderer.rb:51:in `render_partial'
actionview (4.2.5.2) lib/action_view/helpers/rendering_helper.rb:35:in `render'
haml (4.0.7) lib/haml/helpers/action_view_mods.rb:10:in `block in render_with_haml'
haml (4.0.7) lib/haml/helpers.rb:89:in `non_haml'
haml (4.0.7) lib/haml/helpers/action_view_mods.rb:10:in `render_with_haml'
/home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/billing.html.haml:29:in `block in __home_leksster__uby__uby_arage__mazon_simple_cart_app_views_simple_cart_checkout_billing_html_haml__2104662388516300894_48776860'
haml (4.0.7) lib/haml/helpers/action_view_mods.rb:137:in `call'
haml (4.0.7) lib/haml/helpers/action_view_mods.rb:137:in `block (2 levels) in form_for_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:137:in `block in form_for_with_haml'
actionview (4.2.5.2) lib/action_view/helpers/capture_helper.rb:38:in `block in capture'
actionview (4.2.5.2) lib/action_view/helpers/capture_helper.rb:202:in `with_output_buffer'
haml (4.0.7) lib/haml/helpers/action_view_xss_mods.rb:5:in `with_output_buffer_with_haml_xss'
actionview (4.2.5.2) lib/action_view/helpers/capture_helper.rb:38:in `capture'
haml (4.0.7) lib/haml/helpers/action_view_mods.rb:52:in `capture_with_haml'
actionview (4.2.5.2) lib/action_view/helpers/form_helper.rb:444:in `form_for'
haml (4.0.7) lib/haml/helpers/action_view_mods.rb:139:in `form_for_with_haml'
haml (4.0.7) lib/haml/helpers/action_view_xss_mods.rb:28:in `form_for_with_haml_xss'
/home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/billing.html.haml:6:in `__home_leksster__uby__uby_arage__mazon_simple_cart_app_views_simple_cart_checkout_billing_html_haml__2104662388516300894_48776860'
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'
wicked (1.2.1) lib/wicked/controller/concerns/render_redirect.rb:29:in `render_step'
wicked (1.2.1) lib/wicked/controller/concerns/render_redirect.rb:11:in `render_wizard'
/home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/controllers/simple_cart/checkout_controller.rb:23:in `show'
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: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.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 (3.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 (1.1ms)
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 (21.4ms)
Started GET "/simple_cart/orders/3/checkout/billing" for 127.0.0.1 at 2016-03-12 16:19:45 +0200
Processing by SimpleCart::CheckoutController#show as HTML
Parameters: {"order_id"=>"3", "id"=>"billing"}
[1m[35mOrder Load (0.1ms)[0m SELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1 [["id", 3]]
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 (1.6ms)
Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/billing.html.haml within layouts/simple_cart/application (9.6ms)
Completed 200 OK in 221ms (Views: 219.6ms | ActiveRecord: 0.1ms)
Started GET "/simple_cart/cart" for 127.0.0.1 at 2016-03-12 16:20:20 +0200
Processing by SimpleCart::CartsController#show as HTML
[1m[36mItem Load (0.2ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", 2]]
[1m[35mItem Load (0.2ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mBicycle Load (0.1ms)[0m [1mSELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mItem Load (0.2ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 3]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "2"]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "1"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1[0m [["id", "1"]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "3"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "2"]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "1"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1[0m [["id", "1"]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "3"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "2"]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "1"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1[0m [["id", "1"]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "3"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "2"]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "1"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1[0m [["id", "1"]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "3"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "2"]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "1"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1[0m [["id", "1"]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "3"]]
Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml within layouts/simple_cart/application (72.5ms)
Completed 200 OK in 88ms (Views: 85.3ms | ActiveRecord: 1.6ms)
Started GET "/simple_cart/cartr" for 127.0.0.1 at 2016-03-12 16:20:21 +0200
ActionController::RoutingError (No route matches [GET] "/simple_cart/cartr"):
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.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/_trace.html.erb (1.2ms)
Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/routes/_route.html.erb (1.5ms)
Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/routes/_route.html.erb (0.7ms)
Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/routes/_table.html.erb (1.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/routing_error.html.erb within rescues/layout (30.9ms)
Started GET "/simple_cart/cart" for 127.0.0.1 at 2016-03-12 16:20:24 +0200
Processing by SimpleCart::CartsController#show as HTML
[1m[36mItem Load (0.2ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", 2]]
[1m[35mItem Load (0.1ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mBicycle Load (0.1ms)[0m [1mSELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mItem Load (0.1ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 3]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "2"]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "1"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1[0m [["id", "1"]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "3"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "2"]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "1"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1[0m [["id", "1"]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "3"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "2"]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "1"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1[0m [["id", "1"]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "3"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "2"]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "1"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1[0m [["id", "1"]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "3"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "2"]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "1"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1[0m [["id", "1"]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "3"]]
Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml within layouts/simple_cart/application (26.7ms)
Completed 200 OK in 41ms (Views: 39.2ms | ActiveRecord: 0.8ms)
Started GET "/simple_cart/cart" for 127.0.0.1 at 2016-03-12 16:20:26 +0200
Processing by SimpleCart::CartsController#show as HTML
[1m[36mItem Load (0.1ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", 2]]
[1m[35mItem Load (0.1ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mBicycle Load (0.1ms)[0m [1mSELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mItem Load (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 3]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "2"]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "1"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1[0m [["id", "1"]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "3"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "2"]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "1"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1[0m [["id", "1"]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "3"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "2"]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "1"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1[0m [["id", "1"]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "3"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "2"]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "1"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1[0m [["id", "1"]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "3"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "2"]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "1"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1[0m [["id", "1"]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "3"]]
Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml within layouts/simple_cart/application (24.5ms)
Completed 200 OK in 62ms (Views: 61.1ms | ActiveRecord: 0.5ms)
Started GET "/assets/simple_cart/application.self-2f12d59583468bdcee27c6046669f62a778d265fc91cf385e5d36e9189ac822e.css?body=1" for 127.0.0.1 at 2016-03-12 16:20:26 +0200
Started GET "/assets/simple_cart/application.self-8f06a73c35179188914ab50e057157639fce1401c1cdca640ac9cec33746fc5b.js?body=1" for 127.0.0.1 at 2016-03-12 16:20:26 +0200
Started PUT "/simple_cart/cart" for 127.0.0.1 at 2016-03-12 16:20:29 +0200
Processing by SimpleCart::CartsController#update as HTML
Parameters: {"utf8"=>"✓", "authenticity_token"=>"AjmpcjKvqrnjPxkj1qXDk/CRU7/K7q9fv832k9BNe6bEKZR+qXmmT+pCsEjF4Lrns2cR+kbOfkG1Qw3yvVrVNw==", "Item_2"=>"19", "Item_1"=>"10", "Bicycle_1"=>"1", "Item_3"=>"5", "coupon"=>"", "commit"=>"Update"}
[1m[36mCoupon Load (0.2ms)[0m [1mSELECT "coupons".* FROM "coupons" WHERE "coupons"."code" = ? LIMIT 1[0m [["code", ""]]
[1m[35mItem Load (0.1ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 2]]
[1m[36mItem Load (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mBicycle Load (0.1ms)[0m SELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mItem Load (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", 3]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "2"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "1"]]
[1m[35mCACHE (0.0ms)[0m SELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1 [["id", "1"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "3"]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "2"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "1"]]
[1m[35mCACHE (0.0ms)[0m SELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1 [["id", "1"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "3"]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "2"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "1"]]
[1m[35mCACHE (0.0ms)[0m SELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1 [["id", "1"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "3"]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "2"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "1"]]
[1m[35mCACHE (0.0ms)[0m SELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1 [["id", "1"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "3"]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "2"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "1"]]
[1m[35mCACHE (0.0ms)[0m SELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1 [["id", "1"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "3"]]
Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml within layouts/simple_cart/application (26.3ms)
Completed 200 OK in 42ms (Views: 38.1ms | ActiveRecord: 0.8ms)
Started GET "/simple_cart/cart/checkout?coupon=" for 127.0.0.1 at 2016-03-12 16:20:30 +0200
Processing by SimpleCart::CartsController#checkout as HTML
Parameters: {"coupon"=>""}
[1m[35mItem Load (0.1ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 2]]
[1m[36mItem Load (0.1ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mBicycle Load (0.1ms)[0m SELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mItem Load (0.1ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", 3]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "2"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "1"]]
[1m[35mCACHE (0.0ms)[0m SELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1 [["id", "1"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "3"]]
[1m[35m (0.2ms)[0m begin transaction
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "orders" ("total_price", "completed_date", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["total_price", 482995.0], ["completed_date", "2016-03-12"], ["created_at", "2016-03-12 14:20:30.363673"], ["updated_at", "2016-03-12 14:20:30.363673"]]
[1m[35mSQL (0.2ms)[0m INSERT INTO "order_items" ("price", "qty", "itemable_id", "itemable_type", "order_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["price", 25412.0], ["qty", 19], ["itemable_id", 2], ["itemable_type", "Item"], ["order_id", "6"], ["created_at", "2016-03-12 14:20:30.365562"], ["updated_at", "2016-03-12 14:20:30.365562"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "order_items" ("price", "qty", "itemable_id", "itemable_type", "order_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["price", 2.0], ["qty", 10], ["itemable_id", 1], ["itemable_type", "Item"], ["order_id", "6"], ["created_at", "2016-03-12 14:20:30.367027"], ["updated_at", "2016-03-12 14:20:30.367027"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "order_items" ("price", "qty", "itemable_id", "itemable_type", "order_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["price", 22.0], ["qty", 1], ["itemable_id", 1], ["itemable_type", "Bicycle"], ["order_id", "6"], ["created_at", "2016-03-12 14:20:30.368125"], ["updated_at", "2016-03-12 14:20:30.368125"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "order_items" ("price", "qty", "itemable_id", "itemable_type", "order_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["price", 25.0], ["qty", 5], ["itemable_id", 3], ["itemable_type", "Item"], ["order_id", "6"], ["created_at", "2016-03-12 14:20:30.369231"], ["updated_at", "2016-03-12 14:20:30.369231"]]
[1m[35m (240.3ms)[0m commit transaction
Redirected to http://localhost:3000/simple_cart/cart
Completed 302 Found in 254ms (ActiveRecord: 241.7ms)
Started GET "/simple_cart/cart" for 127.0.0.1 at 2016-03-12 16:20:30 +0200
Processing by SimpleCart::CartsController#show as HTML
[1m[36mItem Load (0.2ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", 2]]
[1m[35mItem Load (0.1ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mBicycle Load (0.1ms)[0m [1mSELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mItem Load (0.1ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 3]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "2"]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "1"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1[0m [["id", "1"]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "3"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "2"]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "1"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1[0m [["id", "1"]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "3"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "2"]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "1"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1[0m [["id", "1"]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "3"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "2"]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "1"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1[0m [["id", "1"]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "3"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "2"]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "1"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1[0m [["id", "1"]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "3"]]
Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml within layouts/simple_cart/application (29.1ms)
Completed 200 OK in 43ms (Views: 41.4ms | ActiveRecord: 0.7ms)
Started GET "/simple_cart/cart" for 127.0.0.1 at 2016-03-12 16:21:36 +0200
Processing by SimpleCart::CartsController#show as HTML
[1m[36mItem Load (0.2ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", 2]]
[1m[35mItem Load (0.1ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mBicycle Load (0.1ms)[0m [1mSELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mItem Load (0.1ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 3]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "2"]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "1"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1[0m [["id", "1"]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "3"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "2"]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "1"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1[0m [["id", "1"]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "3"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "2"]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "1"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1[0m [["id", "1"]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "3"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "2"]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "1"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1[0m [["id", "1"]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "3"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "2"]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "1"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1[0m [["id", "1"]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "3"]]
Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml within layouts/simple_cart/application (71.7ms)
Completed 200 OK in 96ms (Views: 91.1ms | ActiveRecord: 2.0ms)
Started GET "/assets/simple_cart/application.self-8f06a73c35179188914ab50e057157639fce1401c1cdca640ac9cec33746fc5b.js?body=1" for 127.0.0.1 at 2016-03-12 16:21:37 +0200
Started GET "/assets/simple_cart/application.self-2f12d59583468bdcee27c6046669f62a778d265fc91cf385e5d36e9189ac822e.css?body=1" for 127.0.0.1 at 2016-03-12 16:21:37 +0200
Started GET "/simple_cart/cart/clear" for 127.0.0.1 at 2016-03-12 16:21:38 +0200
Processing by SimpleCart::CartsController#clear as HTML
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-12 16:21:38 +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 (6.0ms)
Completed 200 OK in 22ms (Views: 21.3ms | ActiveRecord: 0.0ms)
Started GET "/items" for 127.0.0.1 at 2016-03-12 16:21:46 +0200
Processing by ItemsController#index as HTML
[1m[36mItem Load (0.2ms)[0m [1mSELECT "items".* FROM "items"[0m
Rendered items/index.html.erb (3.4ms)
Completed 200 OK in 9ms (Views: 8.0ms | ActiveRecord: 0.2ms)
Started GET "/items/2" for 127.0.0.1 at 2016-03-12 16:21:48 +0200
Processing by ItemsController#show as HTML
Parameters: {"id"=>"2"}
[1m[35mItem Load (0.1ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 2]]
Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/carts/_buy.html.haml (9.0ms)
Rendered items/show.html.erb (11.1ms)
Completed 200 OK in 14ms (Views: 13.4ms | ActiveRecord: 0.1ms)
Started POST "/simple_cart/cart/2" for 127.0.0.1 at 2016-03-12 16:21:50 +0200
Processing by SimpleCart::CartsController#add as HTML
Parameters: {"utf8"=>"✓", "authenticity_token"=>"026wKihhcc6rsng3tSlZqrs98YEds9hJ5na5q+UOg6cVfo0ms7d9OKLP0VymbCDe+MuzxJGTCVfs+ELKiBktNg==", "qty"=>"4", "klass"=>"Item", "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-12 16:21:50 +0200
Processing by SimpleCart::CartsController#show as HTML
[1m[36mItem Load (0.1ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", 2]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "2"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "2"]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "2"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "2"]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."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 (10.1ms)
Completed 200 OK in 24ms (Views: 23.3ms | ActiveRecord: 0.2ms)
Started PUT "/simple_cart/cart" for 127.0.0.1 at 2016-03-12 16:21:57 +0200
Processing by SimpleCart::CartsController#update as HTML
Parameters: {"utf8"=>"✓", "authenticity_token"=>"K2RvjbANO2FXby8XwFlnfEnj/E+Ce1iR9izo0f54XpPtdFKBK9s3l14ShnzTHB4IChW+Cg5biY/8ohOwk2/wAg==", "Item_2"=>"5", "coupon"=>"", "commit"=>"Update"}
[1m[36mCoupon Load (0.2ms)[0m [1mSELECT "coupons".* FROM "coupons" WHERE "coupons"."code" = ? LIMIT 1[0m [["code", ""]]
[1m[35mItem Load (0.1ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 2]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "2"]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "2"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "2"]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "2"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "2"]]
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 31ms (Views: 27.3ms | ActiveRecord: 0.5ms)
Started PUT "/simple_cart/cart" for 127.0.0.1 at 2016-03-12 16:22:29 +0200
Processing by SimpleCart::CartsController#update as HTML
Parameters: {"utf8"=>"✓", "authenticity_token"=>"56TiNFkyCDrNmLiGP+zvY5s1LGRyaAeK4t4v56UQcgshtN84wuQEzMTlEe0sqZYX2MNuIf5I1pToUNSGyAfcmg==", "Item_2"=>"5", "coupon"=>"", "commit"=>"Update"}
[1m[35mCoupon Load (0.1ms)[0m SELECT "coupons".* FROM "coupons" WHERE "coupons"."code" = ? LIMIT 1 [["code", ""]]
[1m[36mItem Load (0.1ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", 2]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "2"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "2"]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "2"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "2"]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."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 (32.0ms)
Completed 200 OK in 50ms (Views: 45.3ms | ActiveRecord: 1.7ms)
Started GET "/simple_cart/cart/checkout?coupon=" for 127.0.0.1 at 2016-03-12 16:22:31 +0200
Processing by SimpleCart::CartsController#checkout as HTML
Parameters: {"coupon"=>""}
[1m[36mItem Load (0.1ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", 2]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "2"]]
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "orders" ("total_price", "completed_date", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["total_price", 127060.0], ["completed_date", "2016-03-12"], ["created_at", "2016-03-12 14:22:31.038970"], ["updated_at", "2016-03-12 14:22:31.038970"]]
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "order_items" ("price", "qty", "itemable_id", "itemable_type", "order_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["price", 25412.0], ["qty", 5], ["itemable_id", 2], ["itemable_type", "Item"], ["order_id", "7"], ["created_at", "2016-03-12 14:22:31.040227"], ["updated_at", "2016-03-12 14:22:31.040227"]]
[1m[35m (83.7ms)[0m commit transaction
Redirected to http://localhost:3000/simple_cart/orders/7/checkout
Completed 302 Found in 91ms (ActiveRecord: 84.3ms)
Started GET "/simple_cart/orders/7/checkout" for 127.0.0.1 at 2016-03-12 16:22:31 +0200
Processing by SimpleCart::CheckoutController#index as HTML
Parameters: {"order_id"=>"7"}
[1m[36mOrder Load (0.3ms)[0m [1mSELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1[0m [["id", 7]]
Redirected to http://localhost:3000/simple_cart/orders/7/checkout/billing
Completed 302 Found in 2ms (ActiveRecord: 0.3ms)
Started GET "/simple_cart/orders/7/checkout/billing" for 127.0.0.1 at 2016-03-12 16:22:31 +0200
Processing by SimpleCart::CheckoutController#show as HTML
Parameters: {"order_id"=>"7", "id"=>"billing"}
[1m[35mOrder Load (0.1ms)[0m SELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1 [["id", 7]]
Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/_progress.html.haml (1.2ms)
Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/_address.html.haml (1.6ms)
Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/billing.html.haml within layouts/simple_cart/application (5.8ms)
Completed 200 OK in 22ms (Views: 21.0ms | ActiveRecord: 0.1ms)
Started PUT "/simple_cart/cart" for 127.0.0.1 at 2016-03-12 16:23:07 +0200
Processing by SimpleCart::CartsController#update as HTML
Parameters: {"utf8"=>"✓", "authenticity_token"=>"q0sb9lkOWICVZ72Sl5pgV/h+ud7vANX60ZKJCvh3UYttWyb6wthUdpwaFPmE3xkju4j7m2MgBOTbHHJrlWD/Gg==", "Item_2"=>"4", "coupon"=>"", "commit"=>"Update"}
[1m[36mCoupon Load (0.1ms)[0m [1mSELECT "coupons".* FROM "coupons" WHERE "coupons"."code" = ? LIMIT 1[0m [["code", ""]]
[1m[35mItem Load (0.1ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 2]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "2"]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "2"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "2"]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "2"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "2"]]
Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml within layouts/simple_cart/application (12.7ms)
Completed 200 OK in 25ms (Views: 23.7ms | ActiveRecord: 0.3ms)
Started PUT "/simple_cart/cart" for 127.0.0.1 at 2016-03-12 16:23:11 +0200
Processing by SimpleCart::CartsController#update as HTML
Parameters: {"utf8"=>"✓", "authenticity_token"=>"PCVY5vOtKyyohQa8WfYAb1PmxBN8SakH9a326qTsDVn6NWXqaHsn2qH4r9dKs3kbEBCGVvBpeBn/Iw2LyfujyA==", "Item_2"=>"3", "coupon"=>"", "commit"=>"Update"}
[1m[35mCoupon Load (0.1ms)[0m SELECT "coupons".* FROM "coupons" WHERE "coupons"."code" = ? LIMIT 1 [["code", ""]]
[1m[36mItem Load (0.1ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", 2]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "2"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "2"]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "2"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "2"]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."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 (10.5ms)
Completed 200 OK in 23ms (Views: 21.7ms | ActiveRecord: 0.3ms)
Started PUT "/simple_cart/cart" for 127.0.0.1 at 2016-03-12 16:23:13 +0200
Processing by SimpleCart::CartsController#update as HTML
Parameters: {"utf8"=>"✓", "authenticity_token"=>"UWYoIdTUyy1xgD2HRNP7O8RjF4aZX1mnW2gjEj/yVJWXdhUtTwLH23j9lOxXloJPh5VVwxV/iLlR5thzUuX6BA==", "Item_2"=>"2", "coupon"=>"", "commit"=>"Update"}
[1m[36mCoupon Load (0.1ms)[0m [1mSELECT "coupons".* FROM "coupons" WHERE "coupons"."code" = ? LIMIT 1[0m [["code", ""]]
[1m[35mItem Load (0.2ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 2]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "2"]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "2"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "2"]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "2"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "2"]]
Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml within layouts/simple_cart/application (12.9ms)
Completed 200 OK in 25ms (Views: 23.7ms | ActiveRecord: 0.4ms)
Started GET "/simple_cart/cart/checkout?coupon=" for 127.0.0.1 at 2016-03-12 16:23:15 +0200
Processing by SimpleCart::CartsController#checkout as HTML
Parameters: {"coupon"=>""}
[1m[35mItem Load (0.1ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 2]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "2"]]
[1m[35m (0.1ms)[0m begin transaction
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "orders" ("total_price", "completed_date", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["total_price", 50824.0], ["completed_date", "2016-03-12"], ["created_at", "2016-03-12 14:23:15.212918"], ["updated_at", "2016-03-12 14:23:15.212918"]]
[1m[35mSQL (0.2ms)[0m INSERT INTO "order_items" ("price", "qty", "itemable_id", "itemable_type", "order_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["price", 25412.0], ["qty", 2], ["itemable_id", 2], ["itemable_type", "Item"], ["order_id", "8"], ["created_at", "2016-03-12 14:23:15.214760"], ["updated_at", "2016-03-12 14:23:15.214760"]]
[1m[36m (746.5ms)[0m [1mcommit transaction[0m
Redirected to http://localhost:3000/simple_cart/orders/8/checkout
Completed 302 Found in 755ms (ActiveRecord: 747.2ms)
Started GET "/simple_cart/orders/8/checkout" for 127.0.0.1 at 2016-03-12 16:23:15 +0200
Processing by SimpleCart::CheckoutController#index as HTML
Parameters: {"order_id"=>"8"}
[1m[35mOrder Load (0.3ms)[0m SELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1 [["id", 8]]
Redirected to http://localhost:3000/simple_cart/orders/8/checkout/billing
Completed 302 Found in 2ms (ActiveRecord: 0.3ms)
Started GET "/simple_cart/orders/8/checkout/billing" for 127.0.0.1 at 2016-03-12 16:23:16 +0200
Processing by SimpleCart::CheckoutController#show as HTML
Parameters: {"order_id"=>"8", "id"=>"billing"}
[1m[36mOrder Load (0.1ms)[0m [1mSELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1[0m [["id", 8]]
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 (1.9ms)
Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/billing.html.haml within layouts/simple_cart/application (6.5ms)
Completed 200 OK in 19ms (Views: 18.5ms | ActiveRecord: 0.1ms)
Started GET "/simple_cart/cart/checkout?coupon=" for 127.0.0.1 at 2016-03-12 16:23:19 +0200
Processing by SimpleCart::CartsController#checkout as HTML
Parameters: {"coupon"=>""}
[1m[35mItem Load (0.2ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 2]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "2"]]
[1m[35m (0.1ms)[0m begin transaction
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "orders" ("total_price", "completed_date", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["total_price", 50824.0], ["completed_date", "2016-03-12"], ["created_at", "2016-03-12 14:23:19.819149"], ["updated_at", "2016-03-12 14:23:19.819149"]]
[1m[35mSQL (0.2ms)[0m INSERT INTO "order_items" ("price", "qty", "itemable_id", "itemable_type", "order_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["price", 25412.0], ["qty", 2], ["itemable_id", 2], ["itemable_type", "Item"], ["order_id", "9"], ["created_at", "2016-03-12 14:23:19.820961"], ["updated_at", "2016-03-12 14:23:19.820961"]]
[1m[36m (47.6ms)[0m [1mcommit transaction[0m
Redirected to http://localhost:3000/simple_cart/orders/9/checkout
Completed 302 Found in 56ms (ActiveRecord: 48.3ms)
Started GET "/simple_cart/orders/9/checkout" for 127.0.0.1 at 2016-03-12 16:23:19 +0200
Processing by SimpleCart::CheckoutController#index as HTML
Parameters: {"order_id"=>"9"}
[1m[35mOrder Load (0.1ms)[0m SELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1 [["id", 9]]
Redirected to http://localhost:3000/simple_cart/orders/9/checkout/billing
Completed 302 Found in 1ms (ActiveRecord: 0.1ms)
Started GET "/simple_cart/orders/9/checkout/billing" for 127.0.0.1 at 2016-03-12 16:23:19 +0200
Processing by SimpleCart::CheckoutController#show as HTML
Parameters: {"order_id"=>"9", "id"=>"billing"}
[1m[36mOrder Load (0.2ms)[0m [1mSELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1[0m [["id", 9]]
Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/_progress.html.haml (1.4ms)
Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/_address.html.haml (1.9ms)
Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/billing.html.haml within layouts/simple_cart/application (6.3ms)
Completed 200 OK in 17ms (Views: 16.1ms | ActiveRecord: 0.2ms)
Started GET "/simple_cart/cart/checkout?coupon=" for 127.0.0.1 at 2016-03-12 16:23:30 +0200
Processing by SimpleCart::CartsController#checkout as HTML
Parameters: {"coupon"=>""}
[1m[35mItem Load (0.1ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 2]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "2"]]
[1m[35m (0.1ms)[0m begin transaction
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "orders" ("total_price", "completed_date", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["total_price", 50824.0], ["completed_date", "2016-03-12"], ["created_at", "2016-03-12 14:23:30.271926"], ["updated_at", "2016-03-12 14:23:30.271926"]]
[1m[35mSQL (0.2ms)[0m INSERT INTO "order_items" ("price", "qty", "itemable_id", "itemable_type", "order_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["price", 25412.0], ["qty", 2], ["itemable_id", 2], ["itemable_type", "Item"], ["order_id", "10"], ["created_at", "2016-03-12 14:23:30.273145"], ["updated_at", "2016-03-12 14:23:30.273145"]]
[1m[36m (66.4ms)[0m [1mcommit transaction[0m
Redirected to http://localhost:3000/simple_cart/orders/10/checkout
Completed 302 Found in 73ms (ActiveRecord: 67.0ms)
Started GET "/simple_cart/orders/10/checkout" for 127.0.0.1 at 2016-03-12 16:23:30 +0200
Processing by SimpleCart::CheckoutController#index as HTML
Parameters: {"order_id"=>"10"}
[1m[35mOrder Load (0.1ms)[0m SELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1 [["id", 10]]
Redirected to http://localhost:3000/simple_cart/orders/10/checkout/billing
Completed 302 Found in 1ms (ActiveRecord: 0.1ms)
Started GET "/simple_cart/orders/10/checkout/billing" for 127.0.0.1 at 2016-03-12 16:23:30 +0200
Processing by SimpleCart::CheckoutController#show as HTML
Parameters: {"order_id"=>"10", "id"=>"billing"}
[1m[36mOrder Load (0.1ms)[0m [1mSELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1[0m [["id", 10]]
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 (1.3ms)
Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/billing.html.haml within layouts/simple_cart/application (4.7ms)
Completed 200 OK in 17ms (Views: 16.1ms | ActiveRecord: 0.1ms)
Started PATCH "/simple_cart/orders/10/checkout/billing" for 127.0.0.1 at 2016-03-12 16:24:13 +0200
Processing by SimpleCart::CheckoutController#update as HTML
Parameters: {"utf8"=>"✓", "authenticity_token"=>"TIt70vtzZ4MQUGiVRLeD7OMLZu6bWIXxI630NCA8DPuKm0beYKVrdRktwf5X8vqYoP0kqxd4VO8pIw9VTSuiag==", "order"=>{"billing_address"=>{"firstname"=>"", "lastname"=>"", "address"=>"", "zipcode"=>"", "city"=>"", "phone"=>""}}, "shipping"=>{"use_billing_address"=>"true"}, "commit"=>"Save and continue", "order_id"=>"10", "id"=>"billing"}
[1m[35mOrder Load (0.1ms)[0m SELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1 [["id", 10]]
Unpermitted parameter: billing_address
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
[1m[35m (0.1ms)[0m commit transaction
Completed 500 Internal Server Error in 3ms (ActiveRecord: 0.3ms)
NoMethodError (undefined method `build_shipping_address' for #):
activemodel (4.2.5.2) lib/active_model/attribute_methods.rb:433:in `method_missing'
/home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/controllers/simple_cart/checkout_controller.rb:30:in `update'
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.3ms)
Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (2.2ms)
Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (1.2ms)
Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/rescues/diagnostics.html.erb within rescues/layout (17.3ms)
Started GET "/simple_cart/orders/10/checkout/delivery" for 127.0.0.1 at 2016-03-12 16:24:52 +0200
Processing by SimpleCart::CheckoutController#show as HTML
Parameters: {"order_id"=>"10", "id"=>"delivery"}
[1m[36mOrder Load (0.1ms)[0m [1mSELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1[0m [["id", 10]]
Completed 500 Internal Server Error in 2ms (ActiveRecord: 0.1ms)
NoMethodError (undefined method `shipping_address' for #):
activemodel (4.2.5.2) lib/active_model/attribute_methods.rb:433:in `method_missing'
/home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/controllers/simple_cart/checkout_controller.rb:14:in `show'
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: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 (4.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.2ms)
Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/rescues/diagnostics.html.erb within rescues/layout (17.5ms)
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
Migrating to CreateOrderItem (20160312142751)
[1m[35m (0.1ms)[0m begin transaction
[1m[36m (0.3ms)[0m [1mDROP TABLE "order_items"[0m
[1m[35m (0.1ms)[0m CREATE TABLE "order_items" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "price" decimal, "qty" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "itemable_id" integer, "itemable_type" varchar, "order_id" varchar)
[1m[36m (0.1ms)[0m [1mselect sqlite_version(*)[0m
[1m[35m (0.1ms)[0m CREATE INDEX "index_order_items_on_itemable_id" ON "order_items" ("itemable_id")
[1m[36m (0.1ms)[0m [1m SELECT sql
FROM sqlite_master
WHERE name='index_order_items_on_itemable_id' AND type='index'
UNION ALL
SELECT sql
FROM sqlite_temp_master
WHERE name='index_order_items_on_itemable_id' AND type='index'
[0m
[1m[35m (0.1ms)[0m CREATE INDEX "index_order_items_on_order_id" ON "order_items" ("order_id")
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20160312142751"]]
[1m[35m (62.2ms)[0m commit transaction
Migrating to Address (20160312142752)
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
[1m[35m (0.4ms)[0m CREATE TABLE "addresses" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "address" varchar, "zipcode" varchar, "city" varchar, "phone" varchar, "country" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "order_id" integer, "firstname" varchar, "lastname" varchar, "type" varchar)
[1m[36m (0.3ms)[0m [1mCREATE INDEX "index_addresses_on_order_id" ON "addresses" ("order_id")[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20160312142752"]]
[1m[36m (95.1ms)[0m [1mcommit transaction[0m
[1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
[1m[36m (0.2ms)[0m [1m SELECT sql
FROM sqlite_master
WHERE name='index_addresses_on_order_id' AND type='index'
UNION ALL
SELECT sql
FROM sqlite_temp_master
WHERE name='index_addresses_on_order_id' AND type='index'
[0m
[1m[35m (0.2ms)[0m SELECT sql
FROM sqlite_master
WHERE name='index_order_items_on_order_id' AND type='index'
UNION ALL
SELECT sql
FROM sqlite_temp_master
WHERE name='index_order_items_on_order_id' AND type='index'
[1m[36m (0.2ms)[0m [1m SELECT sql
FROM sqlite_master
WHERE name='index_order_items_on_itemable_id' AND type='index'
UNION ALL
SELECT sql
FROM sqlite_temp_master
WHERE name='index_order_items_on_itemable_id' AND type='index'
[0m
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
[1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
[1m[36m (0.1ms)[0m [1m SELECT sql
FROM sqlite_master
WHERE name='index_addresses_on_order_id' AND type='index'
UNION ALL
SELECT sql
FROM sqlite_temp_master
WHERE name='index_addresses_on_order_id' AND type='index'
[0m
[1m[35m (0.2ms)[0m SELECT sql
FROM sqlite_master
WHERE name='index_order_items_on_order_id' AND type='index'
UNION ALL
SELECT sql
FROM sqlite_temp_master
WHERE name='index_order_items_on_order_id' AND type='index'
[1m[36m (0.1ms)[0m [1m SELECT sql
FROM sqlite_master
WHERE name='index_order_items_on_itemable_id' AND type='index'
UNION ALL
SELECT sql
FROM sqlite_temp_master
WHERE name='index_order_items_on_itemable_id' AND type='index'
[0m
[1m[35mOrderItem Load (0.3ms)[0m SELECT "order_items".* FROM "order_items"
[1m[36mOrder Load (0.2ms)[0m [1mSELECT "orders".* FROM "orders"[0m
[1m[35mSQL (56.2ms)[0m DELETE FROM "orders"
Started PUT "/simple_cart/cart" for 127.0.0.1 at 2016-03-12 16:29:12 +0200
[1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
Processing by SimpleCart::CartsController#update as HTML
Parameters: {"utf8"=>"✓", "authenticity_token"=>"hBCNKjtNSG7Ba7LX5EJU5a0MXXXwNPCpgZvCSMTGk6dCALAmoJtEmMgWG7z3By2R7vofMHwUIbeLFTkpqdE9Ng==", "Item_2"=>"4", "coupon"=>"", "commit"=>"Update"}
[1m[36mCoupon Load (0.1ms)[0m [1mSELECT "coupons".* FROM "coupons" WHERE "coupons"."code" = ? LIMIT 1[0m [["code", ""]]
[1m[35mItem Load (0.1ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 2]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "2"]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "2"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "2"]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "2"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "2"]]
Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml within layouts/simple_cart/application (25.5ms)
Completed 200 OK in 41ms (Views: 36.6ms | ActiveRecord: 1.3ms)
Started GET "/simple_cart/cart/checkout?coupon=" for 127.0.0.1 at 2016-03-12 16:29:14 +0200
Processing by SimpleCart::CartsController#checkout as HTML
Parameters: {"coupon"=>""}
[1m[35mItem Load (0.2ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 2]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "2"]]
[1m[35m (0.1ms)[0m begin transaction
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "orders" ("total_price", "completed_date", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["total_price", 101648.0], ["completed_date", "2016-03-12"], ["created_at", "2016-03-12 14:29:14.330450"], ["updated_at", "2016-03-12 14:29:14.330450"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "order_items" ("price", "qty", "itemable_id", "itemable_type", "order_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["price", 25412.0], ["qty", 4], ["itemable_id", 2], ["itemable_type", "Item"], ["order_id", "11"], ["created_at", "2016-03-12 14:29:14.332055"], ["updated_at", "2016-03-12 14:29:14.332055"]]
[1m[36m (223.3ms)[0m [1mcommit transaction[0m
Redirected to http://localhost:3000/simple_cart/orders/11/checkout
Completed 302 Found in 230ms (ActiveRecord: 224.0ms)
Started GET "/simple_cart/orders/11/checkout" for 127.0.0.1 at 2016-03-12 16:29:14 +0200
Processing by SimpleCart::CheckoutController#index as HTML
Parameters: {"order_id"=>"11"}
[1m[35mOrder Load (0.3ms)[0m SELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1 [["id", 11]]
Redirected to http://localhost:3000/simple_cart/orders/11/checkout/billing
Completed 302 Found in 2ms (ActiveRecord: 0.3ms)
Started GET "/simple_cart/orders/11/checkout/billing" for 127.0.0.1 at 2016-03-12 16:29:14 +0200
Processing by SimpleCart::CheckoutController#show as HTML
Parameters: {"order_id"=>"11", "id"=>"billing"}
[1m[36mOrder Load (0.1ms)[0m [1mSELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1[0m [["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 (1.3ms)
Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/billing.html.haml within layouts/simple_cart/application (5.6ms)
Completed 200 OK in 21ms (Views: 20.3ms | ActiveRecord: 0.1ms)
[1m[36mOrderItem Load (0.2ms)[0m [1mSELECT "order_items".* FROM "order_items"[0m
[1m[35mOrder Load (0.3ms)[0m SELECT "orders".* FROM "orders"
[1m[36mBillingAddress Load (0.2ms)[0m [1mSELECT "addresses".* FROM "addresses" WHERE "addresses"."type" IN ('BillingAddress')[0m
[1m[35mOrder Load (0.2ms)[0m SELECT "orders".* FROM "orders" ORDER BY "orders"."id" ASC LIMIT 1
[1m[36mOrder Load (0.3ms)[0m [1mSELECT "orders".* FROM "orders" ORDER BY "orders"."id" ASC LIMIT 1[0m
[1m[35mBillingAddress Load (0.3ms)[0m SELECT "addresses".* FROM "addresses" WHERE "addresses"."type" IN ('BillingAddress') AND "addresses"."order_id" = ? LIMIT 1 [["order_id", 11]]
[1m[36mOrder Load (0.3ms)[0m [1mSELECT "orders".* FROM "orders" ORDER BY "orders"."id" ASC LIMIT 1[0m
[1m[35mOrder Load (0.3ms)[0m SELECT "orders".* FROM "orders" ORDER BY "orders"."id" ASC LIMIT 1
[1m[36mBillingAddress Load (0.1ms)[0m [1mSELECT "addresses".* FROM "addresses" WHERE "addresses"."type" IN ('BillingAddress') AND "addresses"."order_id" = ? LIMIT 1[0m [["order_id", 11]]
[1m[35mOrder Load (0.4ms)[0m SELECT "orders".* FROM "orders" ORDER BY "orders"."id" ASC LIMIT 1
[1m[36mBillingAddress Load (0.2ms)[0m [1mSELECT "addresses".* FROM "addresses" WHERE "addresses"."type" IN ('BillingAddress') AND "addresses"."order_id" = ? LIMIT 1[0m [["order_id", 11]]
[1m[35m (0.2ms)[0m begin transaction
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
Started GET "/simple_cart/orders/11/checkout/billing" for 127.0.0.1 at 2016-03-12 16:38:10 +0200
Processing by SimpleCart::CheckoutController#show as HTML
Parameters: {"order_id"=>"11", "id"=>"billing"}
[1m[35mOrder Load (0.1ms)[0m SELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1 [["id", 11]]
Completed 500 Internal Server Error in 9ms (ActiveRecord: 0.6ms)
ArgumentError (wrong number of arguments (0 for 1)):
/home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/models/order.rb:31:in `block (2 levels) in '
/home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/controllers/simple_cart/checkout_controller.rb:20:in `show'
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: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 (12.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 (1.0ms)
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.3ms)
Started GET "/simple_cart/orders/11/checkout/billing" for 127.0.0.1 at 2016-03-12 16:38:31 +0200
Processing by SimpleCart::CheckoutController#show as HTML
Parameters: {"order_id"=>"11", "id"=>"billing"}
Completed 500 Internal Server Error in 1ms (ActiveRecord: 0.0ms)
SyntaxError (/home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/models/order.rb:58: syntax error, unexpected keyword_end, expecting end-of-input):
/home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/models/order.rb:58: syntax error, unexpected keyword_end, expecting end-of-input
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'
activesupport (4.2.5.2) lib/active_support/dependencies.rb:526:in `load_missing_constant'
activesupport (4.2.5.2) lib/active_support/dependencies.rb:184:in `const_missing'
activesupport (4.2.5.2) lib/active_support/dependencies.rb:526: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/checkout_controller.rb:46:in `set_order'
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: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 (6.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.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 (1.0ms)
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 "/simple_cart/orders/11/checkout/billing" for 127.0.0.1 at 2016-03-12 16:38:40 +0200
Processing by SimpleCart::CheckoutController#show as HTML
Parameters: {"order_id"=>"11", "id"=>"billing"}
[1m[36mOrder Load (0.1ms)[0m [1mSELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1[0m [["id", 11]]
[1m[35mBillingAddress Load (0.2ms)[0m SELECT "addresses".* FROM "addresses" WHERE "addresses"."type" IN ('BillingAddress') AND "addresses"."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 (2.9ms)
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 55ms (Views: 27.8ms | ActiveRecord: 1.1ms)
Started GET "/simple_cart/orders/11/checkout/billing" for 127.0.0.1 at 2016-03-12 16:39:28 +0200
Processing by SimpleCart::CheckoutController#show as HTML
Parameters: {"order_id"=>"11", "id"=>"billing"}
[1m[36mOrder Load (0.1ms)[0m [1mSELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1[0m [["id", 11]]
[1m[35mBillingAddress Load (0.1ms)[0m SELECT "addresses".* FROM "addresses" WHERE "addresses"."type" IN ('BillingAddress') AND "addresses"."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 (2.2ms)
Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/billing.html.haml within layouts/simple_cart/application (6.2ms)
Completed 200 OK in 22ms (Views: 18.8ms | ActiveRecord: 0.2ms)
Started GET "/simple_cart/orders/11/checkout/billing" for 127.0.0.1 at 2016-03-12 16:39:38 +0200
Processing by SimpleCart::CheckoutController#show as HTML
Parameters: {"order_id"=>"11", "id"=>"billing"}
[1m[36mOrder Load (0.1ms)[0m [1mSELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1[0m [["id", 11]]
[1m[35mBillingAddress Load (0.2ms)[0m SELECT "addresses".* FROM "addresses" WHERE "addresses"."type" IN ('BillingAddress') AND "addresses"."order_id" = ? LIMIT 1 [["order_id", 11]]
[1m[36mShippingAddress Load (0.2ms)[0m [1mSELECT "addresses".* FROM "addresses" WHERE "addresses"."type" IN ('ShippingAddress') AND "addresses"."order_id" = ? LIMIT 1[0m [["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 (2.4ms)
Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/billing.html.haml within layouts/simple_cart/application (6.3ms)
Completed 200 OK in 55ms (Views: 21.4ms | ActiveRecord: 1.3ms)
Started GET "/assets/simple_cart/application.self-2f12d59583468bdcee27c6046669f62a778d265fc91cf385e5d36e9189ac822e.css?body=1" for 127.0.0.1 at 2016-03-12 16:39:39 +0200
Started GET "/assets/simple_cart/application.self-8f06a73c35179188914ab50e057157639fce1401c1cdca640ac9cec33746fc5b.js?body=1" for 127.0.0.1 at 2016-03-12 16:39:39 +0200
Started PATCH "/simple_cart/orders/11/checkout/billing" for 127.0.0.1 at 2016-03-12 16:39:41 +0200
Processing by SimpleCart::CheckoutController#update as HTML
Parameters: {"utf8"=>"✓", "authenticity_token"=>"7cUtEn973nFdJtNWbkYpfxyuuAJzxA7KDJuOQTK6KBMr1RAe5K3Sh1Rbej19A1ALX1j6R//k39QGFXUgX62Ggg==", "order"=>{"billing_address_attributes"=>{"firstname"=>"", "lastname"=>"", "address"=>"", "zipcode"=>"", "city"=>"", "phone"=>""}}, "shipping"=>{"use_billing_address"=>"true"}, "commit"=>"Save and continue", "order_id"=>"11", "id"=>"billing"}
[1m[35mOrder Load (0.1ms)[0m SELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1 [["id", 11]]
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
[1m[35mBillingAddress Load (0.1ms)[0m SELECT "addresses".* FROM "addresses" WHERE "addresses"."type" IN ('BillingAddress') AND "addresses"."order_id" = ? LIMIT 1 [["order_id", 11]]
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.1ms)[0m begin transaction
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
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 (2.6ms)
Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/billing.html.haml within layouts/simple_cart/application (10.5ms)
Completed 200 OK in 37ms (Views: 21.7ms | ActiveRecord: 0.6ms)
Started PATCH "/simple_cart/orders/11/checkout/billing" for 127.0.0.1 at 2016-03-12 16:39:49 +0200
Processing by SimpleCart::CheckoutController#update as HTML
Parameters: {"utf8"=>"✓", "authenticity_token"=>"PKeOK9U9EtZWPWSbYhfWsLNI8BCO/C2/nj+oTz4T3Vj6t7MnTuseIF9AzfBxUq/E8L6yVQLc/KGUsVMuUwRzyQ==", "order"=>{"billing_address_attributes"=>{"firstname"=>"111", "lastname"=>"111", "address"=>"111111111111111111", "zipcode"=>"12155215", "city"=>"215215", "phone"=>"215215"}}, "shipping"=>{"use_billing_address"=>"true"}, "commit"=>"Save and continue", "order_id"=>"11", "id"=>"billing"}
[1m[35mOrder Load (0.1ms)[0m SELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1 [["id", 11]]
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
[1m[35mBillingAddress Load (0.1ms)[0m SELECT "addresses".* FROM "addresses" WHERE "addresses"."type" IN ('BillingAddress') AND "addresses"."order_id" = ? LIMIT 1 [["order_id", 11]]
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/_progress.html.haml (1.2ms)
Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/_address.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 (8.0ms)
Completed 200 OK in 28ms (Views: 20.3ms | ActiveRecord: 0.5ms)
Started PATCH "/simple_cart/orders/11/checkout/billing" for 127.0.0.1 at 2016-03-12 16:40:29 +0200
Processing by SimpleCart::CheckoutController#update as HTML
Parameters: {"utf8"=>"✓", "authenticity_token"=>"Jhtz+ab1/k6rAuMBGCIV3wXvQy93x35LjfY5Ia9Hi8PgC071PSPyuKJ/SmoLZ2yrRhkBavvnr1WHeMJAwlAlUg==", "order"=>{"billing_address_attributes"=>{"firstname"=>"111", "lastname"=>"111", "address"=>"111111111111111111", "zipcode"=>"12155215", "city"=>"215215", "phone"=>"215215"}}, "shipping"=>{"use_billing_address"=>"true"}, "commit"=>"Save and continue", "order_id"=>"11", "id"=>"billing"}
[1m[35mOrder Load (0.1ms)[0m SELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1 [["id", 11]]
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
[1m[35mBillingAddress Load (0.1ms)[0m SELECT "addresses".* FROM "addresses" WHERE "addresses"."type" IN ('BillingAddress') AND "addresses"."order_id" = ? LIMIT 1 [["order_id", 11]]
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "addresses" ("type", "firstname", "lastname", "address", "zipcode", "city", "phone", "order_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["type", "BillingAddress"], ["firstname", "111"], ["lastname", "111"], ["address", "111111111111111111"], ["zipcode", "12155215"], ["city", "215215"], ["phone", "215215"], ["order_id", 11], ["created_at", "2016-03-12 14:40:29.170023"], ["updated_at", "2016-03-12 14:40:29.170023"]]
[1m[35m (48.2ms)[0m commit transaction
[1m[36mShippingAddress Load (0.2ms)[0m [1mSELECT "addresses".* FROM "addresses" WHERE "addresses"."type" IN ('ShippingAddress') AND "addresses"."order_id" = ? LIMIT 1[0m [["order_id", 11]]
[1m[35m (0.0ms)[0m begin transaction
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "addresses" ("type", "order_id", "address", "zipcode", "city", "phone", "created_at", "updated_at", "firstname", "lastname") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["type", "ShippingAddress"], ["order_id", 11], ["address", "111111111111111111"], ["zipcode", "12155215"], ["city", "215215"], ["phone", "215215"], ["created_at", "2016-03-12 14:40:29.170023"], ["updated_at", "2016-03-12 14:40:29.170023"], ["firstname", "111"], ["lastname", "111"]]
[1m[35m (71.5ms)[0m commit transaction
Redirected to http://localhost:3000/simple_cart/orders/11/checkout/delivery
Completed 302 Found in 162ms (ActiveRecord: 121.5ms)
Started GET "/simple_cart/orders/11/checkout/delivery" for 127.0.0.1 at 2016-03-12 16:40:29 +0200
Processing by SimpleCart::CheckoutController#show as HTML
Parameters: {"order_id"=>"11", "id"=>"delivery"}
[1m[36mOrder Load (0.1ms)[0m [1mSELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1[0m [["id", 11]]
[1m[35mShippingAddress Load (0.1ms)[0m SELECT "addresses".* FROM "addresses" WHERE "addresses"."type" IN ('ShippingAddress') AND "addresses"."order_id" = ? LIMIT 1 [["order_id", 11]]
[1m[36mBillingAddress Load (0.1ms)[0m [1mSELECT "addresses".* FROM "addresses" WHERE "addresses"."type" IN ('BillingAddress') AND "addresses"."order_id" = ? LIMIT 1[0m [["order_id", 11]]
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/delivery.html.haml within layouts/simple_cart/application (7.4ms)
Completed 500 Internal Server Error in 14ms (ActiveRecord: 0.3ms)
ActionView::Template::Error (uninitialized constant ActionView::CompiledTemplates::Country):
19: %br
20: = @order.shipping_address.phone
21: %br
22: = Country.find(@order.shipping_address.country).name
23:
24: .col-md-4.col-sm-4.text-center
25: %h2
/home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/delivery.html.haml:22:in `__home_leksster__uby__uby_arage__mazon_simple_cart_app_views_simple_cart_checkout_delivery_html_haml___3271831026219944331_70286492201640'
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'
wicked (1.2.1) lib/wicked/controller/concerns/render_redirect.rb:29:in `render_step'
wicked (1.2.1) lib/wicked/controller/concerns/render_redirect.rb:11:in `render_wizard'
/home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/controllers/simple_cart/checkout_controller.rb:23:in `show'
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: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.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.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 (1.2ms)
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 (21.5ms)
Started GET "/simple_cart/orders/11/checkout/billing" for 127.0.0.1 at 2016-03-12 16:46:38 +0200
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
Processing by SimpleCart::CheckoutController#show as HTML
Parameters: {"order_id"=>"11", "id"=>"billing"}
[1m[35mOrder Load (0.3ms)[0m SELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1 [["id", 11]]
[1m[36mBillingAddress Load (0.2ms)[0m [1mSELECT "addresses".* FROM "addresses" WHERE "addresses"."type" IN ('BillingAddress') AND "addresses"."order_id" = ? LIMIT 1[0m [["order_id", 11]]
[1m[35mShippingAddress Load (0.3ms)[0m SELECT "addresses".* FROM "addresses" WHERE "addresses"."type" IN ('ShippingAddress') AND "addresses"."order_id" = ? LIMIT 1 [["order_id", 11]]
Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/_progress.html.haml (3.7ms)
Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/_address.html.haml (13.1ms)
Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/billing.html.haml within layouts/simple_cart/application (25.9ms)
Completed 500 Internal Server Error in 81ms (ActiveRecord: 1.3ms)
ActionView::Template::Error (undefined method `name' for "Afghanistan":String):
18: = ff.text_field :phone, class: 'form-control'
19: .form-group
20: = ff.label :country
21: = ff.collection_select :country, Address.countries, :id, :name, {}, {class: 'form-control'}
actionview (4.2.5.2) lib/action_view/helpers/form_options_helper.rb:759:in `value_for_collection'
actionview (4.2.5.2) lib/action_view/helpers/form_options_helper.rb:395:in `block in options_from_collection_for_select'
actionview (4.2.5.2) lib/action_view/helpers/form_options_helper.rb:394:in `map'
actionview (4.2.5.2) lib/action_view/helpers/form_options_helper.rb:394:in `options_from_collection_for_select'
actionview (4.2.5.2) lib/action_view/helpers/tags/collection_select.rb:21:in `render'
actionview (4.2.5.2) lib/action_view/helpers/form_options_helper.rb:202:in `collection_select'
actionview (4.2.5.2) lib/action_view/helpers/form_options_helper.rb:789:in `collection_select'
/home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/_address.html.haml:21:in `__home_leksster__uby__uby_arage__mazon_simple_cart_app_views_simple_cart_checkout__address_html_haml__2467505110367271325_43856420'
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/partial_renderer.rb:339:in `render_partial'
actionview (4.2.5.2) lib/action_view/renderer/partial_renderer.rb:310:in `block in render'
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/partial_renderer.rb:309:in `render'
actionview (4.2.5.2) lib/action_view/renderer/renderer.rb:51:in `render_partial'
actionview (4.2.5.2) lib/action_view/helpers/rendering_helper.rb:35:in `render'
haml (4.0.7) lib/haml/helpers/action_view_mods.rb:10:in `block in render_with_haml'
haml (4.0.7) lib/haml/helpers.rb:89:in `non_haml'
haml (4.0.7) lib/haml/helpers/action_view_mods.rb:10:in `render_with_haml'
/home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/billing.html.haml:18:in `block (2 levels) in __home_leksster__uby__uby_arage__mazon_simple_cart_app_views_simple_cart_checkout_billing_html_haml___370982708785002707_45262860'
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_helper.rb:1925:in `block in fields_for_nested_model'
actionview (4.2.5.2) lib/action_view/helpers/capture_helper.rb:38:in `block in capture'
actionview (4.2.5.2) lib/action_view/helpers/capture_helper.rb:202:in `with_output_buffer'
haml (4.0.7) lib/haml/helpers/action_view_xss_mods.rb:5:in `with_output_buffer_with_haml_xss'
actionview (4.2.5.2) lib/action_view/helpers/capture_helper.rb:38:in `capture'
haml (4.0.7) lib/haml/helpers/action_view_mods.rb:52:in `capture_with_haml'
actionview (4.2.5.2) lib/action_view/helpers/form_helper.rb:714:in `fields_for'
actionview (4.2.5.2) lib/action_view/helpers/form_helper.rb:1924:in `fields_for_nested_model'
actionview (4.2.5.2) lib/action_view/helpers/form_helper.rb:1914:in `fields_for_with_nested_attributes'
actionview (4.2.5.2) lib/action_view/helpers/form_helper.rb:1582:in `fields_for'
/home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/billing.html.haml:17:in `block in __home_leksster__uby__uby_arage__mazon_simple_cart_app_views_simple_cart_checkout_billing_html_haml___370982708785002707_45262860'
haml (4.0.7) lib/haml/helpers/action_view_mods.rb:137:in `call'
haml (4.0.7) lib/haml/helpers/action_view_mods.rb:137:in `block (2 levels) in form_for_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:137:in `block in form_for_with_haml'
actionview (4.2.5.2) lib/action_view/helpers/capture_helper.rb:38:in `block in capture'
actionview (4.2.5.2) lib/action_view/helpers/capture_helper.rb:202:in `with_output_buffer'
haml (4.0.7) lib/haml/helpers/action_view_xss_mods.rb:5:in `with_output_buffer_with_haml_xss'
actionview (4.2.5.2) lib/action_view/helpers/capture_helper.rb:38:in `capture'
haml (4.0.7) lib/haml/helpers/action_view_mods.rb:52:in `capture_with_haml'
actionview (4.2.5.2) lib/action_view/helpers/form_helper.rb:444:in `form_for'
haml (4.0.7) lib/haml/helpers/action_view_mods.rb:139:in `form_for_with_haml'
haml (4.0.7) lib/haml/helpers/action_view_xss_mods.rb:28:in `form_for_with_haml_xss'
/home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/billing.html.haml:6:in `__home_leksster__uby__uby_arage__mazon_simple_cart_app_views_simple_cart_checkout_billing_html_haml___370982708785002707_45262860'
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'
wicked (1.2.1) lib/wicked/controller/concerns/render_redirect.rb:29:in `render_step'
wicked (1.2.1) lib/wicked/controller/concerns/render_redirect.rb:11:in `render_wizard'
/home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/controllers/simple_cart/checkout_controller.rb:23:in `show'
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: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 (12.3ms)
Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (3.4ms)
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 (7.5ms)
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 (33.3ms)
Started GET "/simple_cart/orders/11/checkout/billing" for 127.0.0.1 at 2016-03-12 16:47:09 +0200
Processing by SimpleCart::CheckoutController#show as HTML
Parameters: {"order_id"=>"11", "id"=>"billing"}
[1m[36mOrder Load (0.1ms)[0m [1mSELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1[0m [["id", 11]]
[1m[35mBillingAddress Load (0.2ms)[0m SELECT "addresses".* FROM "addresses" WHERE "addresses"."type" IN ('BillingAddress') AND "addresses"."order_id" = ? LIMIT 1 [["order_id", 11]]
[1m[36mShippingAddress Load (0.2ms)[0m [1mSELECT "addresses".* FROM "addresses" WHERE "addresses"."type" IN ('ShippingAddress') AND "addresses"."order_id" = ? LIMIT 1[0m [["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 (6.1ms)
Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/billing.html.haml within layouts/simple_cart/application (10.5ms)
Completed 500 Internal Server Error in 21ms (ActiveRecord: 0.5ms)
ActionView::Template::Error (undefined method `namee' for "Afghanistan":String):
18: = ff.text_field :phone, class: 'form-control'
19: .form-group
20: = ff.label :country
21: = ff.collection_select :country, Address.countries, :id, :namee, {}, {class: 'form-control'}
actionview (4.2.5.2) lib/action_view/helpers/form_options_helper.rb:759:in `value_for_collection'
actionview (4.2.5.2) lib/action_view/helpers/form_options_helper.rb:395:in `block in options_from_collection_for_select'
actionview (4.2.5.2) lib/action_view/helpers/form_options_helper.rb:394:in `map'
actionview (4.2.5.2) lib/action_view/helpers/form_options_helper.rb:394:in `options_from_collection_for_select'
actionview (4.2.5.2) lib/action_view/helpers/tags/collection_select.rb:21:in `render'
actionview (4.2.5.2) lib/action_view/helpers/form_options_helper.rb:202:in `collection_select'
actionview (4.2.5.2) lib/action_view/helpers/form_options_helper.rb:789:in `collection_select'
/home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/_address.html.haml:21:in `__home_leksster__uby__uby_arage__mazon_simple_cart_app_views_simple_cart_checkout__address_html_haml__2467505110367271325_49296140'
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/partial_renderer.rb:339:in `render_partial'
actionview (4.2.5.2) lib/action_view/renderer/partial_renderer.rb:310:in `block in render'
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/partial_renderer.rb:309:in `render'
actionview (4.2.5.2) lib/action_view/renderer/renderer.rb:51:in `render_partial'
actionview (4.2.5.2) lib/action_view/helpers/rendering_helper.rb:35:in `render'
haml (4.0.7) lib/haml/helpers/action_view_mods.rb:10:in `block in render_with_haml'
haml (4.0.7) lib/haml/helpers.rb:89:in `non_haml'
haml (4.0.7) lib/haml/helpers/action_view_mods.rb:10:in `render_with_haml'
/home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/billing.html.haml:18:in `block (2 levels) in __home_leksster__uby__uby_arage__mazon_simple_cart_app_views_simple_cart_checkout_billing_html_haml___370982708785002707_45262860'
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_helper.rb:1925:in `block in fields_for_nested_model'
actionview (4.2.5.2) lib/action_view/helpers/capture_helper.rb:38:in `block in capture'
actionview (4.2.5.2) lib/action_view/helpers/capture_helper.rb:202:in `with_output_buffer'
haml (4.0.7) lib/haml/helpers/action_view_xss_mods.rb:5:in `with_output_buffer_with_haml_xss'
actionview (4.2.5.2) lib/action_view/helpers/capture_helper.rb:38:in `capture'
haml (4.0.7) lib/haml/helpers/action_view_mods.rb:52:in `capture_with_haml'
actionview (4.2.5.2) lib/action_view/helpers/form_helper.rb:714:in `fields_for'
actionview (4.2.5.2) lib/action_view/helpers/form_helper.rb:1924:in `fields_for_nested_model'
actionview (4.2.5.2) lib/action_view/helpers/form_helper.rb:1914:in `fields_for_with_nested_attributes'
actionview (4.2.5.2) lib/action_view/helpers/form_helper.rb:1582:in `fields_for'
/home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/billing.html.haml:17:in `block in __home_leksster__uby__uby_arage__mazon_simple_cart_app_views_simple_cart_checkout_billing_html_haml___370982708785002707_45262860'
haml (4.0.7) lib/haml/helpers/action_view_mods.rb:137:in `call'
haml (4.0.7) lib/haml/helpers/action_view_mods.rb:137:in `block (2 levels) in form_for_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:137:in `block in form_for_with_haml'
actionview (4.2.5.2) lib/action_view/helpers/capture_helper.rb:38:in `block in capture'
actionview (4.2.5.2) lib/action_view/helpers/capture_helper.rb:202:in `with_output_buffer'
haml (4.0.7) lib/haml/helpers/action_view_xss_mods.rb:5:in `with_output_buffer_with_haml_xss'
actionview (4.2.5.2) lib/action_view/helpers/capture_helper.rb:38:in `capture'
haml (4.0.7) lib/haml/helpers/action_view_mods.rb:52:in `capture_with_haml'
actionview (4.2.5.2) lib/action_view/helpers/form_helper.rb:444:in `form_for'
haml (4.0.7) lib/haml/helpers/action_view_mods.rb:139:in `form_for_with_haml'
haml (4.0.7) lib/haml/helpers/action_view_xss_mods.rb:28:in `form_for_with_haml_xss'
/home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/billing.html.haml:6:in `__home_leksster__uby__uby_arage__mazon_simple_cart_app_views_simple_cart_checkout_billing_html_haml___370982708785002707_45262860'
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'
wicked (1.2.1) lib/wicked/controller/concerns/render_redirect.rb:29:in `render_step'
wicked (1.2.1) lib/wicked/controller/concerns/render_redirect.rb:11:in `render_wizard'
/home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/controllers/simple_cart/checkout_controller.rb:23:in `show'
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: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 (8.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 (3.2ms)
Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (1.0ms)
Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/rescues/template_error.html.erb within rescues/layout (22.9ms)
Started GET "/simple_cart/orders/11/checkout/billing" for 127.0.0.1 at 2016-03-12 16:48:20 +0200
Processing by SimpleCart::CheckoutController#show as HTML
Parameters: {"order_id"=>"11", "id"=>"billing"}
[1m[35mOrder Load (0.1ms)[0m SELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1 [["id", 11]]
[1m[36mBillingAddress Load (0.3ms)[0m [1mSELECT "addresses".* FROM "addresses" WHERE "addresses"."type" IN ('BillingAddress') AND "addresses"."order_id" = ? LIMIT 1[0m [["order_id", 11]]
[1m[35mShippingAddress Load (0.2ms)[0m SELECT "addresses".* FROM "addresses" WHERE "addresses"."type" IN ('ShippingAddress') AND "addresses"."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 (9.1ms)
Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/billing.html.haml within layouts/simple_cart/application (37.6ms)
Completed 200 OK in 254ms (Views: 248.8ms | ActiveRecord: 0.6ms)
Started GET "/simple_cart/orders/11/checkout/billing" for 127.0.0.1 at 2016-03-12 16:48:32 +0200
Processing by SimpleCart::CheckoutController#show as HTML
Parameters: {"order_id"=>"11", "id"=>"billing"}
[1m[36mOrder Load (0.1ms)[0m [1mSELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1[0m [["id", 11]]
[1m[35mBillingAddress Load (0.2ms)[0m SELECT "addresses".* FROM "addresses" WHERE "addresses"."type" IN ('BillingAddress') AND "addresses"."order_id" = ? LIMIT 1 [["order_id", 11]]
[1m[36mShippingAddress Load (0.1ms)[0m [1mSELECT "addresses".* FROM "addresses" WHERE "addresses"."type" IN ('ShippingAddress') AND "addresses"."order_id" = ? LIMIT 1[0m [["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.1ms)
Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/billing.html.haml within layouts/simple_cart/application (12.2ms)
Completed 200 OK in 27ms (Views: 23.9ms | ActiveRecord: 0.4ms)
Started GET "/assets/simple_cart/application.self-2f12d59583468bdcee27c6046669f62a778d265fc91cf385e5d36e9189ac822e.css?body=1" for 127.0.0.1 at 2016-03-12 16:48:32 +0200
Started GET "/assets/simple_cart/application.self-8f06a73c35179188914ab50e057157639fce1401c1cdca640ac9cec33746fc5b.js?body=1" for 127.0.0.1 at 2016-03-12 16:48:32 +0200
Started PATCH "/simple_cart/orders/11/checkout/billing" for 127.0.0.1 at 2016-03-12 16:48:37 +0200
Processing by SimpleCart::CheckoutController#update as HTML
Parameters: {"utf8"=>"✓", "authenticity_token"=>"5oUSj8rp2mcIcbpGLD2tsVRTLs0+8hr8c91gNgKI3M0glS+DUT/WkQEMEy0/eNTFF6VsiLLSy+J5U5tXb59yXA==", "order"=>{"billing_address_attributes"=>{"firstname"=>"111", "lastname"=>"111", "address"=>"8", "zipcode"=>"12155215", "city"=>"215215", "phone"=>"215215", "country"=>"Afghanistan", "id"=>"1"}}, "shipping"=>{"use_billing_address"=>"true"}, "commit"=>"Save and continue", "order_id"=>"11", "id"=>"billing"}
[1m[35mOrder Load (0.1ms)[0m SELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1 [["id", 11]]
Unpermitted parameter: id
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
[1m[35mBillingAddress Load (0.2ms)[0m SELECT "addresses".* FROM "addresses" WHERE "addresses"."type" IN ('BillingAddress') AND "addresses"."order_id" = ? LIMIT 1 [["order_id", 11]]
[1m[36mSQL (0.3ms)[0m [1mDELETE FROM "addresses" WHERE "addresses"."type" IN ('BillingAddress') AND "addresses"."id" = ?[0m [["id", 1]]
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
[1m[35m (0.0ms)[0m 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.5ms)
Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/billing.html.haml within layouts/simple_cart/application (13.2ms)
Completed 200 OK in 46ms (Views: 38.3ms | ActiveRecord: 1.0ms)
Started GET "/simple_cart/orders/11/checkout/billing" for 127.0.0.1 at 2016-03-12 16:48:50 +0200
Processing by SimpleCart::CheckoutController#show as HTML
Parameters: {"order_id"=>"11", "id"=>"billing"}
Completed 500 Internal Server Error in 2ms (ActiveRecord: 0.0ms)
NameError (uninitialized constant Order::AASM):
/home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/models/order.rb:2:in `'
/home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/models/order.rb:1:in `'
/home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/controllers/simple_cart/checkout_controller.rb:46:in `set_order'
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: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 (4.3ms)
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 (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.5ms)
Started GET "/simple_cart/orders/11/checkout/billing" for 127.0.0.1 at 2016-03-12 16:49:22 +0200
Processing by SimpleCart::CheckoutController#show as HTML
Parameters: {"order_id"=>"11", "id"=>"billing"}
Completed 500 Internal Server Error in 2ms (ActiveRecord: 0.0ms)
NameError (uninitialized constant Order::AASM):
/home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/models/order.rb:2:in `'
/home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/models/order.rb:1:in `'
/home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/controllers/simple_cart/checkout_controller.rb:46:in `set_order'
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: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 (4.5ms)
Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (2.2ms)
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 (18.3ms)
Started GET "/simple_cart/orders/11/checkout/billing" for 127.0.0.1 at 2016-03-12 16:49:28 +0200
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
Processing by SimpleCart::CheckoutController#show as HTML
Parameters: {"order_id"=>"11", "id"=>"billing"}
[1m[35mOrder Load (0.2ms)[0m SELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1 [["id", 11]]
[1m[36mBillingAddress Load (0.3ms)[0m [1mSELECT "addresses".* FROM "addresses" WHERE "addresses"."type" IN ('BillingAddress') AND "addresses"."order_id" = ? LIMIT 1[0m [["order_id", 11]]
[1m[35mShippingAddress Load (0.2ms)[0m SELECT "addresses".* FROM "addresses" WHERE "addresses"."type" IN ('ShippingAddress') AND "addresses"."order_id" = ? LIMIT 1 [["order_id", 11]]
Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/_progress.html.haml (3.3ms)
Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/_address.html.haml (16.4ms)
Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/billing.html.haml within layouts/simple_cart/application (39.8ms)
Completed 200 OK in 274ms (Views: 196.2ms | ActiveRecord: 1.4ms)
Started PATCH "/simple_cart/orders/11/checkout/billing" for 127.0.0.1 at 2016-03-12 16:49:30 +0200
Processing by SimpleCart::CheckoutController#update as HTML
Parameters: {"utf8"=>"✓", "authenticity_token"=>"ztKzzwabaruQno0xOqBpVQJQl1KwAk8o7cTezm5SDcEIwo7DnU1mTZnjJFop5RAhQabVFzwinjbnSiWvA0WjUA==", "order"=>{"billing_address_attributes"=>{"firstname"=>"111", "lastname"=>"111", "address"=>"111111111111111111", "zipcode"=>"12155215", "city"=>"215215", "phone"=>"215215", "country"=>"Afghanistan", "id"=>"1"}}, "shipping"=>{"use_billing_address"=>"true"}, "commit"=>"Save and continue", "order_id"=>"11", "id"=>"billing"}
[1m[36mOrder Load (0.1ms)[0m [1mSELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1[0m [["id", 11]]
Unpermitted parameter: id
[1m[35m (0.1ms)[0m begin transaction
[1m[36mBillingAddress Load (0.1ms)[0m [1mSELECT "addresses".* FROM "addresses" WHERE "addresses"."type" IN ('BillingAddress') AND "addresses"."order_id" = ? LIMIT 1[0m [["order_id", 11]]
[1m[35mSQL (0.4ms)[0m DELETE FROM "addresses" WHERE "addresses"."type" IN ('BillingAddress') AND "addresses"."id" = ? [["id", 1]]
[1m[36mSQL (0.2ms)[0m [1mUPDATE "orders" SET "aasm_state" = ?, "updated_at" = ? WHERE "orders"."id" = ?[0m [["aasm_state", "in_progress"], ["updated_at", "2016-03-12 14:49:30.882131"], ["id", 11]]
[1m[35mSQL (0.2ms)[0m INSERT INTO "addresses" ("type", "firstname", "lastname", "address", "zipcode", "city", "phone", "country", "order_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["type", "BillingAddress"], ["firstname", "111"], ["lastname", "111"], ["address", "111111111111111111"], ["zipcode", "12155215"], ["city", "215215"], ["phone", "215215"], ["country", "Afghanistan"], ["order_id", 11], ["created_at", "2016-03-12 14:49:30.884340"], ["updated_at", "2016-03-12 14:49:30.884340"]]
[1m[36m (109.9ms)[0m [1mcommit transaction[0m
[1m[35mShippingAddress Load (0.1ms)[0m SELECT "addresses".* FROM "addresses" WHERE "addresses"."type" IN ('ShippingAddress') AND "addresses"."order_id" = ? LIMIT 1 [["order_id", 11]]
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
[1m[35mSQL (0.2ms)[0m DELETE FROM "addresses" WHERE "addresses"."type" IN ('ShippingAddress') AND "addresses"."id" = ? [["id", 2]]
[1m[36m (90.3ms)[0m [1mcommit transaction[0m
[1m[35m (0.1ms)[0m begin transaction
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "addresses" ("type", "order_id", "address", "zipcode", "city", "phone", "country", "created_at", "updated_at", "firstname", "lastname") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["type", "ShippingAddress"], ["order_id", 11], ["address", "111111111111111111"], ["zipcode", "12155215"], ["city", "215215"], ["phone", "215215"], ["country", "Afghanistan"], ["created_at", "2016-03-12 14:49:30.884340"], ["updated_at", "2016-03-12 14:49:30.884340"], ["firstname", "111"], ["lastname", "111"]]
[1m[35m (108.9ms)[0m commit transaction
Redirected to http://localhost:3000/simple_cart/orders/11/checkout/delivery
Completed 302 Found in 328ms (ActiveRecord: 311.0ms)
Started GET "/simple_cart/orders/11/checkout/delivery" for 127.0.0.1 at 2016-03-12 16:49:31 +0200
Processing by SimpleCart::CheckoutController#show as HTML
Parameters: {"order_id"=>"11", "id"=>"delivery"}
[1m[36mOrder Load (0.1ms)[0m [1mSELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1[0m [["id", 11]]
[1m[35mShippingAddress Load (0.1ms)[0m SELECT "addresses".* FROM "addresses" WHERE "addresses"."type" IN ('ShippingAddress') AND "addresses"."order_id" = ? LIMIT 1 [["order_id", 11]]
[1m[36mBillingAddress Load (0.1ms)[0m [1mSELECT "addresses".* FROM "addresses" WHERE "addresses"."type" IN ('BillingAddress') AND "addresses"."order_id" = ? LIMIT 1[0m [["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/delivery.html.haml within layouts/simple_cart/application (7.8ms)
Completed 500 Internal Server Error in 12ms (ActiveRecord: 0.3ms)
ActionView::Template::Error (uninitialized constant ActionView::CompiledTemplates::Country):
19: %br
20: = @order.shipping_address.phone
21: %br
22: = Country.find(@order.shipping_address.country).name
23:
24: .col-md-4.col-sm-4.text-center
25: %h2
/home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/delivery.html.haml:22:in `__home_leksster__uby__uby_arage__mazon_simple_cart_app_views_simple_cart_checkout_delivery_html_haml___3360457016725238963_69987149481860'
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'
wicked (1.2.1) lib/wicked/controller/concerns/render_redirect.rb:29:in `render_step'
wicked (1.2.1) lib/wicked/controller/concerns/render_redirect.rb:11:in `render_wizard'
/home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/controllers/simple_cart/checkout_controller.rb:23:in `show'
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: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 (11.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 (5.2ms)
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 (2.1ms)
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 (28.6ms)
Started GET "/simple_cart/orders/11/checkout/delivery" for 127.0.0.1 at 2016-03-12 16:51:09 +0200
Processing by SimpleCart::CheckoutController#show as HTML
Parameters: {"order_id"=>"11", "id"=>"delivery"}
[1m[35mOrder Load (0.1ms)[0m SELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1 [["id", 11]]
[1m[36mShippingAddress Load (0.1ms)[0m [1mSELECT "addresses".* FROM "addresses" WHERE "addresses"."type" IN ('ShippingAddress') AND "addresses"."order_id" = ? LIMIT 1[0m [["order_id", 11]]
[1m[35mBillingAddress Load (0.1ms)[0m SELECT "addresses".* FROM "addresses" WHERE "addresses"."type" IN ('BillingAddress') AND "addresses"."order_id" = ? LIMIT 1 [["order_id", 11]]
Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/_progress.html.haml (2.2ms)
Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/delivery.html.haml within layouts/simple_cart/application (7.6ms)
Completed 500 Internal Server Error in 15ms (ActiveRecord: 0.4ms)
ActionView::Template::Error (uninitialized constant ActionView::CompiledTemplates::Country):
19: %br
20: = @order.shipping_address.phone
21: %br
22: = Country.find(@order.shipping_address.country).name
23:
24: .col-md-4.col-sm-4.text-center
25: %h2
/home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/delivery.html.haml:22:in `__home_leksster__uby__uby_arage__mazon_simple_cart_app_views_simple_cart_checkout_delivery_html_haml___3360457016725238963_69987149481860'
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'
wicked (1.2.1) lib/wicked/controller/concerns/render_redirect.rb:29:in `render_step'
wicked (1.2.1) lib/wicked/controller/concerns/render_redirect.rb:11:in `render_wizard'
/home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/controllers/simple_cart/checkout_controller.rb:23:in `show'
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: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 (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.4ms)
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/template_error.html.erb within rescues/layout (18.3ms)
Started GET "/simple_cart/orders/11/checkout/shipping" for 127.0.0.1 at 2016-03-12 16:51:15 +0200
Processing by SimpleCart::CheckoutController#show as HTML
Parameters: {"order_id"=>"11", "id"=>"shipping"}
[1m[36mOrder Load (0.1ms)[0m [1mSELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1[0m [["id", 11]]
[1m[35mBillingAddress Load (0.1ms)[0m SELECT "addresses".* FROM "addresses" WHERE "addresses"."type" IN ('BillingAddress') AND "addresses"."order_id" = ? LIMIT 1 [["order_id", 11]]
[1m[36mShippingAddress Load (0.1ms)[0m [1mSELECT "addresses".* FROM "addresses" WHERE "addresses"."type" IN ('ShippingAddress') AND "addresses"."order_id" = ? LIMIT 1[0m [["order_id", 11]]
Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/_progress.html.haml (1.4ms)
Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/_address.html.haml (6.9ms)
Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/_address.html.haml (7.7ms)
[1m[35mCACHE (0.0ms)[0m SELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1 [["id", "11"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1[0m [["id", "11"]]
Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/_summary.html.haml (6.7ms)
Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/shipping.html.haml within layouts/simple_cart/application (33.6ms)
Completed 500 Internal Server Error in 38ms (ActiveRecord: 0.3ms)
ActionView::Template::Error (undefined method `shipping' for #):
3: %strong
4: = number_to_currency(Order.find(params[:order_id]).total_price)
5:
6: - unless Order.find(params[:order_id]).shipping.nil?
7: %p
8: Shipping:
9: %strong
activemodel (4.2.5.2) lib/active_model/attribute_methods.rb:433:in `method_missing'
/home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/_summary.html.haml:6:in `__home_leksster__uby__uby_arage__mazon_simple_cart_app_views_simple_cart_checkout__summary_html_haml__4018103575845015389_69987143077000'
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/partial_renderer.rb:339:in `render_partial'
actionview (4.2.5.2) lib/action_view/renderer/partial_renderer.rb:310:in `block in render'
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/partial_renderer.rb:309:in `render'
actionview (4.2.5.2) lib/action_view/renderer/renderer.rb:51:in `render_partial'
actionview (4.2.5.2) lib/action_view/helpers/rendering_helper.rb:35:in `render'
haml (4.0.7) lib/haml/helpers/action_view_mods.rb:10:in `block in render_with_haml'
haml (4.0.7) lib/haml/helpers.rb:89:in `non_haml'
haml (4.0.7) lib/haml/helpers/action_view_mods.rb:10:in `render_with_haml'
/home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/shipping.html.haml:32:in `block in __home_leksster__uby__uby_arage__mazon_simple_cart_app_views_simple_cart_checkout_shipping_html_haml__3382021891107016290_69987147799100'
haml (4.0.7) lib/haml/helpers/action_view_mods.rb:137:in `call'
haml (4.0.7) lib/haml/helpers/action_view_mods.rb:137:in `block (2 levels) in form_for_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:137:in `block in form_for_with_haml'
actionview (4.2.5.2) lib/action_view/helpers/capture_helper.rb:38:in `block in capture'
actionview (4.2.5.2) lib/action_view/helpers/capture_helper.rb:202:in `with_output_buffer'
haml (4.0.7) lib/haml/helpers/action_view_xss_mods.rb:5:in `with_output_buffer_with_haml_xss'
actionview (4.2.5.2) lib/action_view/helpers/capture_helper.rb:38:in `capture'
haml (4.0.7) lib/haml/helpers/action_view_mods.rb:52:in `capture_with_haml'
actionview (4.2.5.2) lib/action_view/helpers/form_helper.rb:444:in `form_for'
haml (4.0.7) lib/haml/helpers/action_view_mods.rb:139:in `form_for_with_haml'
haml (4.0.7) lib/haml/helpers/action_view_xss_mods.rb:28:in `form_for_with_haml_xss'
/home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/shipping.html.haml:6:in `__home_leksster__uby__uby_arage__mazon_simple_cart_app_views_simple_cart_checkout_shipping_html_haml__3382021891107016290_69987147799100'
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'
wicked (1.2.1) lib/wicked/controller/concerns/render_redirect.rb:29:in `render_step'
wicked (1.2.1) lib/wicked/controller/concerns/render_redirect.rb:11:in `render_wizard'
/home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/controllers/simple_cart/checkout_controller.rb:23:in `show'
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: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.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 (1.0ms)
Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/rescues/template_error.html.erb within rescues/layout (20.5ms)
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
Migrating to Delivery (20160312145636)
[1m[35m (0.1ms)[0m begin transaction
[1m[36m (0.3ms)[0m [1mCREATE TABLE "deliveries" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "company" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "costs" decimal DEFAULT 0.0) [0m
[1m[35mSQL (0.3ms)[0m INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20160312145636"]]
[1m[36m (69.9ms)[0m [1mcommit transaction[0m
[1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
[1m[36m (0.1ms)[0m [1m SELECT sql
FROM sqlite_master
WHERE name='index_addresses_on_order_id' AND type='index'
UNION ALL
SELECT sql
FROM sqlite_temp_master
WHERE name='index_addresses_on_order_id' AND type='index'
[0m
[1m[35m (0.1ms)[0m SELECT sql
FROM sqlite_master
WHERE name='index_order_items_on_order_id' AND type='index'
UNION ALL
SELECT sql
FROM sqlite_temp_master
WHERE name='index_order_items_on_order_id' AND type='index'
[1m[36m (0.1ms)[0m [1m SELECT sql
FROM sqlite_master
WHERE name='index_order_items_on_itemable_id' AND type='index'
UNION ALL
SELECT sql
FROM sqlite_temp_master
WHERE name='index_order_items_on_itemable_id' AND type='index'
[0m
Started GET "/simple_cart/orders/11/checkout/shipping" for 127.0.0.1 at 2016-03-12 16:57:48 +0200
[1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
Processing by SimpleCart::CheckoutController#show as HTML
Parameters: {"order_id"=>"11", "id"=>"shipping"}
[1m[36mOrder Load (0.2ms)[0m [1mSELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1[0m [["id", 11]]
[1m[35mBillingAddress Load (0.3ms)[0m SELECT "addresses".* FROM "addresses" WHERE "addresses"."type" IN ('BillingAddress') AND "addresses"."order_id" = ? LIMIT 1 [["order_id", 11]]
[1m[36mShippingAddress Load (0.2ms)[0m [1mSELECT "addresses".* FROM "addresses" WHERE "addresses"."type" IN ('ShippingAddress') AND "addresses"."order_id" = ? LIMIT 1[0m [["order_id", 11]]
Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/_progress.html.haml (1.2ms)
Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/_address.html.haml (7.3ms)
Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/_address.html.haml (8.0ms)
[1m[35mCACHE (0.0ms)[0m SELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1 [["id", "11"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1[0m [["id", "11"]]
Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/_summary.html.haml (5.5ms)
Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/shipping.html.haml within layouts/simple_cart/application (29.6ms)
Completed 200 OK in 96ms (Views: 43.4ms | ActiveRecord: 1.4ms)
Started GET "/simple_cart/orders/11/checkout/billing" for 127.0.0.1 at 2016-03-12 16:57:50 +0200
Processing by SimpleCart::CheckoutController#show as HTML
Parameters: {"order_id"=>"11", "id"=>"billing"}
[1m[35mOrder Load (0.2ms)[0m SELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1 [["id", 11]]
[1m[36mBillingAddress Load (0.4ms)[0m [1mSELECT "addresses".* FROM "addresses" WHERE "addresses"."type" IN ('BillingAddress') AND "addresses"."order_id" = ? LIMIT 1[0m [["order_id", 11]]
[1m[35mShippingAddress Load (0.2ms)[0m SELECT "addresses".* FROM "addresses" WHERE "addresses"."type" IN ('ShippingAddress') AND "addresses"."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 (7.0ms)
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 27ms (Views: 22.7ms | ActiveRecord: 0.7ms)
Started PATCH "/simple_cart/orders/11/checkout/billing" for 127.0.0.1 at 2016-03-12 16:57:53 +0200
Processing by SimpleCart::CheckoutController#update as HTML
Parameters: {"utf8"=>"✓", "authenticity_token"=>"1Aiz+Vukml6jvRQ8voLtv014uiD2HdlM7pgLhKfUPqsSGI71wHKWqKrAvVetx5TLDo74ZXo9CFLkFvDlysOQOg==", "order"=>{"billing_address_attributes"=>{"firstname"=>"111", "lastname"=>"111", "address"=>"", "zipcode"=>"12155215", "city"=>"215215", "phone"=>"215215", "country"=>"Afghanistan", "id"=>"3"}}, "shipping"=>{"use_billing_address"=>"true"}, "commit"=>"Save and continue", "order_id"=>"11", "id"=>"billing"}
[1m[36mOrder Load (0.1ms)[0m [1mSELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1[0m [["id", 11]]
Unpermitted parameter: id
[1m[35m (0.1ms)[0m begin transaction
[1m[36mBillingAddress Load (0.2ms)[0m [1mSELECT "addresses".* FROM "addresses" WHERE "addresses"."type" IN ('BillingAddress') AND "addresses"."order_id" = ? LIMIT 1[0m [["order_id", 11]]
[1m[35mSQL (0.3ms)[0m DELETE FROM "addresses" WHERE "addresses"."type" IN ('BillingAddress') AND "addresses"."id" = ? [["id", 3]]
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
[1m[35m (0.1ms)[0m begin transaction
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
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 (7.5ms)
Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/billing.html.haml within layouts/simple_cart/application (13.8ms)
Completed 200 OK in 35ms (Views: 25.8ms | ActiveRecord: 0.9ms)
Started PATCH "/simple_cart/orders/11/checkout/billing" for 127.0.0.1 at 2016-03-12 16:57:56 +0200
Processing by SimpleCart::CheckoutController#update as HTML
Parameters: {"utf8"=>"✓", "authenticity_token"=>"B8SiR1MnUbYOOFPKkVWWjIJ7dl8Ue3WcXx7lm3sHZXzB1J9LyPFdQAdF+qGCEO/4wY00GphbpIJVkB76FhDL7Q==", "order"=>{"billing_address_attributes"=>{"firstname"=>"111", "lastname"=>"111", "address"=>"54", "zipcode"=>"12155215", "city"=>"215215", "phone"=>"215215", "country"=>"Afghanistan"}}, "commit"=>"Save and continue", "order_id"=>"11", "id"=>"billing"}
[1m[35mOrder Load (0.1ms)[0m SELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1 [["id", 11]]
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
[1m[35mBillingAddress Load (0.1ms)[0m SELECT "addresses".* FROM "addresses" WHERE "addresses"."type" IN ('BillingAddress') AND "addresses"."order_id" = ? LIMIT 1 [["order_id", 11]]
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "addresses" WHERE "addresses"."type" IN ('BillingAddress') AND "addresses"."id" = ?[0m [["id", 3]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "addresses" ("type", "firstname", "lastname", "address", "zipcode", "city", "phone", "country", "order_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["type", "BillingAddress"], ["firstname", "111"], ["lastname", "111"], ["address", "54"], ["zipcode", "12155215"], ["city", "215215"], ["phone", "215215"], ["country", "Afghanistan"], ["order_id", 11], ["created_at", "2016-03-12 14:57:56.369292"], ["updated_at", "2016-03-12 14:57:56.369292"]]
[1m[36m (211.3ms)[0m [1mcommit transaction[0m
[1m[35m (0.1ms)[0m begin transaction
[1m[36m (0.1ms)[0m [1mcommit transaction[0m
Redirected to http://localhost:3000/simple_cart/orders/11/checkout/shipping
Completed 302 Found in 219ms (ActiveRecord: 212.0ms)
Started GET "/simple_cart/orders/11/checkout/shipping" for 127.0.0.1 at 2016-03-12 16:57:56 +0200
Processing by SimpleCart::CheckoutController#show as HTML
Parameters: {"order_id"=>"11", "id"=>"shipping"}
[1m[35mOrder Load (0.1ms)[0m SELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1 [["id", 11]]
[1m[36mBillingAddress Load (0.1ms)[0m [1mSELECT "addresses".* FROM "addresses" WHERE "addresses"."type" IN ('BillingAddress') AND "addresses"."order_id" = ? LIMIT 1[0m [["order_id", 11]]
[1m[35mShippingAddress Load (0.1ms)[0m SELECT "addresses".* FROM "addresses" WHERE "addresses"."type" IN ('ShippingAddress') AND "addresses"."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.7ms)
Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/_address.html.haml (7.3ms)
[1m[36mCACHE (0.0ms)[0m [1mSELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1[0m [["id", "11"]]
[1m[35mCACHE (0.0ms)[0m SELECT "orders".* FROM "orders" WHERE "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/shipping.html.haml within layouts/simple_cart/application (25.7ms)
Completed 200 OK in 41ms (Views: 38.3ms | ActiveRecord: 0.4ms)
Started PATCH "/simple_cart/orders/11/checkout/shipping" for 127.0.0.1 at 2016-03-12 16:58:04 +0200
Processing by SimpleCart::CheckoutController#update as HTML
Parameters: {"utf8"=>"✓", "authenticity_token"=>"VzV05sHEJEC/hkBUuW8VQcE9FtAxsVT3WRYldLa5AvWRJUnqWhIotrb76T+qKmw1gstUlb2RhelTmN4V266sZA==", "order"=>{"billing_address_attributes"=>{"firstname"=>"111", "lastname"=>"111", "address"=>"54", "zipcode"=>"12155215", "city"=>"215215", "phone"=>"215215", "country"=>"Bangladesh", "id"=>"5"}, "shipping_address_attributes"=>{"firstname"=>"111", "lastname"=>"111", "address"=>"22", "zipcode"=>"12155215", "city"=>"", "phone"=>"215215", "country"=>"Afghanistan", "id"=>"4"}}, "commit"=>"Continue", "order_id"=>"11", "id"=>"shipping"}
[1m[36mOrder Load (0.1ms)[0m [1mSELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1[0m [["id", 11]]
Unpermitted parameter: id
Unpermitted parameter: id
[1m[35m (0.1ms)[0m begin transaction
[1m[36mBillingAddress Load (0.1ms)[0m [1mSELECT "addresses".* FROM "addresses" WHERE "addresses"."type" IN ('BillingAddress') AND "addresses"."order_id" = ? LIMIT 1[0m [["order_id", 11]]
[1m[35mSQL (0.2ms)[0m DELETE FROM "addresses" WHERE "addresses"."type" IN ('BillingAddress') AND "addresses"."id" = ? [["id", 5]]
[1m[36mShippingAddress Load (0.1ms)[0m [1mSELECT "addresses".* FROM "addresses" WHERE "addresses"."type" IN ('ShippingAddress') AND "addresses"."order_id" = ? LIMIT 1[0m [["order_id", 11]]
[1m[35mSQL (0.1ms)[0m DELETE FROM "addresses" WHERE "addresses"."type" IN ('ShippingAddress') AND "addresses"."id" = ? [["id", 4]]
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
[1m[35m (0.1ms)[0m begin transaction
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/_progress.html.haml (1.9ms)
Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/_address.html.haml (6.9ms)
Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/_address.html.haml (9.3ms)
[1m[35mOrder Load (0.1ms)[0m SELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1 [["id", 11]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1[0m [["id", "11"]]
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/shipping.html.haml within layouts/simple_cart/application (27.3ms)
Completed 200 OK in 58ms (Views: 47.2ms | ActiveRecord: 1.2ms)
Started GET "/simple_cart/orders/11/checkout/billing" for 127.0.0.1 at 2016-03-12 16:58:06 +0200
Processing by SimpleCart::CheckoutController#show as HTML
Parameters: {"order_id"=>"11", "id"=>"billing"}
[1m[35mOrder Load (0.2ms)[0m SELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1 [["id", 11]]
[1m[36mBillingAddress Load (0.1ms)[0m [1mSELECT "addresses".* FROM "addresses" WHERE "addresses"."type" IN ('BillingAddress') AND "addresses"."order_id" = ? LIMIT 1[0m [["order_id", 11]]
[1m[35mShippingAddress Load (0.1ms)[0m SELECT "addresses".* FROM "addresses" WHERE "addresses"."type" IN ('ShippingAddress') AND "addresses"."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.7ms)
Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/billing.html.haml within layouts/simple_cart/application (13.7ms)
Completed 200 OK in 28ms (Views: 25.6ms | ActiveRecord: 0.3ms)
Started PATCH "/simple_cart/orders/11/checkout/billing" for 127.0.0.1 at 2016-03-12 16:58:08 +0200
Processing by SimpleCart::CheckoutController#update as HTML
Parameters: {"utf8"=>"✓", "authenticity_token"=>"+MD17o1xc+wI6E1+c8I/iUcHnTJaV9w9Ab05ea705Ic+0MjiFqd/GgGV5BVgh0b9BPHfd9Z3DSMLM8IYw+NKFg==", "order"=>{"billing_address_attributes"=>{"firstname"=>"111", "lastname"=>"111", "address"=>"54", "zipcode"=>"12155215", "city"=>"215215", "phone"=>"215215", "country"=>"Australia", "id"=>"5"}}, "shipping"=>{"use_billing_address"=>"true"}, "commit"=>"Save and continue", "order_id"=>"11", "id"=>"billing"}
[1m[36mOrder Load (0.1ms)[0m [1mSELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1[0m [["id", 11]]
Unpermitted parameter: id
[1m[35m (0.1ms)[0m begin transaction
[1m[36mBillingAddress Load (0.1ms)[0m [1mSELECT "addresses".* FROM "addresses" WHERE "addresses"."type" IN ('BillingAddress') AND "addresses"."order_id" = ? LIMIT 1[0m [["order_id", 11]]
[1m[35mSQL (0.2ms)[0m DELETE FROM "addresses" WHERE "addresses"."type" IN ('BillingAddress') AND "addresses"."id" = ? [["id", 5]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "addresses" ("type", "firstname", "lastname", "address", "zipcode", "city", "phone", "country", "order_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["type", "BillingAddress"], ["firstname", "111"], ["lastname", "111"], ["address", "54"], ["zipcode", "12155215"], ["city", "215215"], ["phone", "215215"], ["country", "Australia"], ["order_id", 11], ["created_at", "2016-03-12 14:58:08.184836"], ["updated_at", "2016-03-12 14:58:08.184836"]]
[1m[35m (212.4ms)[0m commit transaction
[1m[36mShippingAddress Load (0.1ms)[0m [1mSELECT "addresses".* FROM "addresses" WHERE "addresses"."type" IN ('ShippingAddress') AND "addresses"."order_id" = ? LIMIT 1[0m [["order_id", 11]]
[1m[35m (0.0ms)[0m begin transaction
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "addresses" WHERE "addresses"."type" IN ('ShippingAddress') AND "addresses"."id" = ?[0m [["id", 4]]
[1m[35m (82.2ms)[0m commit transaction
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
[1m[35mSQL (0.3ms)[0m INSERT INTO "addresses" ("type", "order_id", "address", "zipcode", "city", "phone", "country", "created_at", "updated_at", "firstname", "lastname") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["type", "ShippingAddress"], ["order_id", 11], ["address", "54"], ["zipcode", "12155215"], ["city", "215215"], ["phone", "215215"], ["country", "Australia"], ["created_at", "2016-03-12 14:58:08.184836"], ["updated_at", "2016-03-12 14:58:08.184836"], ["firstname", "111"], ["lastname", "111"]]
[1m[36m (79.5ms)[0m [1mcommit transaction[0m
Redirected to http://localhost:3000/simple_cart/orders/11/checkout/delivery
Completed 302 Found in 389ms (ActiveRecord: 375.5ms)
Started GET "/simple_cart/orders/11/checkout/delivery" for 127.0.0.1 at 2016-03-12 16:58:08 +0200
Processing by SimpleCart::CheckoutController#show as HTML
Parameters: {"order_id"=>"11", "id"=>"delivery"}
[1m[35mOrder Load (0.1ms)[0m SELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1 [["id", 11]]
[1m[36mShippingAddress Load (0.1ms)[0m [1mSELECT "addresses".* FROM "addresses" WHERE "addresses"."type" IN ('ShippingAddress') AND "addresses"."order_id" = ? LIMIT 1[0m [["order_id", 11]]
[1m[35mBillingAddress Load (0.2ms)[0m SELECT "addresses".* FROM "addresses" WHERE "addresses"."type" IN ('BillingAddress') AND "addresses"."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/delivery.html.haml within layouts/simple_cart/application (3.3ms)
Completed 500 Internal Server Error in 8ms (ActiveRecord: 0.4ms)
ActionView::Template::Error (uninitialized constant ActionView::CompiledTemplates::Country):
19: %br
20: = @order.shipping_address.phone
21: %br
22: = Country.find(@order.shipping_address.country).name
23:
24: .col-md-4.col-sm-4.text-center
25: %h2
/home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/delivery.html.haml:22:in `__home_leksster__uby__uby_arage__mazon_simple_cart_app_views_simple_cart_checkout_delivery_html_haml___3360457016725238963_69987149481860'
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'
wicked (1.2.1) lib/wicked/controller/concerns/render_redirect.rb:29:in `render_step'
wicked (1.2.1) lib/wicked/controller/concerns/render_redirect.rb:11:in `render_wizard'
/home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/controllers/simple_cart/checkout_controller.rb:23:in `show'
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: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 (6.4ms)
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 (1.0ms)
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 (18.9ms)
Started GET "/simple_cart/orders/11/checkout/billing" for 127.0.0.1 at 2016-03-12 16:58:16 +0200
Processing by SimpleCart::CheckoutController#show as HTML
Parameters: {"order_id"=>"11", "id"=>"billing"}
[1m[36mOrder Load (0.1ms)[0m [1mSELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1[0m [["id", 11]]
[1m[35mBillingAddress Load (0.2ms)[0m SELECT "addresses".* FROM "addresses" WHERE "addresses"."type" IN ('BillingAddress') AND "addresses"."order_id" = ? LIMIT 1 [["order_id", 11]]
[1m[36mShippingAddress Load (0.2ms)[0m [1mSELECT "addresses".* FROM "addresses" WHERE "addresses"."type" IN ('ShippingAddress') AND "addresses"."order_id" = ? LIMIT 1[0m [["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 (7.1ms)
Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/billing.html.haml within layouts/simple_cart/application (12.4ms)
Completed 200 OK in 29ms (Views: 25.2ms | ActiveRecord: 0.5ms)
Started PATCH "/simple_cart/orders/11/checkout/billing" for 127.0.0.1 at 2016-03-12 16:58:19 +0200
Processing by SimpleCart::CheckoutController#update as HTML
Parameters: {"utf8"=>"✓", "authenticity_token"=>"AT8XzsRXJBMC9uIWe/lXJzj3v0XBxMQMqNeWU+diUATHLyrCX4Eo5QuLS31ovC5TewH9AE3kFRKiWW0yinX+lQ==", "order"=>{"billing_address_attributes"=>{"firstname"=>"111", "lastname"=>"111", "address"=>"54", "zipcode"=>"12155215", "city"=>"215215", "phone"=>"215215", "country"=>"Bahamas", "id"=>"6"}}, "commit"=>"Save and continue", "order_id"=>"11", "id"=>"billing"}
[1m[35mOrder Load (0.2ms)[0m SELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1 [["id", 11]]
Unpermitted parameter: id
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
[1m[35mBillingAddress Load (0.1ms)[0m SELECT "addresses".* FROM "addresses" WHERE "addresses"."type" IN ('BillingAddress') AND "addresses"."order_id" = ? LIMIT 1 [["order_id", 11]]
[1m[36mSQL (0.2ms)[0m [1mDELETE FROM "addresses" WHERE "addresses"."type" IN ('BillingAddress') AND "addresses"."id" = ?[0m [["id", 6]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "addresses" ("type", "firstname", "lastname", "address", "zipcode", "city", "phone", "country", "order_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["type", "BillingAddress"], ["firstname", "111"], ["lastname", "111"], ["address", "54"], ["zipcode", "12155215"], ["city", "215215"], ["phone", "215215"], ["country", "Bahamas"], ["order_id", 11], ["created_at", "2016-03-12 14:58:19.611664"], ["updated_at", "2016-03-12 14:58:19.611664"]]
[1m[36m (48.3ms)[0m [1mcommit transaction[0m
[1m[35m (0.1ms)[0m begin transaction
[1m[36m (0.1ms)[0m [1mcommit transaction[0m
Redirected to http://localhost:3000/simple_cart/orders/11/checkout/shipping
Completed 302 Found in 58ms (ActiveRecord: 49.1ms)
Started GET "/simple_cart/orders/11/checkout/shipping" for 127.0.0.1 at 2016-03-12 16:58:19 +0200
Processing by SimpleCart::CheckoutController#show as HTML
Parameters: {"order_id"=>"11", "id"=>"shipping"}
[1m[35mOrder Load (0.1ms)[0m SELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1 [["id", 11]]
[1m[36mBillingAddress Load (0.2ms)[0m [1mSELECT "addresses".* FROM "addresses" WHERE "addresses"."type" IN ('BillingAddress') AND "addresses"."order_id" = ? LIMIT 1[0m [["order_id", 11]]
[1m[35mShippingAddress Load (0.2ms)[0m SELECT "addresses".* FROM "addresses" WHERE "addresses"."type" IN ('ShippingAddress') AND "addresses"."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.2ms)
Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/_address.html.haml (9.8ms)
[1m[36mCACHE (0.0ms)[0m [1mSELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1[0m [["id", "11"]]
[1m[35mCACHE (0.0ms)[0m SELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1 [["id", "11"]]
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/shipping.html.haml within layouts/simple_cart/application (26.6ms)
Completed 200 OK in 44ms (Views: 40.9ms | ActiveRecord: 0.5ms)
Started PATCH "/simple_cart/orders/11/checkout/shipping" for 127.0.0.1 at 2016-03-12 16:58:35 +0200
Processing by SimpleCart::CheckoutController#update as HTML
Parameters: {"utf8"=>"✓", "authenticity_token"=>"y2744uRQtu+esGkPSycMu/vzUx827DKqQln2ZqRzGUMNfsXuf4a6GZfNwGRYYnXPuAURWrrM47RI1w0HyWS30g==", "order"=>{"billing_address_attributes"=>{"firstname"=>"111", "lastname"=>"111", "address"=>"54", "zipcode"=>"12155215", "city"=>"215215", "phone"=>"215215", "country"=>"Bahamas", "id"=>"8"}, "shipping_address_attributes"=>{"firstname"=>"111", "lastname"=>"111", "address"=>"54", "zipcode"=>"12155215", "city"=>"215215", "phone"=>"215215", "country"=>"Australia", "id"=>"7"}}, "commit"=>"Continue", "order_id"=>"11", "id"=>"shipping"}
[1m[36mOrder Load (0.1ms)[0m [1mSELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1[0m [["id", 11]]
Unpermitted parameter: id
Unpermitted parameter: id
[1m[35m (0.2ms)[0m begin transaction
[1m[36mBillingAddress Load (0.2ms)[0m [1mSELECT "addresses".* FROM "addresses" WHERE "addresses"."type" IN ('BillingAddress') AND "addresses"."order_id" = ? LIMIT 1[0m [["order_id", 11]]
[1m[35mSQL (0.2ms)[0m DELETE FROM "addresses" WHERE "addresses"."type" IN ('BillingAddress') AND "addresses"."id" = ? [["id", 8]]
[1m[36mShippingAddress Load (0.1ms)[0m [1mSELECT "addresses".* FROM "addresses" WHERE "addresses"."type" IN ('ShippingAddress') AND "addresses"."order_id" = ? LIMIT 1[0m [["order_id", 11]]
[1m[35mSQL (0.1ms)[0m DELETE FROM "addresses" WHERE "addresses"."type" IN ('ShippingAddress') AND "addresses"."id" = ? [["id", 7]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "addresses" ("type", "firstname", "lastname", "address", "zipcode", "city", "phone", "country", "order_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["type", "BillingAddress"], ["firstname", "111"], ["lastname", "111"], ["address", "54"], ["zipcode", "12155215"], ["city", "215215"], ["phone", "215215"], ["country", "Bahamas"], ["order_id", 11], ["created_at", "2016-03-12 14:58:35.073050"], ["updated_at", "2016-03-12 14:58:35.073050"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "addresses" ("type", "firstname", "lastname", "address", "zipcode", "city", "phone", "country", "order_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["type", "ShippingAddress"], ["firstname", "111"], ["lastname", "111"], ["address", "54"], ["zipcode", "12155215"], ["city", "215215"], ["phone", "215215"], ["country", "Australia"], ["order_id", 11], ["created_at", "2016-03-12 14:58:35.075319"], ["updated_at", "2016-03-12 14:58:35.075319"]]
[1m[36m (62.4ms)[0m [1mcommit transaction[0m
[1m[35m (0.1ms)[0m begin transaction
[1m[36m (0.1ms)[0m [1mcommit transaction[0m
Redirected to http://localhost:3000/simple_cart/orders/11/checkout/delivery
Completed 302 Found in 81ms (ActiveRecord: 63.7ms)
Started GET "/simple_cart/orders/11/checkout/delivery" for 127.0.0.1 at 2016-03-12 16:58:35 +0200
Processing by SimpleCart::CheckoutController#show as HTML
Parameters: {"order_id"=>"11", "id"=>"delivery"}
[1m[35mOrder Load (0.1ms)[0m SELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1 [["id", 11]]
[1m[36mShippingAddress Load (0.1ms)[0m [1mSELECT "addresses".* FROM "addresses" WHERE "addresses"."type" IN ('ShippingAddress') AND "addresses"."order_id" = ? LIMIT 1[0m [["order_id", 11]]
[1m[35mBillingAddress Load (0.2ms)[0m SELECT "addresses".* FROM "addresses" WHERE "addresses"."type" IN ('BillingAddress') AND "addresses"."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/delivery.html.haml within layouts/simple_cart/application (3.7ms)
Completed 500 Internal Server Error in 9ms (ActiveRecord: 0.4ms)
ActionView::Template::Error (uninitialized constant ActionView::CompiledTemplates::Country):
19: %br
20: = @order.shipping_address.phone
21: %br
22: = Country.find(@order.shipping_address.country).name
23:
24: .col-md-4.col-sm-4.text-center
25: %h2
/home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/delivery.html.haml:22:in `__home_leksster__uby__uby_arage__mazon_simple_cart_app_views_simple_cart_checkout_delivery_html_haml___3360457016725238963_69987149481860'
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'
wicked (1.2.1) lib/wicked/controller/concerns/render_redirect.rb:29:in `render_step'
wicked (1.2.1) lib/wicked/controller/concerns/render_redirect.rb:11:in `render_wizard'
/home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/controllers/simple_cart/checkout_controller.rb:23:in `show'
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: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.1ms)
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 (1.0ms)
Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/rescues/template_error.html.erb within rescues/layout (20.4ms)
Started GET "/simple_cart/orders/11/checkout/delivery" for 127.0.0.1 at 2016-03-12 16:59:05 +0200
Processing by SimpleCart::CheckoutController#show as HTML
Parameters: {"order_id"=>"11", "id"=>"delivery"}
[1m[36mOrder Load (0.2ms)[0m [1mSELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1[0m [["id", 11]]
[1m[35mShippingAddress Load (0.2ms)[0m SELECT "addresses".* FROM "addresses" WHERE "addresses"."type" IN ('ShippingAddress') AND "addresses"."order_id" = ? LIMIT 1 [["order_id", 11]]
[1m[36mBillingAddress Load (0.1ms)[0m [1mSELECT "addresses".* FROM "addresses" WHERE "addresses"."type" IN ('BillingAddress') AND "addresses"."order_id" = ? LIMIT 1[0m [["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/delivery.html.haml within layouts/simple_cart/application (9.2ms)
Completed 500 Internal Server Error in 15ms (ActiveRecord: 0.4ms)
ActionView::Template::Error (uninitialized constant ActionView::CompiledTemplates::Shipping):
33: %li= msg
34:
35: .form-group
36: - Shipping.all.each do |company|
37: .radio
38: %label
39: = f.radio_button :shipping_id, company.id, :checked => company == Shipping.first || @order.shipping == company
/home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/delivery.html.haml:36:in `block in __home_leksster__uby__uby_arage__mazon_simple_cart_app_views_simple_cart_checkout_delivery_html_haml___3360457016725238963_69987098737140'
haml (4.0.7) lib/haml/helpers/action_view_mods.rb:137:in `call'
haml (4.0.7) lib/haml/helpers/action_view_mods.rb:137:in `block (2 levels) in form_for_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:137:in `block in form_for_with_haml'
actionview (4.2.5.2) lib/action_view/helpers/capture_helper.rb:38:in `block in capture'
actionview (4.2.5.2) lib/action_view/helpers/capture_helper.rb:202:in `with_output_buffer'
haml (4.0.7) lib/haml/helpers/action_view_xss_mods.rb:5:in `with_output_buffer_with_haml_xss'
actionview (4.2.5.2) lib/action_view/helpers/capture_helper.rb:38:in `capture'
haml (4.0.7) lib/haml/helpers/action_view_mods.rb:52:in `capture_with_haml'
actionview (4.2.5.2) lib/action_view/helpers/form_helper.rb:444:in `form_for'
haml (4.0.7) lib/haml/helpers/action_view_mods.rb:139:in `form_for_with_haml'
haml (4.0.7) lib/haml/helpers/action_view_xss_mods.rb:28:in `form_for_with_haml_xss'
/home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/delivery.html.haml:27:in `__home_leksster__uby__uby_arage__mazon_simple_cart_app_views_simple_cart_checkout_delivery_html_haml___3360457016725238963_69987098737140'
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'
wicked (1.2.1) lib/wicked/controller/concerns/render_redirect.rb:29:in `render_step'
wicked (1.2.1) lib/wicked/controller/concerns/render_redirect.rb:11:in `render_wizard'
/home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/controllers/simple_cart/checkout_controller.rb:23:in `show'
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: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.1ms)
Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (4.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 (1.4ms)
Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/rescues/template_error.html.erb within rescues/layout (23.0ms)
Started GET "/simple_cart/orders/11/checkout/delivery" for 127.0.0.1 at 2016-03-12 16:59:19 +0200
Processing by SimpleCart::CheckoutController#show as HTML
Parameters: {"order_id"=>"11", "id"=>"delivery"}
[1m[35mOrder Load (0.1ms)[0m SELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1 [["id", 11]]
[1m[36mShippingAddress Load (0.2ms)[0m [1mSELECT "addresses".* FROM "addresses" WHERE "addresses"."type" IN ('ShippingAddress') AND "addresses"."order_id" = ? LIMIT 1[0m [["order_id", 11]]
[1m[35mBillingAddress Load (0.2ms)[0m SELECT "addresses".* FROM "addresses" WHERE "addresses"."type" IN ('BillingAddress') AND "addresses"."order_id" = ? LIMIT 1 [["order_id", 11]]
Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/_progress.html.haml (1.3ms)
[1m[36mDelivery Load (0.2ms)[0m [1mSELECT "deliveries".* FROM "deliveries"[0m
[1m[35mCACHE (0.0ms)[0m SELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1 [["id", "11"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1[0m [["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 (12.7ms)
Completed 200 OK in 28ms (Views: 23.6ms | ActiveRecord: 0.7ms)
[1m[35m (0.3ms)[0m begin transaction
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "deliveries" ("company", "costs", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["company", "UPS 1"], ["costs", 20.0], ["created_at", "2016-03-12 15:00:11.690478"], ["updated_at", "2016-03-12 15:00:11.690478"]]
[1m[35m (61.9ms)[0m commit transaction
Started GET "/simple_cart/orders/11/checkout/delivery" for 127.0.0.1 at 2016-03-12 17:00:13 +0200
Processing by SimpleCart::CheckoutController#show as HTML
Parameters: {"order_id"=>"11", "id"=>"delivery"}
[1m[35mOrder Load (0.1ms)[0m SELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1 [["id", 11]]
[1m[36mShippingAddress Load (0.1ms)[0m [1mSELECT "addresses".* FROM "addresses" WHERE "addresses"."type" IN ('ShippingAddress') AND "addresses"."order_id" = ? LIMIT 1[0m [["order_id", 11]]
[1m[35mBillingAddress Load (0.1ms)[0m SELECT "addresses".* FROM "addresses" WHERE "addresses"."type" IN ('BillingAddress') AND "addresses"."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)
[1m[36mDelivery Load (0.2ms)[0m [1mSELECT "deliveries".* FROM "deliveries"[0m
Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/delivery.html.haml within layouts/simple_cart/application (7.2ms)
Completed 500 Internal Server Error in 11ms (ActiveRecord: 0.5ms)
ActionView::Template::Error (uninitialized constant ActionView::CompiledTemplates::Shipping):
36: - Delivery.all.each do |company|
37: .radio
38: %label
39: = f.radio_button :shipping_id, company.id, :checked => company == Shipping.first || @order.shipping == company
40: = "#{company.company}, #{number_to_currency(company.costs)}"
41:
42: .actions
/home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/delivery.html.haml:39:in `block (2 levels) in __home_leksster__uby__uby_arage__mazon_simple_cart_app_views_simple_cart_checkout_delivery_html_haml___3360457016725238963_69987099391540'
activerecord (4.2.5.2) lib/active_record/relation/delegation.rb:46:in `each'
activerecord (4.2.5.2) lib/active_record/relation/delegation.rb:46:in `each'
/home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/delivery.html.haml:36:in `block in __home_leksster__uby__uby_arage__mazon_simple_cart_app_views_simple_cart_checkout_delivery_html_haml___3360457016725238963_69987099391540'
haml (4.0.7) lib/haml/helpers/action_view_mods.rb:137:in `call'
haml (4.0.7) lib/haml/helpers/action_view_mods.rb:137:in `block (2 levels) in form_for_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:137:in `block in form_for_with_haml'
actionview (4.2.5.2) lib/action_view/helpers/capture_helper.rb:38:in `block in capture'
actionview (4.2.5.2) lib/action_view/helpers/capture_helper.rb:202:in `with_output_buffer'
haml (4.0.7) lib/haml/helpers/action_view_xss_mods.rb:5:in `with_output_buffer_with_haml_xss'
actionview (4.2.5.2) lib/action_view/helpers/capture_helper.rb:38:in `capture'
haml (4.0.7) lib/haml/helpers/action_view_mods.rb:52:in `capture_with_haml'
actionview (4.2.5.2) lib/action_view/helpers/form_helper.rb:444:in `form_for'
haml (4.0.7) lib/haml/helpers/action_view_mods.rb:139:in `form_for_with_haml'
haml (4.0.7) lib/haml/helpers/action_view_xss_mods.rb:28:in `form_for_with_haml_xss'
/home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/delivery.html.haml:27:in `__home_leksster__uby__uby_arage__mazon_simple_cart_app_views_simple_cart_checkout_delivery_html_haml___3360457016725238963_69987099391540'
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'
wicked (1.2.1) lib/wicked/controller/concerns/render_redirect.rb:29:in `render_step'
wicked (1.2.1) lib/wicked/controller/concerns/render_redirect.rb:11:in `render_wizard'
/home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/controllers/simple_cart/checkout_controller.rb:23:in `show'
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: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 (6.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.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.2ms)
Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/rescues/template_error.html.erb within rescues/layout (20.3ms)
Started GET "/simple_cart/orders/11/checkout/delivery" for 127.0.0.1 at 2016-03-12 17:00:25 +0200
Processing by SimpleCart::CheckoutController#show as HTML
Parameters: {"order_id"=>"11", "id"=>"delivery"}
[1m[35mOrder Load (0.1ms)[0m SELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1 [["id", 11]]
[1m[36mShippingAddress Load (0.2ms)[0m [1mSELECT "addresses".* FROM "addresses" WHERE "addresses"."type" IN ('ShippingAddress') AND "addresses"."order_id" = ? LIMIT 1[0m [["order_id", 11]]
[1m[35mBillingAddress Load (0.2ms)[0m SELECT "addresses".* FROM "addresses" WHERE "addresses"."type" IN ('BillingAddress') AND "addresses"."order_id" = ? LIMIT 1 [["order_id", 11]]
Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/_progress.html.haml (0.9ms)
[1m[36mDelivery Load (0.1ms)[0m [1mSELECT "deliveries".* FROM "deliveries"[0m
Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/delivery.html.haml within layouts/simple_cart/application (9.0ms)
Completed 500 Internal Server Error in 15ms (ActiveRecord: 0.6ms)
ActionView::Template::Error (uninitialized constant ActionView::CompiledTemplates::Shipping):
36: - Delivery.all.each do |company|
37: .radio
38: %label
39: = f.radio_button :shipping_id, company.id, :checked => company == Shipping.first || @order.delivery == company
40: = "#{company.company}, #{number_to_currency(company.costs)}"
41:
42: .actions
/home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/delivery.html.haml:39:in `block (2 levels) in __home_leksster__uby__uby_arage__mazon_simple_cart_app_views_simple_cart_checkout_delivery_html_haml___3360457016725238963_69987098237920'
activerecord (4.2.5.2) lib/active_record/relation/delegation.rb:46:in `each'
activerecord (4.2.5.2) lib/active_record/relation/delegation.rb:46:in `each'
/home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/delivery.html.haml:36:in `block in __home_leksster__uby__uby_arage__mazon_simple_cart_app_views_simple_cart_checkout_delivery_html_haml___3360457016725238963_69987098237920'
haml (4.0.7) lib/haml/helpers/action_view_mods.rb:137:in `call'
haml (4.0.7) lib/haml/helpers/action_view_mods.rb:137:in `block (2 levels) in form_for_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:137:in `block in form_for_with_haml'
actionview (4.2.5.2) lib/action_view/helpers/capture_helper.rb:38:in `block in capture'
actionview (4.2.5.2) lib/action_view/helpers/capture_helper.rb:202:in `with_output_buffer'
haml (4.0.7) lib/haml/helpers/action_view_xss_mods.rb:5:in `with_output_buffer_with_haml_xss'
actionview (4.2.5.2) lib/action_view/helpers/capture_helper.rb:38:in `capture'
haml (4.0.7) lib/haml/helpers/action_view_mods.rb:52:in `capture_with_haml'
actionview (4.2.5.2) lib/action_view/helpers/form_helper.rb:444:in `form_for'
haml (4.0.7) lib/haml/helpers/action_view_mods.rb:139:in `form_for_with_haml'
haml (4.0.7) lib/haml/helpers/action_view_xss_mods.rb:28:in `form_for_with_haml_xss'
/home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/delivery.html.haml:27:in `__home_leksster__uby__uby_arage__mazon_simple_cart_app_views_simple_cart_checkout_delivery_html_haml___3360457016725238963_69987098237920'
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'
wicked (1.2.1) lib/wicked/controller/concerns/render_redirect.rb:29:in `render_step'
wicked (1.2.1) lib/wicked/controller/concerns/render_redirect.rb:11:in `render_wizard'
/home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/controllers/simple_cart/checkout_controller.rb:23:in `show'
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: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 (6.5ms)
Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (3.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 (1.3ms)
Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/rescues/template_error.html.erb within rescues/layout (20.9ms)
Started GET "/simple_cart/orders/11/checkout/delivery" for 127.0.0.1 at 2016-03-12 17:00:27 +0200
Processing by SimpleCart::CheckoutController#show as HTML
Parameters: {"order_id"=>"11", "id"=>"delivery"}
[1m[35mOrder Load (0.1ms)[0m SELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1 [["id", 11]]
[1m[36mShippingAddress Load (0.1ms)[0m [1mSELECT "addresses".* FROM "addresses" WHERE "addresses"."type" IN ('ShippingAddress') AND "addresses"."order_id" = ? LIMIT 1[0m [["order_id", 11]]
[1m[35mBillingAddress Load (0.1ms)[0m SELECT "addresses".* FROM "addresses" WHERE "addresses"."type" IN ('BillingAddress') AND "addresses"."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)
[1m[36mDelivery Load (0.2ms)[0m [1mSELECT "deliveries".* FROM "deliveries"[0m
Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/delivery.html.haml within layouts/simple_cart/application (5.0ms)
Completed 500 Internal Server Error in 9ms (ActiveRecord: 0.5ms)
ActionView::Template::Error (uninitialized constant ActionView::CompiledTemplates::Shipping):
36: - Delivery.all.each do |company|
37: .radio
38: %label
39: = f.radio_button :shipping_id, company.id, :checked => company == Shipping.first || @order.delivery == company
40: = "#{company.company}, #{number_to_currency(company.costs)}"
41:
42: .actions
/home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/delivery.html.haml:39:in `block (2 levels) in __home_leksster__uby__uby_arage__mazon_simple_cart_app_views_simple_cart_checkout_delivery_html_haml___3360457016725238963_69987098237920'
activerecord (4.2.5.2) lib/active_record/relation/delegation.rb:46:in `each'
activerecord (4.2.5.2) lib/active_record/relation/delegation.rb:46:in `each'
/home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/delivery.html.haml:36:in `block in __home_leksster__uby__uby_arage__mazon_simple_cart_app_views_simple_cart_checkout_delivery_html_haml___3360457016725238963_69987098237920'
haml (4.0.7) lib/haml/helpers/action_view_mods.rb:137:in `call'
haml (4.0.7) lib/haml/helpers/action_view_mods.rb:137:in `block (2 levels) in form_for_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:137:in `block in form_for_with_haml'
actionview (4.2.5.2) lib/action_view/helpers/capture_helper.rb:38:in `block in capture'
actionview (4.2.5.2) lib/action_view/helpers/capture_helper.rb:202:in `with_output_buffer'
haml (4.0.7) lib/haml/helpers/action_view_xss_mods.rb:5:in `with_output_buffer_with_haml_xss'
actionview (4.2.5.2) lib/action_view/helpers/capture_helper.rb:38:in `capture'
haml (4.0.7) lib/haml/helpers/action_view_mods.rb:52:in `capture_with_haml'
actionview (4.2.5.2) lib/action_view/helpers/form_helper.rb:444:in `form_for'
haml (4.0.7) lib/haml/helpers/action_view_mods.rb:139:in `form_for_with_haml'
haml (4.0.7) lib/haml/helpers/action_view_xss_mods.rb:28:in `form_for_with_haml_xss'
/home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/delivery.html.haml:27:in `__home_leksster__uby__uby_arage__mazon_simple_cart_app_views_simple_cart_checkout_delivery_html_haml___3360457016725238963_69987098237920'
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'
wicked (1.2.1) lib/wicked/controller/concerns/render_redirect.rb:29:in `render_step'
wicked (1.2.1) lib/wicked/controller/concerns/render_redirect.rb:11:in `render_wizard'
/home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/controllers/simple_cart/checkout_controller.rb:23:in `show'
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: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 (6.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.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.0ms)
Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/rescues/template_error.html.erb within rescues/layout (19.4ms)
Started GET "/simple_cart/orders/11/checkout/delivery" for 127.0.0.1 at 2016-03-12 17:00:37 +0200
Processing by SimpleCart::CheckoutController#show as HTML
Parameters: {"order_id"=>"11", "id"=>"delivery"}
[1m[35mOrder Load (0.2ms)[0m SELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1 [["id", 11]]
[1m[36mShippingAddress Load (0.2ms)[0m [1mSELECT "addresses".* FROM "addresses" WHERE "addresses"."type" IN ('ShippingAddress') AND "addresses"."order_id" = ? LIMIT 1[0m [["order_id", 11]]
[1m[35mBillingAddress Load (0.1ms)[0m SELECT "addresses".* FROM "addresses" WHERE "addresses"."type" IN ('BillingAddress') AND "addresses"."order_id" = ? LIMIT 1 [["order_id", 11]]
Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/_progress.html.haml (0.9ms)
[1m[36mDelivery Load (0.2ms)[0m [1mSELECT "deliveries".* FROM "deliveries"[0m
[1m[35mDelivery Load (0.1ms)[0m SELECT "deliveries".* FROM "deliveries" ORDER BY "deliveries"."id" ASC LIMIT 1
[1m[36mCACHE (0.0ms)[0m [1mSELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1[0m [["id", "11"]]
[1m[35mCACHE (0.0ms)[0m SELECT "orders".* FROM "orders" WHERE "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/delivery.html.haml within layouts/simple_cart/application (26.4ms)
Completed 200 OK in 43ms (Views: 37.0ms | ActiveRecord: 0.8ms)
Started PATCH "/simple_cart/orders/11/checkout/delivery" for 127.0.0.1 at 2016-03-12 17:00:39 +0200
Processing by SimpleCart::CheckoutController#update as HTML
Parameters: {"utf8"=>"✓", "authenticity_token"=>"dXEnjecbTyW/czuFbKIdzHDccjcwJTjDVlJkLBf+xW6zYRqBfM1D07YOku5/52S4MyowcrwF6d1c3J9Neulr/w==", "order"=>{"shipping_id"=>"1"}, "commit"=>"Continue", "order_id"=>"11", "id"=>"delivery"}
[1m[36mOrder Load (0.1ms)[0m [1mSELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1[0m [["id", 11]]
Completed 500 Internal Server Error in 1ms (ActiveRecord: 0.1ms)
NameError (uninitialized constant SimpleCart::CheckoutController::Shipping):
/home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/controllers/simple_cart/checkout_controller.rb:36:in `update'
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.5ms)
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 (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 (17.1ms)
Started GET "/simple_cart/orders/11/checkout/delivery" for 127.0.0.1 at 2016-03-12 17:01:10 +0200
Processing by SimpleCart::CheckoutController#show as HTML
Parameters: {"order_id"=>"11", "id"=>"delivery"}
[1m[35mOrder Load (0.3ms)[0m SELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1 [["id", 11]]
[1m[36mShippingAddress Load (0.1ms)[0m [1mSELECT "addresses".* FROM "addresses" WHERE "addresses"."type" IN ('ShippingAddress') AND "addresses"."order_id" = ? LIMIT 1[0m [["order_id", 11]]
[1m[35mBillingAddress Load (0.1ms)[0m SELECT "addresses".* FROM "addresses" WHERE "addresses"."type" IN ('BillingAddress') AND "addresses"."order_id" = ? LIMIT 1 [["order_id", 11]]
Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/_progress.html.haml (0.9ms)
[1m[36mDelivery Load (0.2ms)[0m [1mSELECT "deliveries".* FROM "deliveries"[0m
[1m[35mDelivery Load (0.1ms)[0m SELECT "deliveries".* FROM "deliveries" ORDER BY "deliveries"."id" ASC LIMIT 1
[1m[36mCACHE (0.0ms)[0m [1mSELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1[0m [["id", "11"]]
[1m[35mCACHE (0.0ms)[0m SELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1 [["id", "11"]]
Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/_summary.html.haml (1.9ms)
Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/delivery.html.haml within layouts/simple_cart/application (7.4ms)
Completed 200 OK in 21ms (Views: 17.6ms | ActiveRecord: 0.8ms)
Started PATCH "/simple_cart/orders/11/checkout/delivery" for 127.0.0.1 at 2016-03-12 17:01:11 +0200
Processing by SimpleCart::CheckoutController#update as HTML
Parameters: {"utf8"=>"✓", "authenticity_token"=>"7hUFL9M4iSMM7W8e8oRKg+3XjpJyp8xtcfRx8YTafBkoBTgjSO6F1QWQxnXhwTP3riHM1/6HHXN7eoqQ6c3SiA==", "order"=>{"shipping_id"=>"1"}, "commit"=>"Continue", "order_id"=>"11", "id"=>"delivery"}
[1m[36mOrder Load (0.1ms)[0m [1mSELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1[0m [["id", 11]]
Completed 500 Internal Server Error in 2ms (ActiveRecord: 0.1ms)
NameError (uninitialized constant SimpleCart::CheckoutController::Shipping):
/home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/controllers/simple_cart/checkout_controller.rb:36:in `update'
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.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 (3.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 (1.2ms)
Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/rescues/diagnostics.html.erb within rescues/layout (17.8ms)
Started GET "/simple_cart/orders/11/checkout/delivery" for 127.0.0.1 at 2016-03-12 17:01:42 +0200
Processing by SimpleCart::CheckoutController#show as HTML
Parameters: {"order_id"=>"11", "id"=>"delivery"}
[1m[35mOrder Load (0.1ms)[0m SELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1 [["id", 11]]
[1m[36mShippingAddress Load (0.2ms)[0m [1mSELECT "addresses".* FROM "addresses" WHERE "addresses"."type" IN ('ShippingAddress') AND "addresses"."order_id" = ? LIMIT 1[0m [["order_id", 11]]
[1m[35mBillingAddress Load (0.2ms)[0m SELECT "addresses".* FROM "addresses" WHERE "addresses"."type" IN ('BillingAddress') AND "addresses"."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)
[1m[36mDelivery Load (0.2ms)[0m [1mSELECT "deliveries".* FROM "deliveries"[0m
[1m[35mDelivery Load (0.1ms)[0m SELECT "deliveries".* FROM "deliveries" ORDER BY "deliveries"."id" ASC LIMIT 1
[1m[36mCACHE (0.0ms)[0m [1mSELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1[0m [["id", "11"]]
[1m[35mCACHE (0.0ms)[0m SELECT "orders".* FROM "orders" WHERE "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 (11.2ms)
Completed 200 OK in 68ms (Views: 24.2ms | ActiveRecord: 1.6ms)
Started PATCH "/simple_cart/orders/11/checkout/delivery" for 127.0.0.1 at 2016-03-12 17:01:43 +0200
Processing by SimpleCart::CheckoutController#update as HTML
Parameters: {"utf8"=>"✓", "authenticity_token"=>"DLtL96ruUSl7Gz708so71RE1RceNCdfSHWfvzGzOd3vKq3b7MThd33Jml5/hj0KhUsMHggEpBswX6RStAdnZ6g==", "order"=>{"shipping_id"=>"1"}, "commit"=>"Continue", "order_id"=>"11", "id"=>"delivery"}
[1m[36mOrder Load (0.1ms)[0m [1mSELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1[0m [["id", 11]]
[1m[35mDelivery Load (0.2ms)[0m SELECT "deliveries".* FROM "deliveries" WHERE "deliveries"."id" = ? LIMIT 1 [["id", 1]]
Completed 500 Internal Server Error in 2ms (ActiveRecord: 0.4ms)
ActiveModel::MissingAttributeError (can't write unknown attribute `delivery_id`):
activerecord (4.2.5.2) lib/active_record/attribute.rb:138:in `with_value_from_database'
activerecord (4.2.5.2) lib/active_record/attribute_set.rb:39:in `write_from_user'
activerecord (4.2.5.2) lib/active_record/attribute_methods/write.rb:74:in `write_attribute_with_type_cast'
activerecord (4.2.5.2) lib/active_record/attribute_methods/write.rb:56:in `write_attribute'
activerecord (4.2.5.2) lib/active_record/attribute_methods/dirty.rb:96:in `write_attribute'
activerecord (4.2.5.2) lib/active_record/attribute_methods.rb:373:in `[]='
activerecord (4.2.5.2) lib/active_record/associations/belongs_to_association.rb:83:in `replace_keys'
activerecord (4.2.5.2) lib/active_record/associations/belongs_to_association.rb:14:in `replace'
activerecord (4.2.5.2) lib/active_record/associations/singular_association.rb:17:in `writer'
activerecord (4.2.5.2) lib/active_record/associations/builder/association.rb:123:in `delivery='
/home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/controllers/simple_cart/checkout_controller.rb:36:in `update'
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.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.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 (1.2ms)
Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/rescues/diagnostics.html.erb within rescues/layout (17.5ms)
Started GET "/simple_cart/orders/11/checkout/delivery" for 127.0.0.1 at 2016-03-12 17:02:05 +0200
Processing by SimpleCart::CheckoutController#show as HTML
Parameters: {"order_id"=>"11", "id"=>"delivery"}
[1m[36mOrder Load (0.2ms)[0m [1mSELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1[0m [["id", 11]]
[1m[35mShippingAddress Load (0.3ms)[0m SELECT "addresses".* FROM "addresses" WHERE "addresses"."type" IN ('ShippingAddress') AND "addresses"."order_id" = ? LIMIT 1 [["order_id", 11]]
[1m[36mBillingAddress Load (0.2ms)[0m [1mSELECT "addresses".* FROM "addresses" WHERE "addresses"."type" IN ('BillingAddress') AND "addresses"."order_id" = ? LIMIT 1[0m [["order_id", 11]]
Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/_progress.html.haml (1.2ms)
[1m[35mDelivery Load (0.2ms)[0m SELECT "deliveries".* FROM "deliveries"
[1m[36mDelivery Load (0.2ms)[0m [1mSELECT "deliveries".* FROM "deliveries" ORDER BY "deliveries"."id" ASC LIMIT 1[0m
[1m[35mCACHE (0.0ms)[0m SELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1 [["id", "11"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1[0m [["id", "11"]]
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 (12.2ms)
Completed 200 OK in 72ms (Views: 24.4ms | ActiveRecord: 2.2ms)
Started PATCH "/simple_cart/orders/11/checkout/delivery" for 127.0.0.1 at 2016-03-12 17:02:06 +0200
Processing by SimpleCart::CheckoutController#update as HTML
Parameters: {"utf8"=>"✓", "authenticity_token"=>"LhHCPM0Vb9PdubiTEmWLnJDI1IUptIznAOfUxjxBokboAf8wVsNjJdTEEfgBIPLo0z6WwKWUXfkKaS+nUVYM1w==", "order"=>{"shipping_id"=>"1"}, "commit"=>"Continue", "order_id"=>"11", "id"=>"delivery"}
[1m[35mOrder Load (0.1ms)[0m SELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1 [["id", 11]]
[1m[36mDelivery Load (0.2ms)[0m [1mSELECT "deliveries".* FROM "deliveries" WHERE "deliveries"."id" = ? LIMIT 1[0m [["id", nil]]
Completed 404 Not Found in 2ms (ActiveRecord: 0.3ms)
ActiveRecord::RecordNotFound (Couldn't find Delivery with 'id'=):
activerecord (4.2.5.2) lib/active_record/core.rb:155:in `find'
/home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/controllers/simple_cart/checkout_controller.rb:36:in `update'
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 (5.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.4ms)
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.3ms)
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.9ms)
Started PATCH "/simple_cart/orders/11/checkout/delivery" for 127.0.0.1 at 2016-03-12 17:02:44 +0200
Processing by SimpleCart::CheckoutController#update as HTML
Parameters: {"utf8"=>"✓", "authenticity_token"=>"LhHCPM0Vb9PdubiTEmWLnJDI1IUptIznAOfUxjxBokboAf8wVsNjJdTEEfgBIPLo0z6WwKWUXfkKaS+nUVYM1w==", "order"=>{"shipping_id"=>"1"}, "commit"=>"Continue", "order_id"=>"11", "id"=>"delivery"}
[1m[35mOrder Load (0.1ms)[0m SELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1 [["id", 11]]
[1m[36mDelivery Load (0.0ms)[0m [1mSELECT "deliveries".* FROM "deliveries" WHERE "deliveries"."id" = ? LIMIT 1[0m [["id", nil]]
Completed 404 Not Found in 1ms (ActiveRecord: 0.1ms)
ActiveRecord::RecordNotFound (Couldn't find Delivery with 'id'=):
activerecord (4.2.5.2) lib/active_record/core.rb:155:in `find'
/home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/controllers/simple_cart/checkout_controller.rb:36:in `update'
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 (8.3ms)
Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (3.2ms)
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 (2.0ms)
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.2ms)
Started PATCH "/simple_cart/orders/11/checkout/delivery" for 127.0.0.1 at 2016-03-12 17:02:51 +0200
Processing by SimpleCart::CheckoutController#update as HTML
Parameters: {"utf8"=>"✓", "authenticity_token"=>"LhHCPM0Vb9PdubiTEmWLnJDI1IUptIznAOfUxjxBokboAf8wVsNjJdTEEfgBIPLo0z6WwKWUXfkKaS+nUVYM1w==", "order"=>{"shipping_id"=>"1"}, "commit"=>"Continue", "order_id"=>"11", "id"=>"delivery"}
[1m[35mOrder Load (0.1ms)[0m SELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1 [["id", 11]]
[1m[36mDelivery Load (0.0ms)[0m [1mSELECT "deliveries".* FROM "deliveries" WHERE "deliveries"."id" = ? LIMIT 1[0m [["id", nil]]
Completed 404 Not Found in 1ms (ActiveRecord: 0.1ms)
ActiveRecord::RecordNotFound (Couldn't find Delivery with 'id'=):
activerecord (4.2.5.2) lib/active_record/core.rb:155:in `find'
/home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/controllers/simple_cart/checkout_controller.rb:36:in `update'
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 (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 (1.3ms)
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.2ms)
Started PATCH "/simple_cart/orders/11/checkout/delivery" for 127.0.0.1 at 2016-03-12 17:03:15 +0200
[1m[36mActiveRecord::SchemaMigration Load (0.2ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
Processing by SimpleCart::CheckoutController#update as HTML
Parameters: {"utf8"=>"✓", "authenticity_token"=>"LhHCPM0Vb9PdubiTEmWLnJDI1IUptIznAOfUxjxBokboAf8wVsNjJdTEEfgBIPLo0z6WwKWUXfkKaS+nUVYM1w==", "order"=>{"shipping_id"=>"1"}, "commit"=>"Continue", "order_id"=>"11", "id"=>"delivery"}
[1m[35mOrder Load (0.2ms)[0m SELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1 [["id", 11]]
[1m[36mDelivery Load (0.1ms)[0m [1mSELECT "deliveries".* FROM "deliveries" WHERE "deliveries"."id" = ? LIMIT 1[0m [["id", nil]]
Completed 404 Not Found in 33ms (ActiveRecord: 0.8ms)
ActiveRecord::RecordNotFound (Couldn't find Delivery with 'id'=):
activerecord (4.2.5.2) lib/active_record/core.rb:155:in `find'
/home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/controllers/simple_cart/checkout_controller.rb:36:in `update'
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.7ms)
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 (8.2ms)
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.7ms)
Started GET "/simple_cart/orders/11/checkout/delivery" for 127.0.0.1 at 2016-03-12 17:03:46 +0200
Processing by SimpleCart::CheckoutController#show as HTML
Parameters: {"order_id"=>"11", "id"=>"delivery"}
[1m[35mOrder Load (0.1ms)[0m SELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1 [["id", 11]]
[1m[36mShippingAddress Load (0.2ms)[0m [1mSELECT "addresses".* FROM "addresses" WHERE "addresses"."type" IN ('ShippingAddress') AND "addresses"."order_id" = ? LIMIT 1[0m [["order_id", 11]]
[1m[35mBillingAddress Load (0.3ms)[0m SELECT "addresses".* FROM "addresses" WHERE "addresses"."type" IN ('BillingAddress') AND "addresses"."order_id" = ? LIMIT 1 [["order_id", 11]]
Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/_progress.html.haml (2.9ms)
[1m[36mDelivery Load (0.2ms)[0m [1mSELECT "deliveries".* FROM "deliveries"[0m
[1m[35mDelivery Load (0.2ms)[0m SELECT "deliveries".* FROM "deliveries" ORDER BY "deliveries"."id" ASC LIMIT 1
[1m[36mCACHE (0.0ms)[0m [1mSELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1[0m [["id", "11"]]
[1m[35mCACHE (0.0ms)[0m SELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1 [["id", "11"]]
Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/_summary.html.haml (3.7ms)
Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/delivery.html.haml within layouts/simple_cart/application (30.7ms)
Completed 200 OK in 240ms (Views: 192.2ms | ActiveRecord: 1.8ms)
Started PATCH "/simple_cart/orders/11/checkout/delivery" for 127.0.0.1 at 2016-03-12 17:03:48 +0200
Processing by SimpleCart::CheckoutController#update as HTML
Parameters: {"utf8"=>"✓", "authenticity_token"=>"4efkJV51pkp+r0usLJ5EUSsfMkfGIJOglPU78jfOI40n99kpxaOqvHfS4sc/2z0laOlwAkoAQr6ee8CTWtmNHA==", "order"=>{"delivery_id"=>"1"}, "commit"=>"Continue", "order_id"=>"11", "id"=>"delivery"}
[1m[36mOrder Load (0.1ms)[0m [1mSELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1[0m [["id", 11]]
[1m[35mDelivery Load (0.2ms)[0m SELECT "deliveries".* FROM "deliveries" WHERE "deliveries"."id" = ? LIMIT 1 [["id", 1]]
Completed 500 Internal Server Error in 3ms (ActiveRecord: 0.4ms)
ActiveModel::MissingAttributeError (can't write unknown attribute `delivery_id`):
activerecord (4.2.5.2) lib/active_record/attribute.rb:138:in `with_value_from_database'
activerecord (4.2.5.2) lib/active_record/attribute_set.rb:39:in `write_from_user'
activerecord (4.2.5.2) lib/active_record/attribute_methods/write.rb:74:in `write_attribute_with_type_cast'
activerecord (4.2.5.2) lib/active_record/attribute_methods/write.rb:56:in `write_attribute'
activerecord (4.2.5.2) lib/active_record/attribute_methods/dirty.rb:96:in `write_attribute'
activerecord (4.2.5.2) lib/active_record/attribute_methods.rb:373:in `[]='
activerecord (4.2.5.2) lib/active_record/associations/belongs_to_association.rb:83:in `replace_keys'
activerecord (4.2.5.2) lib/active_record/associations/belongs_to_association.rb:14:in `replace'
activerecord (4.2.5.2) lib/active_record/associations/singular_association.rb:17:in `writer'
activerecord (4.2.5.2) lib/active_record/associations/builder/association.rb:123:in `delivery='
/home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/controllers/simple_cart/checkout_controller.rb:36:in `update'
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 (9.5ms)
Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (4.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 (2.0ms)
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 (27.3ms)
Started PATCH "/simple_cart/orders/11/checkout/delivery" for 127.0.0.1 at 2016-03-12 17:04:36 +0200
Processing by SimpleCart::CheckoutController#update as HTML
Parameters: {"utf8"=>"✓", "authenticity_token"=>"4efkJV51pkp+r0usLJ5EUSsfMkfGIJOglPU78jfOI40n99kpxaOqvHfS4sc/2z0laOlwAkoAQr6ee8CTWtmNHA==", "order"=>{"delivery_id"=>"1"}, "commit"=>"Continue", "order_id"=>"11", "id"=>"delivery"}
[1m[36mOrder Load (0.1ms)[0m [1mSELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1[0m [["id", 11]]
[1m[35mDelivery Load (0.2ms)[0m SELECT "deliveries".* FROM "deliveries" WHERE "deliveries"."id" = ? LIMIT 1 [["id", 1]]
Completed 500 Internal Server Error in 39ms (ActiveRecord: 1.2ms)
ActiveModel::MissingAttributeError (can't write unknown attribute `delivery_id`):
activerecord (4.2.5.2) lib/active_record/attribute.rb:138:in `with_value_from_database'
activerecord (4.2.5.2) lib/active_record/attribute_set.rb:39:in `write_from_user'
activerecord (4.2.5.2) lib/active_record/attribute_methods/write.rb:74:in `write_attribute_with_type_cast'
activerecord (4.2.5.2) lib/active_record/attribute_methods/write.rb:56:in `write_attribute'
activerecord (4.2.5.2) lib/active_record/attribute_methods/dirty.rb:96:in `write_attribute'
activerecord (4.2.5.2) lib/active_record/attribute_methods.rb:373:in `[]='
activerecord (4.2.5.2) lib/active_record/associations/belongs_to_association.rb:83:in `replace_keys'
activerecord (4.2.5.2) lib/active_record/associations/belongs_to_association.rb:14:in `replace'
activerecord (4.2.5.2) lib/active_record/associations/singular_association.rb:17:in `writer'
activerecord (4.2.5.2) lib/active_record/associations/builder/association.rb:123:in `delivery='
/home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/controllers/simple_cart/checkout_controller.rb:36:in `update'
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 (5.1ms)
Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (2.2ms)
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 (18.4ms)
Started GET "/simple_cart/orders/11/checkout/delivery" for 127.0.0.1 at 2016-03-12 17:06:32 +0200
[1m[36mActiveRecord::SchemaMigration Load (0.3ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
Processing by SimpleCart::CheckoutController#show as HTML
Parameters: {"order_id"=>"11", "id"=>"delivery"}
[1m[35mOrder Load (0.3ms)[0m SELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1 [["id", 11]]
[1m[36mShippingAddress Load (0.2ms)[0m [1mSELECT "addresses".* FROM "addresses" WHERE "addresses"."type" IN ('ShippingAddress') AND "addresses"."order_id" = ? LIMIT 1[0m [["order_id", 11]]
[1m[35mBillingAddress Load (0.2ms)[0m SELECT "addresses".* FROM "addresses" WHERE "addresses"."type" IN ('BillingAddress') AND "addresses"."order_id" = ? LIMIT 1 [["order_id", 11]]
Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/_progress.html.haml (2.5ms)
[1m[36mDelivery Load (0.1ms)[0m [1mSELECT "deliveries".* FROM "deliveries"[0m
[1m[35mDelivery Load (0.2ms)[0m SELECT "deliveries".* FROM "deliveries" ORDER BY "deliveries"."id" ASC LIMIT 1
[1m[36mCACHE (0.0ms)[0m [1mSELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1[0m [["id", "11"]]
[1m[35mCACHE (0.0ms)[0m SELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1 [["id", "11"]]
Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/_summary.html.haml (4.0ms)
Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/delivery.html.haml within layouts/simple_cart/application (37.9ms)
Completed 200 OK in 277ms (Views: 218.1ms | ActiveRecord: 1.7ms)
Started GET "/assets/simple_cart/application.self-2f12d59583468bdcee27c6046669f62a778d265fc91cf385e5d36e9189ac822e.css?body=1" for 127.0.0.1 at 2016-03-12 17:06:33 +0200
Started GET "/assets/simple_cart/application.self-8f06a73c35179188914ab50e057157639fce1401c1cdca640ac9cec33746fc5b.js?body=1" for 127.0.0.1 at 2016-03-12 17:06:33 +0200
Started PATCH "/simple_cart/orders/11/checkout/delivery" for 127.0.0.1 at 2016-03-12 17:06:34 +0200
Processing by SimpleCart::CheckoutController#update as HTML
Parameters: {"utf8"=>"✓", "authenticity_token"=>"zZAYHAGMFQe4kbf73LTCeWh7Jm3yqYgQ0ST9B0Ol4ZsLgCUQmloZ8bHsHpDP8bsNK41kKH6JWQ7bqgZmLrJPCg==", "order"=>{"delivery_id"=>"1"}, "commit"=>"Continue", "order_id"=>"11", "id"=>"delivery"}
[1m[36mOrder Load (0.1ms)[0m [1mSELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1[0m [["id", 11]]
[1m[35mDelivery Load (0.2ms)[0m SELECT "deliveries".* FROM "deliveries" WHERE "deliveries"."id" = ? LIMIT 1 [["id", 1]]
Completed 500 Internal Server Error in 2ms (ActiveRecord: 0.3ms)
ActiveModel::MissingAttributeError (can't write unknown attribute `delivery_id`):
activerecord (4.2.5.2) lib/active_record/attribute.rb:138:in `with_value_from_database'
activerecord (4.2.5.2) lib/active_record/attribute_set.rb:39:in `write_from_user'
activerecord (4.2.5.2) lib/active_record/attribute_methods/write.rb:74:in `write_attribute_with_type_cast'
activerecord (4.2.5.2) lib/active_record/attribute_methods/write.rb:56:in `write_attribute'
activerecord (4.2.5.2) lib/active_record/attribute_methods/dirty.rb:96:in `write_attribute'
activerecord (4.2.5.2) lib/active_record/attribute_methods.rb:373:in `[]='
activerecord (4.2.5.2) lib/active_record/associations/belongs_to_association.rb:83:in `replace_keys'
activerecord (4.2.5.2) lib/active_record/associations/belongs_to_association.rb:14:in `replace'
activerecord (4.2.5.2) lib/active_record/associations/singular_association.rb:17:in `writer'
activerecord (4.2.5.2) lib/active_record/associations/builder/association.rb:123:in `delivery='
/home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/controllers/simple_cart/checkout_controller.rb:36:in `update'
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 (16.3ms)
Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (4.0ms)
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 (2.0ms)
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 (33.8ms)
Started GET "/simple_cart/orders/11/checkout" for 127.0.0.1 at 2016-03-12 17:06:59 +0200
Processing by SimpleCart::CheckoutController#index as HTML
Parameters: {"order_id"=>"11"}
[1m[36mOrder Load (0.1ms)[0m [1mSELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1[0m [["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-12 17:06:59 +0200
Processing by SimpleCart::CheckoutController#show as HTML
Parameters: {"order_id"=>"11", "id"=>"billing"}
[1m[35mOrder Load (0.1ms)[0m SELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1 [["id", 11]]
[1m[36mBillingAddress Load (0.1ms)[0m [1mSELECT "addresses".* FROM "addresses" WHERE "addresses"."type" IN ('BillingAddress') AND "addresses"."order_id" = ? LIMIT 1[0m [["order_id", 11]]
[1m[35mShippingAddress Load (0.1ms)[0m SELECT "addresses".* FROM "addresses" WHERE "addresses"."type" IN ('ShippingAddress') AND "addresses"."order_id" = ? LIMIT 1 [["order_id", 11]]
Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/_progress.html.haml (1.9ms)
Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/_address.html.haml (21.7ms)
Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/billing.html.haml within layouts/simple_cart/application (42.5ms)
Completed 200 OK in 64ms (Views: 61.6ms | ActiveRecord: 0.3ms)
Started PATCH "/simple_cart/orders/11/checkout/billing" for 127.0.0.1 at 2016-03-12 17:07:00 +0200
Processing by SimpleCart::CheckoutController#update as HTML
Parameters: {"utf8"=>"✓", "authenticity_token"=>"apao3yAae9jDQCsuMtEj2SgmMZjORF2D93O5tVS2ymyshpXTu8x3Lso9gkUhlFqta9Bz3UJkjJ39/ULUOaFk/Q==", "order"=>{"billing_address_attributes"=>{"firstname"=>"111", "lastname"=>"111", "address"=>"54", "zipcode"=>"12155215", "city"=>"215215", "phone"=>"215215", "country"=>"Bahamas", "id"=>"9"}}, "shipping"=>{"use_billing_address"=>"true"}, "commit"=>"Save and continue", "order_id"=>"11", "id"=>"billing"}
[1m[36mOrder Load (0.1ms)[0m [1mSELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1[0m [["id", 11]]
Unpermitted parameter: id
[1m[35m (0.1ms)[0m begin transaction
[1m[36mBillingAddress Load (0.1ms)[0m [1mSELECT "addresses".* FROM "addresses" WHERE "addresses"."type" IN ('BillingAddress') AND "addresses"."order_id" = ? LIMIT 1[0m [["order_id", 11]]
[1m[35mSQL (0.4ms)[0m DELETE FROM "addresses" WHERE "addresses"."type" IN ('BillingAddress') AND "addresses"."id" = ? [["id", 9]]
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "addresses" ("type", "firstname", "lastname", "address", "zipcode", "city", "phone", "country", "order_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["type", "BillingAddress"], ["firstname", "111"], ["lastname", "111"], ["address", "54"], ["zipcode", "12155215"], ["city", "215215"], ["phone", "215215"], ["country", "Bahamas"], ["order_id", 11], ["created_at", "2016-03-12 15:07:00.377098"], ["updated_at", "2016-03-12 15:07:00.377098"]]
[1m[35m (81.3ms)[0m commit transaction
[1m[36mShippingAddress Load (0.1ms)[0m [1mSELECT "addresses".* FROM "addresses" WHERE "addresses"."type" IN ('ShippingAddress') AND "addresses"."order_id" = ? LIMIT 1[0m [["order_id", 11]]
[1m[35m (0.1ms)[0m begin transaction
[1m[36mSQL (0.2ms)[0m [1mDELETE FROM "addresses" WHERE "addresses"."type" IN ('ShippingAddress') AND "addresses"."id" = ?[0m [["id", 10]]
[1m[35m (96.1ms)[0m commit transaction
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
[1m[35mSQL (0.4ms)[0m INSERT INTO "addresses" ("type", "order_id", "address", "zipcode", "city", "phone", "country", "created_at", "updated_at", "firstname", "lastname") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["type", "ShippingAddress"], ["order_id", 11], ["address", "54"], ["zipcode", "12155215"], ["city", "215215"], ["phone", "215215"], ["country", "Bahamas"], ["created_at", "2016-03-12 15:07:00.377098"], ["updated_at", "2016-03-12 15:07:00.377098"], ["firstname", "111"], ["lastname", "111"]]
[1m[36m (80.3ms)[0m [1mcommit transaction[0m
Redirected to http://localhost:3000/simple_cart/orders/11/checkout/delivery
Completed 302 Found in 278ms (ActiveRecord: 259.4ms)
Started GET "/simple_cart/orders/11/checkout/delivery" for 127.0.0.1 at 2016-03-12 17:07:00 +0200
Processing by SimpleCart::CheckoutController#show as HTML
Parameters: {"order_id"=>"11", "id"=>"delivery"}
[1m[35mOrder Load (0.1ms)[0m SELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1 [["id", 11]]
[1m[36mShippingAddress Load (0.1ms)[0m [1mSELECT "addresses".* FROM "addresses" WHERE "addresses"."type" IN ('ShippingAddress') AND "addresses"."order_id" = ? LIMIT 1[0m [["order_id", 11]]
[1m[35mBillingAddress Load (0.1ms)[0m SELECT "addresses".* FROM "addresses" WHERE "addresses"."type" IN ('BillingAddress') AND "addresses"."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)
[1m[36mDelivery Load (0.1ms)[0m [1mSELECT "deliveries".* FROM "deliveries"[0m
[1m[35mDelivery Load (0.2ms)[0m SELECT "deliveries".* FROM "deliveries" ORDER BY "deliveries"."id" ASC LIMIT 1
[1m[36mCACHE (0.0ms)[0m [1mSELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1[0m [["id", "11"]]
[1m[35mCACHE (0.0ms)[0m SELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1 [["id", "11"]]
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/delivery.html.haml within layouts/simple_cart/application (6.4ms)
Completed 200 OK in 22ms (Views: 18.5ms | ActiveRecord: 0.7ms)
Started PATCH "/simple_cart/orders/11/checkout/delivery" for 127.0.0.1 at 2016-03-12 17:07:02 +0200
Processing by SimpleCart::CheckoutController#update as HTML
Parameters: {"utf8"=>"✓", "authenticity_token"=>"hPSOnNnua4xS8+k03H7lr9p2W930dELFE9Uq5+zhlaBC5LOQQjhneluOQF/PO5zbmYAZmHhUk9sZW9GGgfY7MQ==", "order"=>{"delivery_id"=>"1"}, "commit"=>"Continue", "order_id"=>"11", "id"=>"delivery"}
[1m[36mOrder Load (0.1ms)[0m [1mSELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1[0m [["id", 11]]
[1m[35mDelivery Load (0.1ms)[0m SELECT "deliveries".* FROM "deliveries" WHERE "deliveries"."id" = ? LIMIT 1 [["id", 1]]
Completed 500 Internal Server Error in 2ms (ActiveRecord: 0.2ms)
ActiveModel::MissingAttributeError (can't write unknown attribute `delivery_id`):
activerecord (4.2.5.2) lib/active_record/attribute.rb:138:in `with_value_from_database'
activerecord (4.2.5.2) lib/active_record/attribute_set.rb:39:in `write_from_user'
activerecord (4.2.5.2) lib/active_record/attribute_methods/write.rb:74:in `write_attribute_with_type_cast'
activerecord (4.2.5.2) lib/active_record/attribute_methods/write.rb:56:in `write_attribute'
activerecord (4.2.5.2) lib/active_record/attribute_methods/dirty.rb:96:in `write_attribute'
activerecord (4.2.5.2) lib/active_record/attribute_methods.rb:373:in `[]='
activerecord (4.2.5.2) lib/active_record/associations/belongs_to_association.rb:83:in `replace_keys'
activerecord (4.2.5.2) lib/active_record/associations/belongs_to_association.rb:14:in `replace'
activerecord (4.2.5.2) lib/active_record/associations/singular_association.rb:17:in `writer'
activerecord (4.2.5.2) lib/active_record/associations/builder/association.rb:123:in `delivery='
/home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/controllers/simple_cart/checkout_controller.rb:36:in `update'
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 (5.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.2ms)
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 (17.7ms)
[1m[36mOrder Load (1.7ms)[0m [1mSELECT "orders".* FROM "orders"[0m
[1m[35mOrder Load (0.2ms)[0m SELECT "orders".* FROM "orders" ORDER BY "orders"."id" ASC LIMIT 1
[1m[36mOrder Load (0.3ms)[0m [1mSELECT "orders".* FROM "orders" ORDER BY "orders"."id" ASC LIMIT 1[0m
[1m[35mOrder Load (0.3ms)[0m SELECT "orders".* FROM "orders" ORDER BY "orders"."id" ASC LIMIT 1
[1m[36mDelivery Load (0.3ms)[0m [1mSELECT "deliveries".* FROM "deliveries" WHERE "deliveries"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
Migrating to Fix (20160312151033)
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
Migrating to Fix (20160312151033)
[1m[35m (0.1ms)[0m begin transaction
[1m[36m (0.3ms)[0m [1mCREATE TEMPORARY TABLE "aorders" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "total_price" decimal(10,2), "completed_date" date, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "delivery_id" integer, "aasm_state" varchar) [0m
[1m[35m (0.1ms)[0m SELECT * FROM "orders"
[1m[36m (0.1ms)[0m [1mINSERT INTO "aorders" ("id","total_price","completed_date","created_at","updated_at","delivery_id","aasm_state") VALUES (11, 101648, '2016-03-12', '2016-03-12 14:29:14.330450', '2016-03-12 14:49:30.882131', NULL, 'in_progress')[0m
[1m[35m (0.2ms)[0m DROP TABLE "orders"
[1m[36m (0.2ms)[0m [1mCREATE TABLE "orders" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "total_price" decimal(10,2), "completed_date" date, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "delivery_id" integer, "aasm_state" varchar) [0m
[1m[35m (0.2ms)[0m SELECT * FROM "aorders"
[1m[36m (0.1ms)[0m [1mINSERT INTO "orders" ("id","total_price","completed_date","created_at","updated_at","delivery_id","aasm_state") VALUES (11, 101648, '2016-03-12', '2016-03-12 14:29:14.330450', '2016-03-12 14:49:30.882131', NULL, 'in_progress')[0m
[1m[35m (0.2ms)[0m DROP TABLE "aorders"
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20160312151033"]]
[1m[35m (69.3ms)[0m commit transaction
[1m[36mActiveRecord::SchemaMigration Load (0.2ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
[1m[35m (0.2ms)[0m SELECT sql
FROM sqlite_master
WHERE name='index_addresses_on_order_id' AND type='index'
UNION ALL
SELECT sql
FROM sqlite_temp_master
WHERE name='index_addresses_on_order_id' AND type='index'
[1m[36m (0.2ms)[0m [1m SELECT sql
FROM sqlite_master
WHERE name='index_order_items_on_order_id' AND type='index'
UNION ALL
SELECT sql
FROM sqlite_temp_master
WHERE name='index_order_items_on_order_id' AND type='index'
[0m
[1m[35m (0.1ms)[0m SELECT sql
FROM sqlite_master
WHERE name='index_order_items_on_itemable_id' AND type='index'
UNION ALL
SELECT sql
FROM sqlite_temp_master
WHERE name='index_order_items_on_itemable_id' AND type='index'
Started GET "/simple_cart/orders/11/checkout/delivery" for 127.0.0.1 at 2016-03-12 17:11:33 +0200
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
Processing by SimpleCart::CheckoutController#show as HTML
Parameters: {"order_id"=>"11", "id"=>"delivery"}
[1m[35mOrder Load (0.1ms)[0m SELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1 [["id", 11]]
[1m[36mShippingAddress Load (0.2ms)[0m [1mSELECT "addresses".* FROM "addresses" WHERE "addresses"."type" IN ('ShippingAddress') AND "addresses"."order_id" = ? LIMIT 1[0m [["order_id", 11]]
[1m[35mBillingAddress Load (0.2ms)[0m SELECT "addresses".* FROM "addresses" WHERE "addresses"."type" IN ('BillingAddress') AND "addresses"."order_id" = ? LIMIT 1 [["order_id", 11]]
Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/_progress.html.haml (1.2ms)
[1m[36mDelivery Load (0.2ms)[0m [1mSELECT "deliveries".* FROM "deliveries"[0m
[1m[35mDelivery Load (0.2ms)[0m SELECT "deliveries".* FROM "deliveries" ORDER BY "deliveries"."id" ASC LIMIT 1
[1m[36mCACHE (0.0ms)[0m [1mSELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1[0m [["id", "11"]]
[1m[35mCACHE (0.0ms)[0m SELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1 [["id", "11"]]
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 (14.0ms)
Completed 200 OK in 69ms (Views: 25.9ms | ActiveRecord: 1.9ms)
Started PATCH "/simple_cart/orders/11/checkout/delivery" for 127.0.0.1 at 2016-03-12 17:11:35 +0200
Processing by SimpleCart::CheckoutController#update as HTML
Parameters: {"utf8"=>"✓", "authenticity_token"=>"nEvAZrF1x9xm2vVNbxeQCaiWwgJ4v1tDwkd8pFDqFDlaW/1qKqPLKm+nXCZ8Uul962CAR/Sfil3IyYfFPf26qA==", "order"=>{"delivery_id"=>"1"}, "commit"=>"Continue", "order_id"=>"11", "id"=>"delivery"}
[1m[36mOrder Load (0.1ms)[0m [1mSELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1[0m [["id", 11]]
[1m[35mDelivery Load (0.2ms)[0m SELECT "deliveries".* FROM "deliveries" WHERE "deliveries"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
[1m[35mSQL (0.3ms)[0m UPDATE "orders" SET "delivery_id" = ?, "updated_at" = ? WHERE "orders"."id" = ? [["delivery_id", 1], ["updated_at", "2016-03-12 15:11:35.197402"], ["id", 11]]
[1m[36m (74.5ms)[0m [1mcommit transaction[0m
Redirected to http://localhost:3000/simple_cart/orders/11/checkout/payment
Completed 302 Found in 82ms (ActiveRecord: 75.1ms)
Started GET "/simple_cart/orders/11/checkout/payment" for 127.0.0.1 at 2016-03-12 17:11:35 +0200
Processing by SimpleCart::CheckoutController#show as HTML
Parameters: {"order_id"=>"11", "id"=>"payment"}
[1m[35mOrder Load (0.1ms)[0m SELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1 [["id", 11]]
[1m[36mDelivery Load (0.2ms)[0m [1mSELECT "deliveries".* FROM "deliveries" WHERE "deliveries"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mBillingAddress Load (0.1ms)[0m SELECT "addresses".* FROM "addresses" WHERE "addresses"."type" IN ('BillingAddress') AND "addresses"."order_id" = ? LIMIT 1 [["order_id", 11]]
[1m[36mShippingAddress Load (0.1ms)[0m [1mSELECT "addresses".* FROM "addresses" WHERE "addresses"."type" IN ('ShippingAddress') AND "addresses"."order_id" = ? LIMIT 1[0m [["order_id", 11]]
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 (9.7ms)
Completed 500 Internal Server Error in 17ms (ActiveRecord: 0.6ms)
ActionView::Template::Error (uninitialized constant ActionView::CompiledTemplates::CreditCard):
39: .row
40: .col-xs-6
41: = ff.label :expiration_month
42: = ff.collection_select :expiration_month, CreditCard.months, :to_s, :to_s, {}, :class => 'form-control'
43: .col-xs-6
44: = ff.label :expiration_year
45: = ff.collection_select :expiration_year, CreditCard.years, :to_s, :to_s, {}, :class => 'form-control'
/home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/payment.html.haml:42:in `block (2 levels) in __home_leksster__uby__uby_arage__mazon_simple_cart_app_views_simple_cart_checkout_payment_html_haml__387586062795402191_33546260'
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_helper.rb:714:in `fields_for'
actionview (4.2.5.2) lib/action_view/helpers/form_helper.rb:1599:in `fields_for'
/home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/payment.html.haml:34:in `block in __home_leksster__uby__uby_arage__mazon_simple_cart_app_views_simple_cart_checkout_payment_html_haml__387586062795402191_33546260'
haml (4.0.7) lib/haml/helpers/action_view_mods.rb:137:in `call'
haml (4.0.7) lib/haml/helpers/action_view_mods.rb:137:in `block (2 levels) in form_for_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:137:in `block in form_for_with_haml'
actionview (4.2.5.2) lib/action_view/helpers/capture_helper.rb:38:in `block in capture'
actionview (4.2.5.2) lib/action_view/helpers/capture_helper.rb:202:in `with_output_buffer'
haml (4.0.7) lib/haml/helpers/action_view_xss_mods.rb:5:in `with_output_buffer_with_haml_xss'
actionview (4.2.5.2) lib/action_view/helpers/capture_helper.rb:38:in `capture'
haml (4.0.7) lib/haml/helpers/action_view_mods.rb:52:in `capture_with_haml'
actionview (4.2.5.2) lib/action_view/helpers/form_helper.rb:444:in `form_for'
haml (4.0.7) lib/haml/helpers/action_view_mods.rb:139:in `form_for_with_haml'
haml (4.0.7) lib/haml/helpers/action_view_xss_mods.rb:28:in `form_for_with_haml_xss'
/home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/payment.html.haml:27:in `__home_leksster__uby__uby_arage__mazon_simple_cart_app_views_simple_cart_checkout_payment_html_haml__387586062795402191_33546260'
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'
wicked (1.2.1) lib/wicked/controller/concerns/render_redirect.rb:29:in `render_step'
wicked (1.2.1) lib/wicked/controller/concerns/render_redirect.rb:11:in `render_wizard'
/home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/controllers/simple_cart/checkout_controller.rb:23:in `show'
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: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 (6.7ms)
Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (2.8ms)
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/template_error.html.erb within rescues/layout (19.6ms)
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
Migrating to AddCreditCard (20160312151409)
[1m[35m (0.1ms)[0m begin transaction
[1m[36m (0.3ms)[0m [1mCREATE TABLE "credit_cards" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "number" varchar, "cvv" varchar, "expiration_year" varchar, "expiration_month" varchar, "firstname" varchar, "lastname" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "user_id" integer, "order_id" integer) [0m
[1m[35m (0.1ms)[0m select sqlite_version(*)
[1m[36m (0.2ms)[0m [1mCREATE INDEX "index_credit_cards_on_order_id" ON "credit_cards" ("order_id")[0m
[1m[35mSQL (0.3ms)[0m INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20160312151409"]]
[1m[36m (46.9ms)[0m [1mcommit transaction[0m
[1m[35mActiveRecord::SchemaMigration Load (0.2ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
[1m[36m (0.2ms)[0m [1m SELECT sql
FROM sqlite_master
WHERE name='index_addresses_on_order_id' AND type='index'
UNION ALL
SELECT sql
FROM sqlite_temp_master
WHERE name='index_addresses_on_order_id' AND type='index'
[0m
[1m[35m (0.2ms)[0m SELECT sql
FROM sqlite_master
WHERE name='index_credit_cards_on_order_id' AND type='index'
UNION ALL
SELECT sql
FROM sqlite_temp_master
WHERE name='index_credit_cards_on_order_id' AND type='index'
[1m[36m (0.1ms)[0m [1m SELECT sql
FROM sqlite_master
WHERE name='index_order_items_on_order_id' AND type='index'
UNION ALL
SELECT sql
FROM sqlite_temp_master
WHERE name='index_order_items_on_order_id' AND type='index'
[0m
[1m[35m (0.1ms)[0m SELECT sql
FROM sqlite_master
WHERE name='index_order_items_on_itemable_id' AND type='index'
UNION ALL
SELECT sql
FROM sqlite_temp_master
WHERE name='index_order_items_on_itemable_id' AND type='index'
Started GET "/simple_cart/orders/11/checkout/payment" for 127.0.0.1 at 2016-03-12 17:14:15 +0200
[1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
Processing by SimpleCart::CheckoutController#show as HTML
Parameters: {"order_id"=>"11", "id"=>"payment"}
[1m[36mOrder Load (0.1ms)[0m [1mSELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1[0m [["id", 11]]
[1m[35mDelivery Load (0.2ms)[0m SELECT "deliveries".* FROM "deliveries" WHERE "deliveries"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mBillingAddress Load (0.3ms)[0m [1mSELECT "addresses".* FROM "addresses" WHERE "addresses"."type" IN ('BillingAddress') AND "addresses"."order_id" = ? LIMIT 1[0m [["order_id", 11]]
[1m[35mShippingAddress Load (0.2ms)[0m SELECT "addresses".* FROM "addresses" WHERE "addresses"."type" IN ('ShippingAddress') AND "addresses"."order_id" = ? LIMIT 1 [["order_id", 11]]
Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/_progress.html.haml (2.0ms)
Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/payment.html.haml within layouts/simple_cart/application (5.9ms)
Completed 500 Internal Server Error in 60ms (ActiveRecord: 1.6ms)
ActionView::Template::Error (uninitialized constant ActionView::CompiledTemplates::CreditCard):
39: .row
40: .col-xs-6
41: = ff.label :expiration_month
42: = ff.collection_select :expiration_month, CreditCard.months, :to_s, :to_s, {}, :class => 'form-control'
43: .col-xs-6
44: = ff.label :expiration_year
45: = ff.collection_select :expiration_year, CreditCard.years, :to_s, :to_s, {}, :class => 'form-control'
/home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/payment.html.haml:42:in `block (2 levels) in __home_leksster__uby__uby_arage__mazon_simple_cart_app_views_simple_cart_checkout_payment_html_haml__387586062795402191_33546260'
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_helper.rb:714:in `fields_for'
actionview (4.2.5.2) lib/action_view/helpers/form_helper.rb:1599:in `fields_for'
/home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/payment.html.haml:34:in `block in __home_leksster__uby__uby_arage__mazon_simple_cart_app_views_simple_cart_checkout_payment_html_haml__387586062795402191_33546260'
haml (4.0.7) lib/haml/helpers/action_view_mods.rb:137:in `call'
haml (4.0.7) lib/haml/helpers/action_view_mods.rb:137:in `block (2 levels) in form_for_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:137:in `block in form_for_with_haml'
actionview (4.2.5.2) lib/action_view/helpers/capture_helper.rb:38:in `block in capture'
actionview (4.2.5.2) lib/action_view/helpers/capture_helper.rb:202:in `with_output_buffer'
haml (4.0.7) lib/haml/helpers/action_view_xss_mods.rb:5:in `with_output_buffer_with_haml_xss'
actionview (4.2.5.2) lib/action_view/helpers/capture_helper.rb:38:in `capture'
haml (4.0.7) lib/haml/helpers/action_view_mods.rb:52:in `capture_with_haml'
actionview (4.2.5.2) lib/action_view/helpers/form_helper.rb:444:in `form_for'
haml (4.0.7) lib/haml/helpers/action_view_mods.rb:139:in `form_for_with_haml'
haml (4.0.7) lib/haml/helpers/action_view_xss_mods.rb:28:in `form_for_with_haml_xss'
/home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/payment.html.haml:27:in `__home_leksster__uby__uby_arage__mazon_simple_cart_app_views_simple_cart_checkout_payment_html_haml__387586062795402191_33546260'
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'
wicked (1.2.1) lib/wicked/controller/concerns/render_redirect.rb:29:in `render_step'
wicked (1.2.1) lib/wicked/controller/concerns/render_redirect.rb:11:in `render_wizard'
/home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/controllers/simple_cart/checkout_controller.rb:23:in `show'
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: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.7ms)
Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (3.0ms)
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/template_error.html.erb within rescues/layout (21.6ms)
Started GET "/simple_cart/orders/11/checkout/payment" for 127.0.0.1 at 2016-03-12 17:14:27 +0200
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
Processing by SimpleCart::CheckoutController#show as HTML
Parameters: {"order_id"=>"11", "id"=>"payment"}
[1m[35mOrder Load (0.3ms)[0m SELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1 [["id", 11]]
[1m[36mDelivery Load (0.1ms)[0m [1mSELECT "deliveries".* FROM "deliveries" WHERE "deliveries"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mBillingAddress Load (0.2ms)[0m SELECT "addresses".* FROM "addresses" WHERE "addresses"."type" IN ('BillingAddress') AND "addresses"."order_id" = ? LIMIT 1 [["order_id", 11]]
[1m[36mShippingAddress Load (0.2ms)[0m [1mSELECT "addresses".* FROM "addresses" WHERE "addresses"."type" IN ('ShippingAddress') AND "addresses"."order_id" = ? LIMIT 1[0m [["order_id", 11]]
Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/_progress.html.haml (2.8ms)
Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/payment.html.haml within layouts/simple_cart/application (20.5ms)
Completed 500 Internal Server Error in 88ms (ActiveRecord: 1.8ms)
ActionView::Template::Error (uninitialized constant ActionView::CompiledTemplates::CreditCard):
39: .row
40: .col-xs-6
41: = ff.label :expiration_month
42: = ff.collection_select :expiration_month, CreditCard.months, :to_s, :to_s, {}, :class => 'form-control'
43: .col-xs-6
44: = ff.label :expiration_year
45: = ff.collection_select :expiration_year, CreditCard.years, :to_s, :to_s, {}, :class => 'form-control'
/home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/payment.html.haml:42:in `block (2 levels) in __home_leksster__uby__uby_arage__mazon_simple_cart_app_views_simple_cart_checkout_payment_html_haml___2539885487000799515_44040240'
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_helper.rb:714:in `fields_for'
actionview (4.2.5.2) lib/action_view/helpers/form_helper.rb:1599:in `fields_for'
/home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/payment.html.haml:34:in `block in __home_leksster__uby__uby_arage__mazon_simple_cart_app_views_simple_cart_checkout_payment_html_haml___2539885487000799515_44040240'
haml (4.0.7) lib/haml/helpers/action_view_mods.rb:137:in `call'
haml (4.0.7) lib/haml/helpers/action_view_mods.rb:137:in `block (2 levels) in form_for_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:137:in `block in form_for_with_haml'
actionview (4.2.5.2) lib/action_view/helpers/capture_helper.rb:38:in `block in capture'
actionview (4.2.5.2) lib/action_view/helpers/capture_helper.rb:202:in `with_output_buffer'
haml (4.0.7) lib/haml/helpers/action_view_xss_mods.rb:5:in `with_output_buffer_with_haml_xss'
actionview (4.2.5.2) lib/action_view/helpers/capture_helper.rb:38:in `capture'
haml (4.0.7) lib/haml/helpers/action_view_mods.rb:52:in `capture_with_haml'
actionview (4.2.5.2) lib/action_view/helpers/form_helper.rb:444:in `form_for'
haml (4.0.7) lib/haml/helpers/action_view_mods.rb:139:in `form_for_with_haml'
haml (4.0.7) lib/haml/helpers/action_view_xss_mods.rb:28:in `form_for_with_haml_xss'
/home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/payment.html.haml:27:in `__home_leksster__uby__uby_arage__mazon_simple_cart_app_views_simple_cart_checkout_payment_html_haml___2539885487000799515_44040240'
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'
wicked (1.2.1) lib/wicked/controller/concerns/render_redirect.rb:29:in `render_step'
wicked (1.2.1) lib/wicked/controller/concerns/render_redirect.rb:11:in `render_wizard'
/home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/controllers/simple_cart/checkout_controller.rb:23:in `show'
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: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.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.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 (8.7ms)
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 (28.2ms)
Started GET "/simple_cart/orders/11/checkout/payment" for 127.0.0.1 at 2016-03-12 17:14:49 +0200
Processing by SimpleCart::CheckoutController#show as HTML
Parameters: {"order_id"=>"11", "id"=>"payment"}
[1m[35mOrder Load (0.1ms)[0m SELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1 [["id", 11]]
[1m[36mDelivery Load (0.1ms)[0m [1mSELECT "deliveries".* FROM "deliveries" WHERE "deliveries"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mBillingAddress Load (0.2ms)[0m SELECT "addresses".* FROM "addresses" WHERE "addresses"."type" IN ('BillingAddress') AND "addresses"."order_id" = ? LIMIT 1 [["order_id", 11]]
[1m[36mShippingAddress Load (0.3ms)[0m [1mSELECT "addresses".* FROM "addresses" WHERE "addresses"."type" IN ('ShippingAddress') AND "addresses"."order_id" = ? LIMIT 1[0m [["order_id", 11]]
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/payment.html.haml within layouts/simple_cart/application (16.6ms)
Completed 500 Internal Server Error in 68ms (ActiveRecord: 1.7ms)
ActionView::Template::Error (undefined local variable or method `current_user' for #<#:0x00000003ae4428>):
51:
52: .form-group
53: = ff.label :firstname
54: = ff.text_field :firstname, class: 'form-control', :value => current_user.firstname
55: .form-group
56: = ff.label :lastname
57: = ff.text_field :lastname, class: 'form-control', :value => current_user.lastname
/home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/payment.html.haml:54:in `block (2 levels) in __home_leksster__uby__uby_arage__mazon_simple_cart_app_views_simple_cart_checkout_payment_html_haml___2539885487000799515_44040240'
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_helper.rb:714:in `fields_for'
actionview (4.2.5.2) lib/action_view/helpers/form_helper.rb:1599:in `fields_for'
/home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/payment.html.haml:34:in `block in __home_leksster__uby__uby_arage__mazon_simple_cart_app_views_simple_cart_checkout_payment_html_haml___2539885487000799515_44040240'
haml (4.0.7) lib/haml/helpers/action_view_mods.rb:137:in `call'
haml (4.0.7) lib/haml/helpers/action_view_mods.rb:137:in `block (2 levels) in form_for_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:137:in `block in form_for_with_haml'
actionview (4.2.5.2) lib/action_view/helpers/capture_helper.rb:38:in `block in capture'
actionview (4.2.5.2) lib/action_view/helpers/capture_helper.rb:202:in `with_output_buffer'
haml (4.0.7) lib/haml/helpers/action_view_xss_mods.rb:5:in `with_output_buffer_with_haml_xss'
actionview (4.2.5.2) lib/action_view/helpers/capture_helper.rb:38:in `capture'
haml (4.0.7) lib/haml/helpers/action_view_mods.rb:52:in `capture_with_haml'
actionview (4.2.5.2) lib/action_view/helpers/form_helper.rb:444:in `form_for'
haml (4.0.7) lib/haml/helpers/action_view_mods.rb:139:in `form_for_with_haml'
haml (4.0.7) lib/haml/helpers/action_view_xss_mods.rb:28:in `form_for_with_haml_xss'
/home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/payment.html.haml:27:in `__home_leksster__uby__uby_arage__mazon_simple_cart_app_views_simple_cart_checkout_payment_html_haml___2539885487000799515_44040240'
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'
wicked (1.2.1) lib/wicked/controller/concerns/render_redirect.rb:29:in `render_step'
wicked (1.2.1) lib/wicked/controller/concerns/render_redirect.rb:11:in `render_wizard'
/home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/controllers/simple_cart/checkout_controller.rb:23:in `show'
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: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.3ms)
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 (1.0ms)
Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/rescues/template_error.html.erb within rescues/layout (20.5ms)
Started GET "/simple_cart/orders/11/checkout/payment" for 127.0.0.1 at 2016-03-12 17:15:07 +0200
Processing by SimpleCart::CheckoutController#show as HTML
Parameters: {"order_id"=>"11", "id"=>"payment"}
[1m[35mOrder Load (0.2ms)[0m SELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1 [["id", 11]]
[1m[36mDelivery Load (0.1ms)[0m [1mSELECT "deliveries".* FROM "deliveries" WHERE "deliveries"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mBillingAddress Load (0.1ms)[0m SELECT "addresses".* FROM "addresses" WHERE "addresses"."type" IN ('BillingAddress') AND "addresses"."order_id" = ? LIMIT 1 [["order_id", 11]]
[1m[36mShippingAddress Load (0.1ms)[0m [1mSELECT "addresses".* FROM "addresses" WHERE "addresses"."type" IN ('ShippingAddress') AND "addresses"."order_id" = ? LIMIT 1[0m [["order_id", 11]]
Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/_progress.html.haml (1.2ms)
[1m[35mCACHE (0.0ms)[0m SELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1 [["id", "11"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1[0m [["id", "11"]]
[1m[35mCACHE (0.0ms)[0m SELECT "deliveries".* FROM "deliveries" WHERE "deliveries"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1[0m [["id", "11"]]
[1m[35mCACHE (0.0ms)[0m SELECT "deliveries".* FROM "deliveries" WHERE "deliveries"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1[0m [["id", "11"]]
[1m[35mCACHE (0.0ms)[0m SELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1 [["id", "11"]]
Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/_summary.html.haml (9.8ms)
Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/payment.html.haml within layouts/simple_cart/application (23.5ms)
Completed 500 Internal Server Error in 30ms (ActiveRecord: 0.7ms)
ActionView::Template::Error (undefined method `shipping' for #):
11: %p
12: Order Total:
13: %strong
14: = number_to_currency(Order.find(params[:order_id]).total_price + Order.find(params[:order_id]).shipping.costs)
activemodel (4.2.5.2) lib/active_model/attribute_methods.rb:433:in `method_missing'
/home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/_summary.html.haml:14:in `__home_leksster__uby__uby_arage__mazon_simple_cart_app_views_simple_cart_checkout__summary_html_haml__4564975226523664233_32727320'
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/partial_renderer.rb:339:in `render_partial'
actionview (4.2.5.2) lib/action_view/renderer/partial_renderer.rb:310:in `block in render'
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/partial_renderer.rb:309:in `render'
actionview (4.2.5.2) lib/action_view/renderer/renderer.rb:51:in `render_partial'
actionview (4.2.5.2) lib/action_view/helpers/rendering_helper.rb:35:in `render'
haml (4.0.7) lib/haml/helpers/action_view_mods.rb:10:in `block in render_with_haml'
haml (4.0.7) lib/haml/helpers.rb:89:in `non_haml'
haml (4.0.7) lib/haml/helpers/action_view_mods.rb:10:in `render_with_haml'
/home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/payment.html.haml:67:in `__home_leksster__uby__uby_arage__mazon_simple_cart_app_views_simple_cart_checkout_payment_html_haml___2539885487000799515_42993340'
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'
wicked (1.2.1) lib/wicked/controller/concerns/render_redirect.rb:29:in `render_step'
wicked (1.2.1) lib/wicked/controller/concerns/render_redirect.rb:11:in `render_wizard'
/home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/controllers/simple_cart/checkout_controller.rb:23:in `show'
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: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 (6.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.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 (1.1ms)
Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/rescues/template_error.html.erb within rescues/layout (20.4ms)
Started GET "/simple_cart/orders/11/checkout/payment" for 127.0.0.1 at 2016-03-12 17:15:28 +0200
Processing by SimpleCart::CheckoutController#show as HTML
Parameters: {"order_id"=>"11", "id"=>"payment"}
[1m[36mOrder Load (0.2ms)[0m [1mSELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1[0m [["id", 11]]
[1m[35mDelivery Load (0.2ms)[0m SELECT "deliveries".* FROM "deliveries" WHERE "deliveries"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mBillingAddress Load (0.1ms)[0m [1mSELECT "addresses".* FROM "addresses" WHERE "addresses"."type" IN ('BillingAddress') AND "addresses"."order_id" = ? LIMIT 1[0m [["order_id", 11]]
[1m[35mShippingAddress Load (0.2ms)[0m SELECT "addresses".* FROM "addresses" WHERE "addresses"."type" IN ('ShippingAddress') AND "addresses"."order_id" = ? LIMIT 1 [["order_id", 11]]
Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/_progress.html.haml (0.9ms)
[1m[36mCACHE (0.0ms)[0m [1mSELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1[0m [["id", "11"]]
[1m[35mCACHE (0.0ms)[0m SELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1 [["id", "11"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "deliveries".* FROM "deliveries" WHERE "deliveries"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mCACHE (0.0ms)[0m SELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1 [["id", "11"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "deliveries".* FROM "deliveries" WHERE "deliveries"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mCACHE (0.0ms)[0m SELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1 [["id", "11"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1[0m [["id", "11"]]
[1m[35mCACHE (0.0ms)[0m SELECT "deliveries".* FROM "deliveries" WHERE "deliveries"."id" = ? LIMIT 1 [["id", 1]]
Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/_summary.html.haml (7.4ms)
Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/payment.html.haml within layouts/simple_cart/application (14.1ms)
Completed 200 OK in 253ms (Views: 247.5ms | ActiveRecord: 0.8ms)
Started PATCH "/simple_cart/orders/11/checkout/payment" for 127.0.0.1 at 2016-03-12 17:15:31 +0200
Processing by SimpleCart::CheckoutController#update as HTML
Parameters: {"utf8"=>"✓", "authenticity_token"=>"r4rXItdK+k39hpO3/y29CZ6BNRuNAfWQSGZhBnvMM5dpmuouTJz2u/T7OtzsaMR93Xd3XgEhJI5C6JpnFtudBg==", "order"=>{"credit_card"=>{"number"=>"", "expiration_month"=>"01", "expiration_year"=>"2017", "cvv"=>"", "firstname"=>"", "lastname"=>""}}, "commit"=>"Continue", "order_id"=>"11", "id"=>"payment"}
[1m[36mOrder Load (0.2ms)[0m [1mSELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1[0m [["id", 11]]
Unpermitted parameter: credit_card
[1m[35m (0.2ms)[0m begin transaction
[1m[36m (0.1ms)[0m [1mcommit transaction[0m
[1m[35m (0.0ms)[0m begin transaction
[1m[36m (0.0ms)[0m [1mcommit transaction[0m
Redirected to http://localhost:3000/simple_cart/orders/11/checkout/confirm
Completed 302 Found in 5ms (ActiveRecord: 0.5ms)
Started GET "/simple_cart/orders/11/checkout/confirm" for 127.0.0.1 at 2016-03-12 17:15:31 +0200
Processing by SimpleCart::CheckoutController#show as HTML
Parameters: {"order_id"=>"11", "id"=>"confirm"}
[1m[35mOrder Load (0.1ms)[0m SELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1 [["id", 11]]
Completed 500 Internal Server Error in 1ms (ActiveRecord: 0.1ms)
NoMethodError (undefined method `credit_card' for #):
activemodel (4.2.5.2) lib/active_model/attribute_methods.rb:433:in `method_missing'
/home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/controllers/simple_cart/checkout_controller.rb:18:in `show'
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: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 (5.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 (7.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 (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 (24.2ms)
Started GET "/simple_cart/orders/11/checkout/payment" for 127.0.0.1 at 2016-03-12 17:15:37 +0200
Processing by SimpleCart::CheckoutController#show as HTML
Parameters: {"order_id"=>"11", "id"=>"payment"}
[1m[36mOrder Load (0.1ms)[0m [1mSELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1[0m [["id", 11]]
[1m[35mDelivery Load (0.1ms)[0m SELECT "deliveries".* FROM "deliveries" WHERE "deliveries"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mBillingAddress Load (0.3ms)[0m [1mSELECT "addresses".* FROM "addresses" WHERE "addresses"."type" IN ('BillingAddress') AND "addresses"."order_id" = ? LIMIT 1[0m [["order_id", 11]]
[1m[35mShippingAddress Load (0.2ms)[0m SELECT "addresses".* FROM "addresses" WHERE "addresses"."type" IN ('ShippingAddress') AND "addresses"."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)
[1m[36mCACHE (0.0ms)[0m [1mSELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1[0m [["id", "11"]]
[1m[35mCACHE (0.0ms)[0m SELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1 [["id", "11"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "deliveries".* FROM "deliveries" WHERE "deliveries"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mCACHE (0.0ms)[0m SELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1 [["id", "11"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "deliveries".* FROM "deliveries" WHERE "deliveries"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mCACHE (0.0ms)[0m SELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1 [["id", "11"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1[0m [["id", "11"]]
[1m[35mCACHE (0.0ms)[0m SELECT "deliveries".* FROM "deliveries" WHERE "deliveries"."id" = ? LIMIT 1 [["id", 1]]
Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/_summary.html.haml (4.7ms)
Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/payment.html.haml within layouts/simple_cart/application (13.1ms)
Completed 200 OK in 30ms (Views: 25.0ms | ActiveRecord: 0.8ms)
Started GET "/simple_cart/orders/11/checkout/delivery" for 127.0.0.1 at 2016-03-12 17:15:58 +0200
Processing by SimpleCart::CheckoutController#show as HTML
Parameters: {"order_id"=>"11", "id"=>"delivery"}
[1m[36mOrder Load (0.1ms)[0m [1mSELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1[0m [["id", 11]]
[1m[35mShippingAddress Load (0.1ms)[0m SELECT "addresses".* FROM "addresses" WHERE "addresses"."type" IN ('ShippingAddress') AND "addresses"."order_id" = ? LIMIT 1 [["order_id", 11]]
[1m[36mBillingAddress Load (0.1ms)[0m [1mSELECT "addresses".* FROM "addresses" WHERE "addresses"."type" IN ('BillingAddress') AND "addresses"."order_id" = ? LIMIT 1[0m [["order_id", 11]]
Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/_progress.html.haml (1.0ms)
[1m[35mDelivery Load (0.2ms)[0m SELECT "deliveries".* FROM "deliveries"
[1m[36mDelivery Load (0.1ms)[0m [1mSELECT "deliveries".* FROM "deliveries" ORDER BY "deliveries"."id" ASC LIMIT 1[0m
[1m[35mCACHE (0.0ms)[0m SELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1 [["id", "11"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1[0m [["id", "11"]]
[1m[35mDelivery Load (0.1ms)[0m SELECT "deliveries".* FROM "deliveries" WHERE "deliveries"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1[0m [["id", "11"]]
[1m[35mCACHE (0.0ms)[0m SELECT "deliveries".* FROM "deliveries" WHERE "deliveries"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1[0m [["id", "11"]]
[1m[35mCACHE (0.0ms)[0m SELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1 [["id", "11"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "deliveries".* FROM "deliveries" WHERE "deliveries"."id" = ? LIMIT 1[0m [["id", 1]]
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 (15.8ms)
Completed 200 OK in 31ms (Views: 27.4ms | ActiveRecord: 0.9ms)
Started PATCH "/simple_cart/orders/11/checkout/delivery" for 127.0.0.1 at 2016-03-12 17:15:59 +0200
Processing by SimpleCart::CheckoutController#update as HTML
Parameters: {"utf8"=>"✓", "authenticity_token"=>"fEblPj33DgmHwLhk2XIWmHFFdJB3cmJTtd3dhX1T88K6VtgypiEC/469EQ/KN2/sMrM21ftSs02/UybkEERdUw==", "order"=>{"delivery_id"=>"1"}, "commit"=>"Continue", "order_id"=>"11", "id"=>"delivery"}
[1m[35mOrder Load (0.1ms)[0m SELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1 [["id", 11]]
[1m[36mDelivery Load (0.1ms)[0m [1mSELECT "deliveries".* FROM "deliveries" WHERE "deliveries"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35m (0.1ms)[0m begin transaction
[1m[36m (0.1ms)[0m [1mcommit transaction[0m
Redirected to http://localhost:3000/simple_cart/orders/11/checkout/payment
Completed 302 Found in 4ms (ActiveRecord: 0.4ms)
Started GET "/simple_cart/orders/11/checkout/payment" for 127.0.0.1 at 2016-03-12 17:15:59 +0200
Processing by SimpleCart::CheckoutController#show as HTML
Parameters: {"order_id"=>"11", "id"=>"payment"}
[1m[35mOrder Load (0.1ms)[0m SELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1 [["id", 11]]
[1m[36mDelivery Load (0.1ms)[0m [1mSELECT "deliveries".* FROM "deliveries" WHERE "deliveries"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mBillingAddress Load (0.2ms)[0m SELECT "addresses".* FROM "addresses" WHERE "addresses"."type" IN ('BillingAddress') AND "addresses"."order_id" = ? LIMIT 1 [["order_id", 11]]
[1m[36mShippingAddress Load (0.2ms)[0m [1mSELECT "addresses".* FROM "addresses" WHERE "addresses"."type" IN ('ShippingAddress') AND "addresses"."order_id" = ? LIMIT 1[0m [["order_id", 11]]
Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/_progress.html.haml (1.6ms)
[1m[35mCACHE (0.0ms)[0m SELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1 [["id", "11"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1[0m [["id", "11"]]
[1m[35mCACHE (0.0ms)[0m SELECT "deliveries".* FROM "deliveries" WHERE "deliveries"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1[0m [["id", "11"]]
[1m[35mCACHE (0.0ms)[0m SELECT "deliveries".* FROM "deliveries" WHERE "deliveries"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1[0m [["id", "11"]]
[1m[35mCACHE (0.0ms)[0m SELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1 [["id", "11"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "deliveries".* FROM "deliveries" WHERE "deliveries"."id" = ? LIMIT 1[0m [["id", 1]]
Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/_summary.html.haml (4.0ms)
Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/payment.html.haml within layouts/simple_cart/application (11.5ms)
Completed 200 OK in 26ms (Views: 22.0ms | ActiveRecord: 0.6ms)
Started PATCH "/simple_cart/orders/11/checkout/payment" for 127.0.0.1 at 2016-03-12 17:16:00 +0200
Processing by SimpleCart::CheckoutController#update as HTML
Parameters: {"utf8"=>"✓", "authenticity_token"=>"9QnHA26reHTJnpwLLWkq3mzFmr8PuPsfKJ2lX6oCVg4zGfoP9X10gsDjNWA+LFOqLzPY+oOYKgEiE14+xxX4nw==", "order"=>{"credit_card"=>{"number"=>"", "expiration_month"=>"01", "expiration_year"=>"2017", "cvv"=>"", "firstname"=>"", "lastname"=>""}}, "commit"=>"Continue", "order_id"=>"11", "id"=>"payment"}
[1m[35mOrder Load (0.1ms)[0m SELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1 [["id", 11]]
Unpermitted parameter: credit_card
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
[1m[35m (0.1ms)[0m commit transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
[1m[35m (0.0ms)[0m commit transaction
Redirected to http://localhost:3000/simple_cart/orders/11/checkout/confirm
Completed 302 Found in 3ms (ActiveRecord: 0.3ms)
Started GET "/simple_cart/orders/11/checkout/confirm" for 127.0.0.1 at 2016-03-12 17:16:00 +0200
Processing by SimpleCart::CheckoutController#show as HTML
Parameters: {"order_id"=>"11", "id"=>"confirm"}
[1m[36mOrder Load (0.1ms)[0m [1mSELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1[0m [["id", 11]]
Completed 500 Internal Server Error in 1ms (ActiveRecord: 0.1ms)
NoMethodError (undefined method `credit_card' for #):
activemodel (4.2.5.2) lib/active_model/attribute_methods.rb:433:in `method_missing'
/home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/controllers/simple_cart/checkout_controller.rb:18:in `show'
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: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 (6.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.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 (1.0ms)
Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/rescues/diagnostics.html.erb within rescues/layout (18.5ms)
Started GET "/simple_cart/orders/11/checkout/confirm" for 127.0.0.1 at 2016-03-12 17:16:29 +0200
Processing by SimpleCart::CheckoutController#show as HTML
Parameters: {"order_id"=>"11", "id"=>"confirm"}
[1m[35mOrder Load (0.2ms)[0m SELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1 [["id", 11]]
[1m[36mCreditCard Load (0.1ms)[0m [1mSELECT "credit_cards".* FROM "credit_cards" WHERE "credit_cards"."order_id" = ? LIMIT 1[0m [["order_id", 11]]
[1m[35mBillingAddress Load (0.2ms)[0m SELECT "addresses".* FROM "addresses" WHERE "addresses"."type" IN ('BillingAddress') AND "addresses"."order_id" = ? LIMIT 1 [["order_id", 11]]
[1m[36mShippingAddress Load (0.3ms)[0m [1mSELECT "addresses".* FROM "addresses" WHERE "addresses"."type" IN ('ShippingAddress') AND "addresses"."order_id" = ? LIMIT 1[0m [["order_id", 11]]
Redirected to http://localhost:3000/simple_cart/orders/11/checkout/payment
Completed 302 Found in 55ms (ActiveRecord: 1.9ms)
Started GET "/simple_cart/orders/11/checkout/payment" for 127.0.0.1 at 2016-03-12 17:16:29 +0200
Processing by SimpleCart::CheckoutController#show as HTML
Parameters: {"order_id"=>"11", "id"=>"payment"}
[1m[35mOrder Load (0.1ms)[0m SELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1 [["id", 11]]
[1m[36mDelivery Load (0.2ms)[0m [1mSELECT "deliveries".* FROM "deliveries" WHERE "deliveries"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mBillingAddress Load (0.2ms)[0m SELECT "addresses".* FROM "addresses" WHERE "addresses"."type" IN ('BillingAddress') AND "addresses"."order_id" = ? LIMIT 1 [["order_id", 11]]
[1m[36mShippingAddress Load (0.1ms)[0m [1mSELECT "addresses".* FROM "addresses" WHERE "addresses"."type" IN ('ShippingAddress') AND "addresses"."order_id" = ? LIMIT 1[0m [["order_id", 11]]
Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/_progress.html.haml (0.9ms)
[1m[35mCACHE (0.0ms)[0m SELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1 [["id", "11"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1[0m [["id", "11"]]
[1m[35mCACHE (0.0ms)[0m SELECT "deliveries".* FROM "deliveries" WHERE "deliveries"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1[0m [["id", "11"]]
[1m[35mCACHE (0.0ms)[0m SELECT "deliveries".* FROM "deliveries" WHERE "deliveries"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1[0m [["id", "11"]]
[1m[35mCACHE (0.0ms)[0m SELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1 [["id", "11"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "deliveries".* FROM "deliveries" WHERE "deliveries"."id" = ? LIMIT 1[0m [["id", 1]]
Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/_summary.html.haml (3.9ms)
Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/payment.html.haml within layouts/simple_cart/application (11.4ms)
Completed 200 OK in 34ms (Views: 24.7ms | ActiveRecord: 0.9ms)
Started PATCH "/simple_cart/orders/11/checkout/payment" for 127.0.0.1 at 2016-03-12 17:16:31 +0200
Processing by SimpleCart::CheckoutController#update as HTML
Parameters: {"utf8"=>"✓", "authenticity_token"=>"72TiM1pUS+Qc/+sgzzdKC2gVuqImKeZVybk70XcL/iwpdN8/wYJHEhWCQkvccjN/K+P456oJN0vDN8CwGhxQvQ==", "order"=>{"credit_card"=>{"number"=>"", "expiration_month"=>"01", "expiration_year"=>"2017", "cvv"=>"", "firstname"=>"", "lastname"=>""}}, "commit"=>"Continue", "order_id"=>"11", "id"=>"payment"}
[1m[35mOrder Load (0.1ms)[0m SELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1 [["id", 11]]
Unpermitted parameter: credit_card
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
[1m[35m (0.1ms)[0m commit transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
[1m[35m (0.1ms)[0m commit transaction
Redirected to http://localhost:3000/simple_cart/orders/11/checkout/confirm
Completed 302 Found in 4ms (ActiveRecord: 0.5ms)
Started GET "/simple_cart/orders/11/checkout/confirm" for 127.0.0.1 at 2016-03-12 17:16:31 +0200
Processing by SimpleCart::CheckoutController#show as HTML
Parameters: {"order_id"=>"11", "id"=>"confirm"}
[1m[36mOrder Load (0.1ms)[0m [1mSELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1[0m [["id", 11]]
[1m[35mCreditCard Load (0.1ms)[0m SELECT "credit_cards".* FROM "credit_cards" WHERE "credit_cards"."order_id" = ? LIMIT 1 [["order_id", 11]]
[1m[36mBillingAddress Load (0.1ms)[0m [1mSELECT "addresses".* FROM "addresses" WHERE "addresses"."type" IN ('BillingAddress') AND "addresses"."order_id" = ? LIMIT 1[0m [["order_id", 11]]
[1m[35mShippingAddress Load (0.1ms)[0m SELECT "addresses".* FROM "addresses" WHERE "addresses"."type" IN ('ShippingAddress') AND "addresses"."order_id" = ? LIMIT 1 [["order_id", 11]]
Redirected to http://localhost:3000/simple_cart/orders/11/checkout/payment
Completed 302 Found in 3ms (ActiveRecord: 0.3ms)
Started GET "/simple_cart/orders/11/checkout/payment" for 127.0.0.1 at 2016-03-12 17:16:31 +0200
Processing by SimpleCart::CheckoutController#show as HTML
Parameters: {"order_id"=>"11", "id"=>"payment"}
[1m[36mOrder Load (0.1ms)[0m [1mSELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1[0m [["id", 11]]
[1m[35mDelivery Load (0.1ms)[0m SELECT "deliveries".* FROM "deliveries" WHERE "deliveries"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mBillingAddress Load (0.2ms)[0m [1mSELECT "addresses".* FROM "addresses" WHERE "addresses"."type" IN ('BillingAddress') AND "addresses"."order_id" = ? LIMIT 1[0m [["order_id", 11]]
[1m[35mShippingAddress Load (0.1ms)[0m SELECT "addresses".* FROM "addresses" WHERE "addresses"."type" IN ('ShippingAddress') AND "addresses"."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)
[1m[36mCACHE (0.0ms)[0m [1mSELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1[0m [["id", "11"]]
[1m[35mCACHE (0.0ms)[0m SELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1 [["id", "11"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "deliveries".* FROM "deliveries" WHERE "deliveries"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mCACHE (0.0ms)[0m SELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1 [["id", "11"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "deliveries".* FROM "deliveries" WHERE "deliveries"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mCACHE (0.0ms)[0m SELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1 [["id", "11"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1[0m [["id", "11"]]
[1m[35mCACHE (0.0ms)[0m SELECT "deliveries".* FROM "deliveries" WHERE "deliveries"."id" = ? LIMIT 1 [["id", 1]]
Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/_summary.html.haml (4.7ms)
Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/payment.html.haml within layouts/simple_cart/application (11.3ms)
Completed 200 OK in 27ms (Views: 22.1ms | ActiveRecord: 0.7ms)
Started PATCH "/simple_cart/orders/11/checkout/payment" for 127.0.0.1 at 2016-03-12 17:16:32 +0200
Processing by SimpleCart::CheckoutController#update as HTML
Parameters: {"utf8"=>"✓", "authenticity_token"=>"YwVpMPzK+YnA8MXYejKJSaV3olmJCDZjIfLYHsyx25OlFVQ8Zxz1f8mNbLNpd/A95oHgHAUo530rfCN/oaZ1Ag==", "order"=>{"credit_card"=>{"number"=>"", "expiration_month"=>"01", "expiration_year"=>"2017", "cvv"=>"", "firstname"=>"", "lastname"=>""}}, "commit"=>"Continue", "order_id"=>"11", "id"=>"payment"}
[1m[36mOrder Load (0.1ms)[0m [1mSELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1[0m [["id", 11]]
Unpermitted parameter: credit_card
[1m[35m (0.1ms)[0m begin transaction
[1m[36m (0.1ms)[0m [1mcommit transaction[0m
[1m[35m (0.0ms)[0m begin transaction
[1m[36m (0.0ms)[0m [1mcommit transaction[0m
Redirected to http://localhost:3000/simple_cart/orders/11/checkout/confirm
Completed 302 Found in 4ms (ActiveRecord: 0.3ms)
Started GET "/simple_cart/orders/11/checkout/confirm" for 127.0.0.1 at 2016-03-12 17:16:32 +0200
Processing by SimpleCart::CheckoutController#show as HTML
Parameters: {"order_id"=>"11", "id"=>"confirm"}
[1m[35mOrder Load (0.1ms)[0m SELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1 [["id", 11]]
[1m[36mCreditCard Load (0.1ms)[0m [1mSELECT "credit_cards".* FROM "credit_cards" WHERE "credit_cards"."order_id" = ? LIMIT 1[0m [["order_id", 11]]
[1m[35mBillingAddress Load (0.1ms)[0m SELECT "addresses".* FROM "addresses" WHERE "addresses"."type" IN ('BillingAddress') AND "addresses"."order_id" = ? LIMIT 1 [["order_id", 11]]
[1m[36mShippingAddress Load (0.1ms)[0m [1mSELECT "addresses".* FROM "addresses" WHERE "addresses"."type" IN ('ShippingAddress') AND "addresses"."order_id" = ? LIMIT 1[0m [["order_id", 11]]
Redirected to http://localhost:3000/simple_cart/orders/11/checkout/payment
Completed 302 Found in 3ms (ActiveRecord: 0.3ms)
Started GET "/simple_cart/orders/11/checkout/payment" for 127.0.0.1 at 2016-03-12 17:16:32 +0200
Processing by SimpleCart::CheckoutController#show as HTML
Parameters: {"order_id"=>"11", "id"=>"payment"}
[1m[35mOrder Load (0.1ms)[0m SELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1 [["id", 11]]
[1m[36mDelivery Load (0.1ms)[0m [1mSELECT "deliveries".* FROM "deliveries" WHERE "deliveries"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mBillingAddress Load (0.2ms)[0m SELECT "addresses".* FROM "addresses" WHERE "addresses"."type" IN ('BillingAddress') AND "addresses"."order_id" = ? LIMIT 1 [["order_id", 11]]
[1m[36mShippingAddress Load (0.2ms)[0m [1mSELECT "addresses".* FROM "addresses" WHERE "addresses"."type" IN ('ShippingAddress') AND "addresses"."order_id" = ? LIMIT 1[0m [["order_id", 11]]
Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/_progress.html.haml (1.0ms)
[1m[35mCACHE (0.0ms)[0m SELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1 [["id", "11"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1[0m [["id", "11"]]
[1m[35mCACHE (0.0ms)[0m SELECT "deliveries".* FROM "deliveries" WHERE "deliveries"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1[0m [["id", "11"]]
[1m[35mCACHE (0.0ms)[0m SELECT "deliveries".* FROM "deliveries" WHERE "deliveries"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1[0m [["id", "11"]]
[1m[35mCACHE (0.0ms)[0m SELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1 [["id", "11"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "deliveries".* FROM "deliveries" WHERE "deliveries"."id" = ? LIMIT 1[0m [["id", 1]]
Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/_summary.html.haml (5.0ms)
Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/payment.html.haml within layouts/simple_cart/application (11.9ms)
Completed 200 OK in 26ms (Views: 22.3ms | ActiveRecord: 0.6ms)
Started PATCH "/simple_cart/orders/11/checkout/payment" for 127.0.0.1 at 2016-03-12 17:16:33 +0200
Processing by SimpleCart::CheckoutController#update as HTML
Parameters: {"utf8"=>"✓", "authenticity_token"=>"cAnMPiZP2CQS6kl1Exp/QfapxZo2gZE5WwnGFLrhnsS2GfEyvZnU0huX4B4AXwY1tV+H37qhQCdRhz111/YwVQ==", "order"=>{"credit_card"=>{"number"=>"", "expiration_month"=>"01", "expiration_year"=>"2017", "cvv"=>"", "firstname"=>"", "lastname"=>""}}, "commit"=>"Continue", "order_id"=>"11", "id"=>"payment"}
[1m[35mOrder Load (0.1ms)[0m SELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1 [["id", 11]]
Unpermitted parameter: credit_card
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
[1m[35m (0.1ms)[0m commit transaction
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
[1m[35m (0.1ms)[0m commit transaction
Redirected to http://localhost:3000/simple_cart/orders/11/checkout/confirm
Completed 302 Found in 5ms (ActiveRecord: 0.5ms)
Started GET "/simple_cart/orders/11/checkout/confirm" for 127.0.0.1 at 2016-03-12 17:16:34 +0200
Processing by SimpleCart::CheckoutController#show as HTML
Parameters: {"order_id"=>"11", "id"=>"confirm"}
[1m[36mOrder Load (0.1ms)[0m [1mSELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1[0m [["id", 11]]
[1m[35mCreditCard Load (0.1ms)[0m SELECT "credit_cards".* FROM "credit_cards" WHERE "credit_cards"."order_id" = ? LIMIT 1 [["order_id", 11]]
[1m[36mBillingAddress Load (0.1ms)[0m [1mSELECT "addresses".* FROM "addresses" WHERE "addresses"."type" IN ('BillingAddress') AND "addresses"."order_id" = ? LIMIT 1[0m [["order_id", 11]]
[1m[35mShippingAddress Load (0.1ms)[0m SELECT "addresses".* FROM "addresses" WHERE "addresses"."type" IN ('ShippingAddress') AND "addresses"."order_id" = ? LIMIT 1 [["order_id", 11]]
Redirected to http://localhost:3000/simple_cart/orders/11/checkout/payment
Completed 302 Found in 3ms (ActiveRecord: 0.3ms)
Started GET "/simple_cart/orders/11/checkout/payment" for 127.0.0.1 at 2016-03-12 17:16:34 +0200
Processing by SimpleCart::CheckoutController#show as HTML
Parameters: {"order_id"=>"11", "id"=>"payment"}
[1m[36mOrder Load (0.1ms)[0m [1mSELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1[0m [["id", 11]]
[1m[35mDelivery Load (0.1ms)[0m SELECT "deliveries".* FROM "deliveries" WHERE "deliveries"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mBillingAddress Load (0.1ms)[0m [1mSELECT "addresses".* FROM "addresses" WHERE "addresses"."type" IN ('BillingAddress') AND "addresses"."order_id" = ? LIMIT 1[0m [["order_id", 11]]
[1m[35mShippingAddress Load (0.1ms)[0m SELECT "addresses".* FROM "addresses" WHERE "addresses"."type" IN ('ShippingAddress') AND "addresses"."order_id" = ? LIMIT 1 [["order_id", 11]]
Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/_progress.html.haml (1.6ms)
[1m[36mCACHE (0.0ms)[0m [1mSELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1[0m [["id", "11"]]
[1m[35mCACHE (0.0ms)[0m SELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1 [["id", "11"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "deliveries".* FROM "deliveries" WHERE "deliveries"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mCACHE (0.0ms)[0m SELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1 [["id", "11"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "deliveries".* FROM "deliveries" WHERE "deliveries"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mCACHE (0.0ms)[0m SELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1 [["id", "11"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1[0m [["id", "11"]]
[1m[35mCACHE (0.0ms)[0m SELECT "deliveries".* FROM "deliveries" WHERE "deliveries"."id" = ? LIMIT 1 [["id", 1]]
Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/_summary.html.haml (4.0ms)
Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/payment.html.haml within layouts/simple_cart/application (11.3ms)
Completed 200 OK in 27ms (Views: 23.5ms | ActiveRecord: 0.6ms)
Started PATCH "/simple_cart/orders/11/checkout/payment" for 127.0.0.1 at 2016-03-12 17:16:34 +0200
Processing by SimpleCart::CheckoutController#update as HTML
Parameters: {"utf8"=>"✓", "authenticity_token"=>"iMEU6C2xnFEBsD2meJGprSyd9VTnpnApLSDX5LTrZn5O0SnktmeQpwjNlM1r1NDZb2u3EWuGoTcnriyF2fzI7w==", "order"=>{"credit_card"=>{"number"=>"", "expiration_month"=>"01", "expiration_year"=>"2017", "cvv"=>"", "firstname"=>"", "lastname"=>""}}, "commit"=>"Continue", "order_id"=>"11", "id"=>"payment"}
[1m[36mOrder Load (0.1ms)[0m [1mSELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1[0m [["id", 11]]
Unpermitted parameter: credit_card
[1m[35m (0.1ms)[0m begin transaction
[1m[36m (0.1ms)[0m [1mcommit transaction[0m
[1m[35m (0.1ms)[0m begin transaction
[1m[36m (0.1ms)[0m [1mcommit transaction[0m
Redirected to http://localhost:3000/simple_cart/orders/11/checkout/confirm
Completed 302 Found in 5ms (ActiveRecord: 0.5ms)
Started GET "/simple_cart/orders/11/checkout/confirm" for 127.0.0.1 at 2016-03-12 17:16:35 +0200
Processing by SimpleCart::CheckoutController#show as HTML
Parameters: {"order_id"=>"11", "id"=>"confirm"}
[1m[35mOrder Load (0.1ms)[0m SELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1 [["id", 11]]
[1m[36mCreditCard Load (0.1ms)[0m [1mSELECT "credit_cards".* FROM "credit_cards" WHERE "credit_cards"."order_id" = ? LIMIT 1[0m [["order_id", 11]]
[1m[35mBillingAddress Load (0.1ms)[0m SELECT "addresses".* FROM "addresses" WHERE "addresses"."type" IN ('BillingAddress') AND "addresses"."order_id" = ? LIMIT 1 [["order_id", 11]]
[1m[36mShippingAddress Load (0.1ms)[0m [1mSELECT "addresses".* FROM "addresses" WHERE "addresses"."type" IN ('ShippingAddress') AND "addresses"."order_id" = ? LIMIT 1[0m [["order_id", 11]]
Redirected to http://localhost:3000/simple_cart/orders/11/checkout/payment
Completed 302 Found in 4ms (ActiveRecord: 0.5ms)
Started GET "/simple_cart/orders/11/checkout/payment" for 127.0.0.1 at 2016-03-12 17:16:35 +0200
Processing by SimpleCart::CheckoutController#show as HTML
Parameters: {"order_id"=>"11", "id"=>"payment"}
[1m[35mOrder Load (0.1ms)[0m SELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1 [["id", 11]]
[1m[36mDelivery Load (0.1ms)[0m [1mSELECT "deliveries".* FROM "deliveries" WHERE "deliveries"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mBillingAddress Load (0.1ms)[0m SELECT "addresses".* FROM "addresses" WHERE "addresses"."type" IN ('BillingAddress') AND "addresses"."order_id" = ? LIMIT 1 [["order_id", 11]]
[1m[36mShippingAddress Load (0.2ms)[0m [1mSELECT "addresses".* FROM "addresses" WHERE "addresses"."type" IN ('ShippingAddress') AND "addresses"."order_id" = ? LIMIT 1[0m [["order_id", 11]]
Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/_progress.html.haml (0.9ms)
[1m[35mCACHE (0.0ms)[0m SELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1 [["id", "11"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1[0m [["id", "11"]]
[1m[35mCACHE (0.0ms)[0m SELECT "deliveries".* FROM "deliveries" WHERE "deliveries"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1[0m [["id", "11"]]
[1m[35mCACHE (0.0ms)[0m SELECT "deliveries".* FROM "deliveries" WHERE "deliveries"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1[0m [["id", "11"]]
[1m[35mCACHE (0.0ms)[0m SELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1 [["id", "11"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "deliveries".* FROM "deliveries" WHERE "deliveries"."id" = ? LIMIT 1[0m [["id", 1]]
Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/_summary.html.haml (4.9ms)
Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/payment.html.haml within layouts/simple_cart/application (11.3ms)
Completed 200 OK in 23ms (Views: 20.6ms | ActiveRecord: 0.5ms)
Started GET "/simple_cart/orders/11/checkout/payment" for 127.0.0.1 at 2016-03-12 17:16:58 +0200
Processing by SimpleCart::CheckoutController#show as HTML
Parameters: {"order_id"=>"11", "id"=>"payment"}
[1m[35mOrder Load (0.1ms)[0m SELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1 [["id", 11]]
[1m[36mDelivery Load (0.1ms)[0m [1mSELECT "deliveries".* FROM "deliveries" WHERE "deliveries"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mBillingAddress Load (0.1ms)[0m SELECT "addresses".* FROM "addresses" WHERE "addresses"."type" IN ('BillingAddress') AND "addresses"."order_id" = ? LIMIT 1 [["order_id", 11]]
[1m[36mShippingAddress Load (0.1ms)[0m [1mSELECT "addresses".* FROM "addresses" WHERE "addresses"."type" IN ('ShippingAddress') AND "addresses"."order_id" = ? LIMIT 1[0m [["order_id", 11]]
Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/_progress.html.haml (1.7ms)
[1m[35mCACHE (0.0ms)[0m SELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1 [["id", "11"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1[0m [["id", "11"]]
[1m[35mCACHE (0.0ms)[0m SELECT "deliveries".* FROM "deliveries" WHERE "deliveries"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1[0m [["id", "11"]]
[1m[35mCACHE (0.0ms)[0m SELECT "deliveries".* FROM "deliveries" WHERE "deliveries"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1[0m [["id", "11"]]
[1m[35mCACHE (0.0ms)[0m SELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1 [["id", "11"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "deliveries".* FROM "deliveries" WHERE "deliveries"."id" = ? LIMIT 1[0m [["id", 1]]
Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/_summary.html.haml (5.1ms)
Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/payment.html.haml within layouts/simple_cart/application (22.3ms)
Completed 200 OK in 38ms (Views: 34.6ms | ActiveRecord: 0.6ms)
Started GET "/assets/simple_cart/application.self-2f12d59583468bdcee27c6046669f62a778d265fc91cf385e5d36e9189ac822e.css?body=1" for 127.0.0.1 at 2016-03-12 17:16:58 +0200
Started GET "/assets/simple_cart/application.self-8f06a73c35179188914ab50e057157639fce1401c1cdca640ac9cec33746fc5b.js?body=1" for 127.0.0.1 at 2016-03-12 17:16:58 +0200
Started PATCH "/simple_cart/orders/11/checkout/payment" for 127.0.0.1 at 2016-03-12 17:16:59 +0200
Processing by SimpleCart::CheckoutController#update as HTML
Parameters: {"utf8"=>"✓", "authenticity_token"=>"MVxlEe14UaNnsK9APQkVHxopT3ZbdA5IYmbD1DnMRZD3TFgddq5dVW7NBisuTGxrWd8NM9dU31Zo6Di1VNvrAQ==", "order"=>{"credit_card"=>{"number"=>"", "expiration_month"=>"01", "expiration_year"=>"2017", "cvv"=>"", "firstname"=>"", "lastname"=>""}}, "commit"=>"Continue", "order_id"=>"11", "id"=>"payment"}
[1m[35mOrder Load (0.1ms)[0m SELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1 [["id", 11]]
Unpermitted parameter: credit_card
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
[1m[35m (0.1ms)[0m commit transaction
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
[1m[35m (0.1ms)[0m commit transaction
Redirected to http://localhost:3000/simple_cart/orders/11/checkout/confirm
Completed 302 Found in 4ms (ActiveRecord: 0.5ms)
Started GET "/simple_cart/orders/11/checkout/confirm" for 127.0.0.1 at 2016-03-12 17:16:59 +0200
Processing by SimpleCart::CheckoutController#show as HTML
Parameters: {"order_id"=>"11", "id"=>"confirm"}
[1m[36mOrder Load (0.1ms)[0m [1mSELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1[0m [["id", 11]]
[1m[35mCreditCard Load (0.0ms)[0m SELECT "credit_cards".* FROM "credit_cards" WHERE "credit_cards"."order_id" = ? LIMIT 1 [["order_id", 11]]
[1m[36mBillingAddress Load (0.1ms)[0m [1mSELECT "addresses".* FROM "addresses" WHERE "addresses"."type" IN ('BillingAddress') AND "addresses"."order_id" = ? LIMIT 1[0m [["order_id", 11]]
[1m[35mShippingAddress Load (0.1ms)[0m SELECT "addresses".* FROM "addresses" WHERE "addresses"."type" IN ('ShippingAddress') AND "addresses"."order_id" = ? LIMIT 1 [["order_id", 11]]
Redirected to http://localhost:3000/simple_cart/orders/11/checkout/payment
Completed 302 Found in 3ms (ActiveRecord: 0.3ms)
Started GET "/simple_cart/orders/11/checkout/payment" for 127.0.0.1 at 2016-03-12 17:16:59 +0200
Processing by SimpleCart::CheckoutController#show as HTML
Parameters: {"order_id"=>"11", "id"=>"payment"}
[1m[36mOrder Load (0.1ms)[0m [1mSELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1[0m [["id", 11]]
[1m[35mDelivery Load (0.1ms)[0m SELECT "deliveries".* FROM "deliveries" WHERE "deliveries"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mBillingAddress Load (0.1ms)[0m [1mSELECT "addresses".* FROM "addresses" WHERE "addresses"."type" IN ('BillingAddress') AND "addresses"."order_id" = ? LIMIT 1[0m [["order_id", 11]]
[1m[35mShippingAddress Load (0.1ms)[0m SELECT "addresses".* FROM "addresses" WHERE "addresses"."type" IN ('ShippingAddress') AND "addresses"."order_id" = ? LIMIT 1 [["order_id", 11]]
Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/_progress.html.haml (0.9ms)
[1m[36mCACHE (0.0ms)[0m [1mSELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1[0m [["id", "11"]]
[1m[35mCACHE (0.0ms)[0m SELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1 [["id", "11"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "deliveries".* FROM "deliveries" WHERE "deliveries"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mCACHE (0.0ms)[0m SELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1 [["id", "11"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "deliveries".* FROM "deliveries" WHERE "deliveries"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mCACHE (0.0ms)[0m SELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1 [["id", "11"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1[0m [["id", "11"]]
[1m[35mCACHE (0.0ms)[0m SELECT "deliveries".* FROM "deliveries" WHERE "deliveries"."id" = ? LIMIT 1 [["id", 1]]
Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/_summary.html.haml (3.8ms)
Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/payment.html.haml within layouts/simple_cart/application (11.3ms)
Completed 200 OK in 24ms (Views: 21.2ms | ActiveRecord: 0.4ms)
Started PATCH "/simple_cart/orders/11/checkout/payment" for 127.0.0.1 at 2016-03-12 17:17:00 +0200
Processing by SimpleCart::CheckoutController#update as HTML
Parameters: {"utf8"=>"✓", "authenticity_token"=>"TJDXIwrEaZZtSoe6kSQ26wRIF+lazYRv7dIWxZEIhpeKgOovkRJlYGQ3LtGCYU+fR75VrNbtVXHnXO2k/B8oBg==", "order"=>{"credit_card"=>{"number"=>"", "expiration_month"=>"01", "expiration_year"=>"2017", "cvv"=>"", "firstname"=>"", "lastname"=>""}}, "commit"=>"Continue", "order_id"=>"11", "id"=>"payment"}
[1m[36mOrder Load (0.1ms)[0m [1mSELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1[0m [["id", 11]]
Unpermitted parameter: credit_card
[1m[35m (0.1ms)[0m begin transaction
[1m[36m (0.1ms)[0m [1mcommit transaction[0m
[1m[35m (0.1ms)[0m begin transaction
[1m[36m (0.0ms)[0m [1mcommit transaction[0m
Redirected to http://localhost:3000/simple_cart/orders/11/checkout/confirm
Completed 302 Found in 4ms (ActiveRecord: 0.5ms)
Started GET "/simple_cart/orders/11/checkout/confirm" for 127.0.0.1 at 2016-03-12 17:17:00 +0200
Processing by SimpleCart::CheckoutController#show as HTML
Parameters: {"order_id"=>"11", "id"=>"confirm"}
[1m[35mOrder Load (0.1ms)[0m SELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1 [["id", 11]]
[1m[36mCreditCard Load (0.1ms)[0m [1mSELECT "credit_cards".* FROM "credit_cards" WHERE "credit_cards"."order_id" = ? LIMIT 1[0m [["order_id", 11]]
[1m[35mBillingAddress Load (0.2ms)[0m SELECT "addresses".* FROM "addresses" WHERE "addresses"."type" IN ('BillingAddress') AND "addresses"."order_id" = ? LIMIT 1 [["order_id", 11]]
[1m[36mShippingAddress Load (0.1ms)[0m [1mSELECT "addresses".* FROM "addresses" WHERE "addresses"."type" IN ('ShippingAddress') AND "addresses"."order_id" = ? LIMIT 1[0m [["order_id", 11]]
Redirected to http://localhost:3000/simple_cart/orders/11/checkout/payment
Completed 302 Found in 4ms (ActiveRecord: 0.5ms)
Started GET "/simple_cart/orders/11/checkout/payment" for 127.0.0.1 at 2016-03-12 17:17:00 +0200
Processing by SimpleCart::CheckoutController#show as HTML
Parameters: {"order_id"=>"11", "id"=>"payment"}
[1m[35mOrder Load (0.2ms)[0m SELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1 [["id", 11]]
[1m[36mDelivery Load (0.2ms)[0m [1mSELECT "deliveries".* FROM "deliveries" WHERE "deliveries"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mBillingAddress Load (0.1ms)[0m SELECT "addresses".* FROM "addresses" WHERE "addresses"."type" IN ('BillingAddress') AND "addresses"."order_id" = ? LIMIT 1 [["order_id", 11]]
[1m[36mShippingAddress Load (0.1ms)[0m [1mSELECT "addresses".* FROM "addresses" WHERE "addresses"."type" IN ('ShippingAddress') AND "addresses"."order_id" = ? LIMIT 1[0m [["order_id", 11]]
Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/_progress.html.haml (1.1ms)
[1m[35mCACHE (0.0ms)[0m SELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1 [["id", "11"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1[0m [["id", "11"]]
[1m[35mCACHE (0.0ms)[0m SELECT "deliveries".* FROM "deliveries" WHERE "deliveries"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1[0m [["id", "11"]]
[1m[35mCACHE (0.0ms)[0m SELECT "deliveries".* FROM "deliveries" WHERE "deliveries"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1[0m [["id", "11"]]
[1m[35mCACHE (0.0ms)[0m SELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1 [["id", "11"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "deliveries".* FROM "deliveries" WHERE "deliveries"."id" = ? LIMIT 1[0m [["id", 1]]
Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/_summary.html.haml (6.2ms)
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 34ms (Views: 28.0ms | ActiveRecord: 0.8ms)
Started GET "/simple_cart/orders/11/checkout/payment" for 127.0.0.1 at 2016-03-12 17:17:26 +0200
Processing by SimpleCart::CheckoutController#show as HTML
Parameters: {"order_id"=>"11", "id"=>"payment"}
[1m[35mOrder Load (0.2ms)[0m SELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1 [["id", 11]]
[1m[36mDelivery Load (0.2ms)[0m [1mSELECT "deliveries".* FROM "deliveries" WHERE "deliveries"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mBillingAddress Load (0.2ms)[0m SELECT "addresses".* FROM "addresses" WHERE "addresses"."type" IN ('BillingAddress') AND "addresses"."order_id" = ? LIMIT 1 [["order_id", 11]]
[1m[36mShippingAddress Load (0.2ms)[0m [1mSELECT "addresses".* FROM "addresses" WHERE "addresses"."type" IN ('ShippingAddress') AND "addresses"."order_id" = ? LIMIT 1[0m [["order_id", 11]]
[1m[35mCreditCard Load (0.2ms)[0m SELECT "credit_cards".* FROM "credit_cards" WHERE "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)
[1m[36mCACHE (0.0ms)[0m [1mSELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1[0m [["id", "11"]]
[1m[35mCACHE (0.0ms)[0m SELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1 [["id", "11"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "deliveries".* FROM "deliveries" WHERE "deliveries"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mCACHE (0.0ms)[0m SELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1 [["id", "11"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "deliveries".* FROM "deliveries" WHERE "deliveries"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mCACHE (0.0ms)[0m SELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1 [["id", "11"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1[0m [["id", "11"]]
[1m[35mCACHE (0.0ms)[0m SELECT "deliveries".* FROM "deliveries" WHERE "deliveries"."id" = ? LIMIT 1 [["id", 1]]
Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/_summary.html.haml (3.3ms)
Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/payment.html.haml within layouts/simple_cart/application (10.7ms)
Completed 200 OK in 89ms (Views: 23.9ms | ActiveRecord: 2.3ms)
Started GET "/assets/simple_cart/application.self-8f06a73c35179188914ab50e057157639fce1401c1cdca640ac9cec33746fc5b.js?body=1" for 127.0.0.1 at 2016-03-12 17:17:27 +0200
Started GET "/assets/simple_cart/application.self-2f12d59583468bdcee27c6046669f62a778d265fc91cf385e5d36e9189ac822e.css?body=1" for 127.0.0.1 at 2016-03-12 17:17:27 +0200
Started PATCH "/simple_cart/orders/11/checkout/payment" for 127.0.0.1 at 2016-03-12 17:17:28 +0200
Processing by SimpleCart::CheckoutController#update as HTML
Parameters: {"utf8"=>"✓", "authenticity_token"=>"j8NymcY1OinLv8rs4jFRtIzkVqLzPDAXgkosUaf8Sl9J00+VXeM238LCY4fxdCjAzxIU538c4QmIxNcwyuvkzg==", "order"=>{"credit_card"=>{"number"=>"", "expiration_month"=>"01", "expiration_year"=>"2017", "cvv"=>"", "firstname"=>"", "lastname"=>""}}, "commit"=>"Continue", "order_id"=>"11", "id"=>"payment"}
[1m[36mOrder Load (0.2ms)[0m [1mSELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1[0m [["id", 11]]
Unpermitted parameter: credit_card
[1m[35m (0.1ms)[0m begin transaction
[1m[36m (0.1ms)[0m [1mcommit transaction[0m
[1m[35m (0.1ms)[0m begin transaction
[1m[36m (0.1ms)[0m [1mcommit transaction[0m
Redirected to http://localhost:3000/simple_cart/orders/11/checkout/confirm
Completed 302 Found in 5ms (ActiveRecord: 0.5ms)
Started GET "/simple_cart/orders/11/checkout/confirm" for 127.0.0.1 at 2016-03-12 17:17:28 +0200
Processing by SimpleCart::CheckoutController#show as HTML
Parameters: {"order_id"=>"11", "id"=>"confirm"}
[1m[35mOrder Load (0.1ms)[0m SELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1 [["id", 11]]
[1m[36mCreditCard Load (0.0ms)[0m [1mSELECT "credit_cards".* FROM "credit_cards" WHERE "credit_cards"."order_id" = ? LIMIT 1[0m [["order_id", 11]]
[1m[35mBillingAddress Load (0.1ms)[0m SELECT "addresses".* FROM "addresses" WHERE "addresses"."type" IN ('BillingAddress') AND "addresses"."order_id" = ? LIMIT 1 [["order_id", 11]]
[1m[36mShippingAddress Load (0.1ms)[0m [1mSELECT "addresses".* FROM "addresses" WHERE "addresses"."type" IN ('ShippingAddress') AND "addresses"."order_id" = ? LIMIT 1[0m [["order_id", 11]]
Redirected to http://localhost:3000/simple_cart/orders/11/checkout/payment
Completed 302 Found in 3ms (ActiveRecord: 0.4ms)
Started GET "/simple_cart/orders/11/checkout/payment" for 127.0.0.1 at 2016-03-12 17:17:28 +0200
Processing by SimpleCart::CheckoutController#show as HTML
Parameters: {"order_id"=>"11", "id"=>"payment"}
[1m[35mOrder Load (0.1ms)[0m SELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1 [["id", 11]]
[1m[36mDelivery Load (0.1ms)[0m [1mSELECT "deliveries".* FROM "deliveries" WHERE "deliveries"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mBillingAddress Load (0.1ms)[0m SELECT "addresses".* FROM "addresses" WHERE "addresses"."type" IN ('BillingAddress') AND "addresses"."order_id" = ? LIMIT 1 [["order_id", 11]]
[1m[36mShippingAddress Load (0.1ms)[0m [1mSELECT "addresses".* FROM "addresses" WHERE "addresses"."type" IN ('ShippingAddress') AND "addresses"."order_id" = ? LIMIT 1[0m [["order_id", 11]]
[1m[35mCreditCard Load (0.0ms)[0m SELECT "credit_cards".* FROM "credit_cards" WHERE "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 (0.9ms)
[1m[36mCACHE (0.0ms)[0m [1mSELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1[0m [["id", "11"]]
[1m[35mCACHE (0.0ms)[0m SELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1 [["id", "11"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "deliveries".* FROM "deliveries" WHERE "deliveries"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mCACHE (0.0ms)[0m SELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1 [["id", "11"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "deliveries".* FROM "deliveries" WHERE "deliveries"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mCACHE (0.0ms)[0m SELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1 [["id", "11"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1[0m [["id", "11"]]
[1m[35mCACHE (0.0ms)[0m SELECT "deliveries".* FROM "deliveries" WHERE "deliveries"."id" = ? LIMIT 1 [["id", 1]]
Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/_summary.html.haml (5.5ms)
Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/payment.html.haml within layouts/simple_cart/application (13.3ms)
Completed 200 OK in 27ms (Views: 23.5ms | ActiveRecord: 0.6ms)
Started GET "/simple_cart/orders/11/checkout/billing" for 127.0.0.1 at 2016-03-12 17:17:40 +0200
Processing by SimpleCart::CheckoutController#show as HTML
Parameters: {"order_id"=>"11", "id"=>"billing"}
[1m[36mOrder Load (0.1ms)[0m [1mSELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1[0m [["id", 11]]
[1m[35mBillingAddress Load (0.2ms)[0m SELECT "addresses".* FROM "addresses" WHERE "addresses"."type" IN ('BillingAddress') AND "addresses"."order_id" = ? LIMIT 1 [["order_id", 11]]
[1m[36mShippingAddress Load (0.1ms)[0m [1mSELECT "addresses".* FROM "addresses" WHERE "addresses"."type" IN ('ShippingAddress') AND "addresses"."order_id" = ? LIMIT 1[0m [["order_id", 11]]
[1m[35mCreditCard Load (0.1ms)[0m SELECT "credit_cards".* FROM "credit_cards" WHERE "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 (11.9ms)
Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/billing.html.haml within layouts/simple_cart/application (21.9ms)
Completed 200 OK in 40ms (Views: 34.7ms | ActiveRecord: 0.5ms)
Started PATCH "/simple_cart/orders/11/checkout/billing" for 127.0.0.1 at 2016-03-12 17:17:42 +0200
Processing by SimpleCart::CheckoutController#update as HTML
Parameters: {"utf8"=>"✓", "authenticity_token"=>"ULqxY3wKm/LfHEpV9b/8ATX9c8dRPebOI/DOSd3tUCWWqoxv59yXBNZh4z7m+oV1dgsxgt0dN9ApfjUosPr+tA==", "order"=>{"billing_address_attributes"=>{"firstname"=>"111", "lastname"=>"111", "address"=>"54", "zipcode"=>"12155215", "city"=>"", "phone"=>"215215", "country"=>"Bahamas", "id"=>"11"}}, "shipping"=>{"use_billing_address"=>"true"}, "commit"=>"Save and continue", "order_id"=>"11", "id"=>"billing"}
[1m[36mOrder Load (0.1ms)[0m [1mSELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1[0m [["id", 11]]
Unpermitted parameter: id
[1m[35m (0.1ms)[0m begin transaction
[1m[36mBillingAddress Load (0.2ms)[0m [1mSELECT "addresses".* FROM "addresses" WHERE "addresses"."type" IN ('BillingAddress') AND "addresses"."order_id" = ? LIMIT 1[0m [["order_id", 11]]
[1m[35mSQL (0.3ms)[0m DELETE FROM "addresses" WHERE "addresses"."type" IN ('BillingAddress') AND "addresses"."id" = ? [["id", 11]]
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
[1m[35m (0.1ms)[0m begin transaction
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
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.3ms)
Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/billing.html.haml within layouts/simple_cart/application (13.6ms)
Completed 200 OK in 34ms (Views: 24.3ms | ActiveRecord: 1.0ms)
Started PATCH "/simple_cart/orders/11/checkout/billing" for 127.0.0.1 at 2016-03-12 17:19:07 +0200
[1m[36mActiveRecord::SchemaMigration Load (0.2ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
Processing by SimpleCart::CheckoutController#update as HTML
Parameters: {"utf8"=>"✓", "authenticity_token"=>"dpMV5t6W0yqf4WJXZKKOqSHbD1IBuq2+dv0RPozeAw6wgyjqRUDf3Jacyzx35/fdYi1NF42afKB8c+pf4cmtnw==", "order"=>{"billing_address_attributes"=>{"firstname"=>"111", "lastname"=>"111", "address"=>"54", "zipcode"=>"12155215", "city"=>"32", "phone"=>"215215", "country"=>"Bahamas"}}, "shipping"=>{"use_billing_address"=>"true"}, "commit"=>"Save and continue", "order_id"=>"11", "id"=>"billing"}
[1m[35mOrder Load (0.2ms)[0m SELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1 [["id", 11]]
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
[1m[35mBillingAddress Load (0.2ms)[0m SELECT "addresses".* FROM "addresses" WHERE "addresses"."type" IN ('BillingAddress') AND "addresses"."order_id" = ? LIMIT 1 [["order_id", 11]]
[1m[36mSQL (0.3ms)[0m [1mDELETE FROM "addresses" WHERE "addresses"."type" IN ('BillingAddress') AND "addresses"."id" = ?[0m [["id", 11]]
[1m[35mSQL (0.2ms)[0m INSERT INTO "addresses" ("type", "firstname", "lastname", "address", "zipcode", "city", "phone", "country", "order_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["type", "BillingAddress"], ["firstname", "111"], ["lastname", "111"], ["address", "54"], ["zipcode", "12155215"], ["city", "32"], ["phone", "215215"], ["country", "Bahamas"], ["order_id", 11], ["created_at", "2016-03-12 15:19:07.722803"], ["updated_at", "2016-03-12 15:19:07.722803"]]
[1m[36m (59.1ms)[0m [1mcommit transaction[0m
[1m[35mShippingAddress Load (0.2ms)[0m SELECT "addresses".* FROM "addresses" WHERE "addresses"."type" IN ('ShippingAddress') AND "addresses"."order_id" = ? LIMIT 1 [["order_id", 11]]
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
[1m[35mSQL (0.2ms)[0m DELETE FROM "addresses" WHERE "addresses"."type" IN ('ShippingAddress') AND "addresses"."id" = ? [["id", 12]]
[1m[36m (89.4ms)[0m [1mcommit transaction[0m
[1m[35m (0.1ms)[0m begin transaction
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "addresses" ("type", "order_id", "address", "zipcode", "city", "phone", "country", "created_at", "updated_at", "firstname", "lastname") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["type", "ShippingAddress"], ["order_id", 11], ["address", "54"], ["zipcode", "12155215"], ["city", "32"], ["phone", "215215"], ["country", "Bahamas"], ["created_at", "2016-03-12 15:19:07.722803"], ["updated_at", "2016-03-12 15:19:07.722803"], ["firstname", "111"], ["lastname", "111"]]
[1m[35m (98.3ms)[0m commit transaction
Redirected to http://localhost:3000/simple_cart/orders/11/checkout/delivery
Completed 302 Found in 321ms (ActiveRecord: 249.1ms)
Started GET "/simple_cart/orders/11/checkout/delivery" for 127.0.0.1 at 2016-03-12 17:19:07 +0200
Processing by SimpleCart::CheckoutController#show as HTML
Parameters: {"order_id"=>"11", "id"=>"delivery"}
[1m[36mOrder Load (0.1ms)[0m [1mSELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1[0m [["id", 11]]
[1m[35mShippingAddress Load (0.2ms)[0m SELECT "addresses".* FROM "addresses" WHERE "addresses"."type" IN ('ShippingAddress') AND "addresses"."order_id" = ? LIMIT 1 [["order_id", 11]]
[1m[36mBillingAddress Load (0.2ms)[0m [1mSELECT "addresses".* FROM "addresses" WHERE "addresses"."type" IN ('BillingAddress') AND "addresses"."order_id" = ? LIMIT 1[0m [["order_id", 11]]
[1m[35mCreditCard Load (0.1ms)[0m SELECT "credit_cards".* FROM "credit_cards" WHERE "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 (2.3ms)
[1m[36mDelivery Load (0.2ms)[0m [1mSELECT "deliveries".* FROM "deliveries"[0m
[1m[35mDelivery Load (0.2ms)[0m SELECT "deliveries".* FROM "deliveries" ORDER BY "deliveries"."id" ASC LIMIT 1
[1m[36mCACHE (0.0ms)[0m [1mSELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1[0m [["id", "11"]]
[1m[35mCACHE (0.0ms)[0m SELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1 [["id", "11"]]
[1m[36mDelivery Load (0.2ms)[0m [1mSELECT "deliveries".* FROM "deliveries" WHERE "deliveries"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mCACHE (0.0ms)[0m SELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1 [["id", "11"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "deliveries".* FROM "deliveries" WHERE "deliveries"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mCACHE (0.0ms)[0m SELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1 [["id", "11"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1[0m [["id", "11"]]
[1m[35mCACHE (0.0ms)[0m SELECT "deliveries".* FROM "deliveries" WHERE "deliveries"."id" = ? LIMIT 1 [["id", 1]]
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/delivery.html.haml within layouts/simple_cart/application (39.7ms)
Completed 200 OK in 237ms (Views: 222.0ms | ActiveRecord: 1.6ms)
Started PATCH "/simple_cart/orders/11/checkout/delivery" for 127.0.0.1 at 2016-03-12 17:19:09 +0200
Processing by SimpleCart::CheckoutController#update as HTML
Parameters: {"utf8"=>"✓", "authenticity_token"=>"hqa5oeSeW5I+31Z5sawLoMSPSE++R/eFpIgOWGyq4ABAtoStf0hXZDei/xKi6XLUh3kKCjJnJpuuBvU5Ab1OkQ==", "order"=>{"delivery_id"=>"1"}, "commit"=>"Continue", "order_id"=>"11", "id"=>"delivery"}
[1m[36mOrder Load (0.1ms)[0m [1mSELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1[0m [["id", 11]]
[1m[35mDelivery Load (0.1ms)[0m SELECT "deliveries".* FROM "deliveries" WHERE "deliveries"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
[1m[35m (0.1ms)[0m commit transaction
Redirected to http://localhost:3000/simple_cart/orders/11/checkout/payment
Completed 302 Found in 4ms (ActiveRecord: 0.4ms)
Started GET "/simple_cart/orders/11/checkout/payment" for 127.0.0.1 at 2016-03-12 17:19:09 +0200
Processing by SimpleCart::CheckoutController#show as HTML
Parameters: {"order_id"=>"11", "id"=>"payment"}
[1m[36mOrder Load (0.1ms)[0m [1mSELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1[0m [["id", 11]]
[1m[35mDelivery Load (0.1ms)[0m SELECT "deliveries".* FROM "deliveries" WHERE "deliveries"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mBillingAddress Load (0.1ms)[0m [1mSELECT "addresses".* FROM "addresses" WHERE "addresses"."type" IN ('BillingAddress') AND "addresses"."order_id" = ? LIMIT 1[0m [["order_id", 11]]
[1m[35mShippingAddress Load (0.1ms)[0m SELECT "addresses".* FROM "addresses" WHERE "addresses"."type" IN ('ShippingAddress') AND "addresses"."order_id" = ? LIMIT 1 [["order_id", 11]]
[1m[36mCreditCard Load (0.1ms)[0m [1mSELECT "credit_cards".* FROM "credit_cards" WHERE "credit_cards"."order_id" = ? LIMIT 1[0m [["order_id", 11]]
Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/_progress.html.haml (0.9ms)
[1m[35mCACHE (0.0ms)[0m SELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1 [["id", "11"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1[0m [["id", "11"]]
[1m[35mCACHE (0.0ms)[0m SELECT "deliveries".* FROM "deliveries" WHERE "deliveries"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1[0m [["id", "11"]]
[1m[35mCACHE (0.0ms)[0m SELECT "deliveries".* FROM "deliveries" WHERE "deliveries"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1[0m [["id", "11"]]
[1m[35mCACHE (0.0ms)[0m SELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1 [["id", "11"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "deliveries".* FROM "deliveries" WHERE "deliveries"."id" = ? LIMIT 1[0m [["id", 1]]
Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/_summary.html.haml (4.9ms)
Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/payment.html.haml within layouts/simple_cart/application (18.7ms)
Completed 200 OK in 56ms (Views: 51.6ms | ActiveRecord: 0.6ms)
Started PATCH "/simple_cart/orders/11/checkout/payment" for 127.0.0.1 at 2016-03-12 17:19:12 +0200
Processing by SimpleCart::CheckoutController#update as HTML
Parameters: {"utf8"=>"✓", "authenticity_token"=>"MSKpehRymM2Ww03PEIDpuIuJvTI0U3hAPpIuS7X6aWr3MpR2j6SUO5++5KQDxZDMyH//d7hzqV40HNUq2O3H+w==", "order"=>{"credit_card"=>{"number"=>"", "expiration_month"=>"01", "expiration_year"=>"2017", "cvv"=>"", "firstname"=>"", "lastname"=>""}}, "commit"=>"Continue", "order_id"=>"11", "id"=>"payment"}
[1m[35mOrder Load (0.2ms)[0m SELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1 [["id", 11]]
Unpermitted parameter: credit_card
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
[1m[35m (0.1ms)[0m commit transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
[1m[35m (0.1ms)[0m commit transaction
Redirected to http://localhost:3000/simple_cart/orders/11/checkout/confirm
Completed 302 Found in 3ms (ActiveRecord: 0.4ms)
Started GET "/simple_cart/orders/11/checkout/confirm" for 127.0.0.1 at 2016-03-12 17:19:12 +0200
Processing by SimpleCart::CheckoutController#show as HTML
Parameters: {"order_id"=>"11", "id"=>"confirm"}
[1m[36mOrder Load (0.1ms)[0m [1mSELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1[0m [["id", 11]]
[1m[35mCreditCard Load (0.1ms)[0m SELECT "credit_cards".* FROM "credit_cards" WHERE "credit_cards"."order_id" = ? LIMIT 1 [["order_id", 11]]
[1m[36mBillingAddress Load (0.2ms)[0m [1mSELECT "addresses".* FROM "addresses" WHERE "addresses"."type" IN ('BillingAddress') AND "addresses"."order_id" = ? LIMIT 1[0m [["order_id", 11]]
[1m[35mShippingAddress Load (0.1ms)[0m SELECT "addresses".* FROM "addresses" WHERE "addresses"."type" IN ('ShippingAddress') AND "addresses"."order_id" = ? LIMIT 1 [["order_id", 11]]
Redirected to http://localhost:3000/simple_cart/orders/11/checkout/payment
Completed 302 Found in 4ms (ActiveRecord: 0.5ms)
Started GET "/simple_cart/orders/11/checkout/payment" for 127.0.0.1 at 2016-03-12 17:19:12 +0200
Processing by SimpleCart::CheckoutController#show as HTML
Parameters: {"order_id"=>"11", "id"=>"payment"}
[1m[36mOrder Load (0.1ms)[0m [1mSELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1[0m [["id", 11]]
[1m[35mDelivery Load (0.1ms)[0m SELECT "deliveries".* FROM "deliveries" WHERE "deliveries"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mBillingAddress Load (0.1ms)[0m [1mSELECT "addresses".* FROM "addresses" WHERE "addresses"."type" IN ('BillingAddress') AND "addresses"."order_id" = ? LIMIT 1[0m [["order_id", 11]]
[1m[35mShippingAddress Load (0.1ms)[0m SELECT "addresses".* FROM "addresses" WHERE "addresses"."type" IN ('ShippingAddress') AND "addresses"."order_id" = ? LIMIT 1 [["order_id", 11]]
[1m[36mCreditCard Load (0.0ms)[0m [1mSELECT "credit_cards".* FROM "credit_cards" WHERE "credit_cards"."order_id" = ? LIMIT 1[0m [["order_id", 11]]
Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/_progress.html.haml (1.4ms)
[1m[35mCACHE (0.0ms)[0m SELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1 [["id", "11"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1[0m [["id", "11"]]
[1m[35mCACHE (0.0ms)[0m SELECT "deliveries".* FROM "deliveries" WHERE "deliveries"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1[0m [["id", "11"]]
[1m[35mCACHE (0.0ms)[0m SELECT "deliveries".* FROM "deliveries" WHERE "deliveries"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1[0m [["id", "11"]]
[1m[35mCACHE (0.0ms)[0m SELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1 [["id", "11"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "deliveries".* FROM "deliveries" WHERE "deliveries"."id" = ? LIMIT 1[0m [["id", 1]]
Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/_summary.html.haml (3.3ms)
Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/payment.html.haml within layouts/simple_cart/application (11.5ms)
Completed 200 OK in 27ms (Views: 23.3ms | ActiveRecord: 0.5ms)
Started PATCH "/simple_cart/orders/11/checkout/payment" for 127.0.0.1 at 2016-03-12 17:19:13 +0200
Processing by SimpleCart::CheckoutController#update as HTML
Parameters: {"utf8"=>"✓", "authenticity_token"=>"oweT/QN9vgULEoesgZ5U4n9W9H2aDZXyalPUM+HeUX5lF67xmKuy8wJvLseS2y2WPKC2OBYtROxg3S9SjMn/7w==", "order"=>{"credit_card"=>{"number"=>"", "expiration_month"=>"01", "expiration_year"=>"2017", "cvv"=>"", "firstname"=>"", "lastname"=>""}}, "commit"=>"Continue", "order_id"=>"11", "id"=>"payment"}
[1m[35mOrder Load (0.1ms)[0m SELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1 [["id", 11]]
Unpermitted parameter: credit_card
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
[1m[35m (0.1ms)[0m commit transaction
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
[1m[35m (0.1ms)[0m commit transaction
Redirected to http://localhost:3000/simple_cart/orders/11/checkout/confirm
Completed 302 Found in 6ms (ActiveRecord: 0.5ms)
Started GET "/simple_cart/orders/11/checkout/confirm" for 127.0.0.1 at 2016-03-12 17:19:13 +0200
Processing by SimpleCart::CheckoutController#show as HTML
Parameters: {"order_id"=>"11", "id"=>"confirm"}
[1m[36mOrder Load (0.1ms)[0m [1mSELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1[0m [["id", 11]]
[1m[35mCreditCard Load (0.1ms)[0m SELECT "credit_cards".* FROM "credit_cards" WHERE "credit_cards"."order_id" = ? LIMIT 1 [["order_id", 11]]
[1m[36mBillingAddress Load (0.2ms)[0m [1mSELECT "addresses".* FROM "addresses" WHERE "addresses"."type" IN ('BillingAddress') AND "addresses"."order_id" = ? LIMIT 1[0m [["order_id", 11]]
[1m[35mShippingAddress Load (0.3ms)[0m SELECT "addresses".* FROM "addresses" WHERE "addresses"."type" IN ('ShippingAddress') AND "addresses"."order_id" = ? LIMIT 1 [["order_id", 11]]
Redirected to http://localhost:3000/simple_cart/orders/11/checkout/payment
Completed 302 Found in 8ms (ActiveRecord: 0.8ms)
Started GET "/simple_cart/orders/11/checkout/payment" for 127.0.0.1 at 2016-03-12 17:19:13 +0200
Processing by SimpleCart::CheckoutController#show as HTML
Parameters: {"order_id"=>"11", "id"=>"payment"}
[1m[36mOrder Load (0.1ms)[0m [1mSELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1[0m [["id", 11]]
[1m[35mDelivery Load (0.2ms)[0m SELECT "deliveries".* FROM "deliveries" WHERE "deliveries"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mBillingAddress Load (0.1ms)[0m [1mSELECT "addresses".* FROM "addresses" WHERE "addresses"."type" IN ('BillingAddress') AND "addresses"."order_id" = ? LIMIT 1[0m [["order_id", 11]]
[1m[35mShippingAddress Load (0.1ms)[0m SELECT "addresses".* FROM "addresses" WHERE "addresses"."type" IN ('ShippingAddress') AND "addresses"."order_id" = ? LIMIT 1 [["order_id", 11]]
[1m[36mCreditCard Load (0.1ms)[0m [1mSELECT "credit_cards".* FROM "credit_cards" WHERE "credit_cards"."order_id" = ? LIMIT 1[0m [["order_id", 11]]
Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/_progress.html.haml (1.5ms)
[1m[35mCACHE (0.0ms)[0m SELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1 [["id", "11"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1[0m [["id", "11"]]
[1m[35mCACHE (0.0ms)[0m SELECT "deliveries".* FROM "deliveries" WHERE "deliveries"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1[0m [["id", "11"]]
[1m[35mCACHE (0.0ms)[0m SELECT "deliveries".* FROM "deliveries" WHERE "deliveries"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1[0m [["id", "11"]]
[1m[35mCACHE (0.0ms)[0m SELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1 [["id", "11"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "deliveries".* FROM "deliveries" WHERE "deliveries"."id" = ? LIMIT 1[0m [["id", 1]]
Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/_summary.html.haml (8.8ms)
Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/payment.html.haml within layouts/simple_cart/application (22.6ms)
Completed 200 OK in 55ms (Views: 48.3ms | ActiveRecord: 0.8ms)
Started PATCH "/simple_cart/orders/11/checkout/payment" for 127.0.0.1 at 2016-03-12 17:19:14 +0200
Processing by SimpleCart::CheckoutController#update as HTML
Parameters: {"utf8"=>"✓", "authenticity_token"=>"wzv0xMOod1LdTaoFcU0cQLBE0aMaDapYWtICcqTuV9kFK8nIWH57pNQwA25iCGU087KT5pYte0ZQXPkTyfn5SA==", "order"=>{"credit_card"=>{"number"=>"", "expiration_month"=>"01", "expiration_year"=>"2017", "cvv"=>"", "firstname"=>"", "lastname"=>""}}, "commit"=>"Continue", "order_id"=>"11", "id"=>"payment"}
[1m[35mOrder Load (0.1ms)[0m SELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1 [["id", 11]]
Unpermitted parameter: credit_card
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
[1m[35m (0.1ms)[0m commit transaction
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
[1m[35m (0.1ms)[0m commit transaction
Redirected to http://localhost:3000/simple_cart/orders/11/checkout/confirm
Completed 302 Found in 5ms (ActiveRecord: 0.5ms)
Started GET "/simple_cart/orders/11/checkout/confirm" for 127.0.0.1 at 2016-03-12 17:19:14 +0200
Processing by SimpleCart::CheckoutController#show as HTML
Parameters: {"order_id"=>"11", "id"=>"confirm"}
[1m[36mOrder Load (0.1ms)[0m [1mSELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1[0m [["id", 11]]
[1m[35mCreditCard Load (0.1ms)[0m SELECT "credit_cards".* FROM "credit_cards" WHERE "credit_cards"."order_id" = ? LIMIT 1 [["order_id", 11]]
[1m[36mBillingAddress Load (0.2ms)[0m [1mSELECT "addresses".* FROM "addresses" WHERE "addresses"."type" IN ('BillingAddress') AND "addresses"."order_id" = ? LIMIT 1[0m [["order_id", 11]]
[1m[35mShippingAddress Load (0.1ms)[0m SELECT "addresses".* FROM "addresses" WHERE "addresses"."type" IN ('ShippingAddress') AND "addresses"."order_id" = ? LIMIT 1 [["order_id", 11]]
Redirected to http://localhost:3000/simple_cart/orders/11/checkout/payment
Completed 302 Found in 5ms (ActiveRecord: 0.5ms)
Started GET "/simple_cart/orders/11/checkout/payment" for 127.0.0.1 at 2016-03-12 17:19:14 +0200
Processing by SimpleCart::CheckoutController#show as HTML
Parameters: {"order_id"=>"11", "id"=>"payment"}
[1m[36mOrder Load (0.1ms)[0m [1mSELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1[0m [["id", 11]]
[1m[35mDelivery Load (0.1ms)[0m SELECT "deliveries".* FROM "deliveries" WHERE "deliveries"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mBillingAddress Load (0.1ms)[0m [1mSELECT "addresses".* FROM "addresses" WHERE "addresses"."type" IN ('BillingAddress') AND "addresses"."order_id" = ? LIMIT 1[0m [["order_id", 11]]
[1m[35mShippingAddress Load (0.1ms)[0m SELECT "addresses".* FROM "addresses" WHERE "addresses"."type" IN ('ShippingAddress') AND "addresses"."order_id" = ? LIMIT 1 [["order_id", 11]]
[1m[36mCreditCard Load (0.1ms)[0m [1mSELECT "credit_cards".* FROM "credit_cards" WHERE "credit_cards"."order_id" = ? LIMIT 1[0m [["order_id", 11]]
Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/_progress.html.haml (1.6ms)
[1m[35mCACHE (0.0ms)[0m SELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1 [["id", "11"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1[0m [["id", "11"]]
[1m[35mCACHE (0.0ms)[0m SELECT "deliveries".* FROM "deliveries" WHERE "deliveries"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1[0m [["id", "11"]]
[1m[35mCACHE (0.0ms)[0m SELECT "deliveries".* FROM "deliveries" WHERE "deliveries"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1[0m [["id", "11"]]
[1m[35mCACHE (0.0ms)[0m SELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1 [["id", "11"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "deliveries".* FROM "deliveries" WHERE "deliveries"."id" = ? LIMIT 1[0m [["id", 1]]
Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/_summary.html.haml (4.1ms)
Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/payment.html.haml within layouts/simple_cart/application (16.2ms)
Completed 200 OK in 42ms (Views: 36.3ms | ActiveRecord: 0.5ms)
Started PATCH "/simple_cart/orders/11/checkout/payment" for 127.0.0.1 at 2016-03-12 17:19:15 +0200
Processing by SimpleCart::CheckoutController#update as HTML
Parameters: {"utf8"=>"✓", "authenticity_token"=>"IzJ/mlZ4JTvT5GPF1LhP6prRIayrB39RXn5xWHQB2XTlIkKWza4pzdqZyq7H/Tae2Sdj6Scnrk9U8Io5GRZ35Q==", "order"=>{"credit_card"=>{"number"=>"", "expiration_month"=>"01", "expiration_year"=>"2017", "cvv"=>"", "firstname"=>"", "lastname"=>""}}, "commit"=>"Continue", "order_id"=>"11", "id"=>"payment"}
[1m[35mOrder Load (0.2ms)[0m SELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1 [["id", 11]]
Unpermitted parameter: credit_card
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
[1m[35m (0.1ms)[0m commit transaction
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
[1m[35m (0.1ms)[0m commit transaction
Redirected to http://localhost:3000/simple_cart/orders/11/checkout/confirm
Completed 302 Found in 6ms (ActiveRecord: 0.5ms)
Started GET "/simple_cart/orders/11/checkout/confirm" for 127.0.0.1 at 2016-03-12 17:19:15 +0200
Processing by SimpleCart::CheckoutController#show as HTML
Parameters: {"order_id"=>"11", "id"=>"confirm"}
[1m[36mOrder Load (0.1ms)[0m [1mSELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1[0m [["id", 11]]
[1m[35mCreditCard Load (0.1ms)[0m SELECT "credit_cards".* FROM "credit_cards" WHERE "credit_cards"."order_id" = ? LIMIT 1 [["order_id", 11]]
[1m[36mBillingAddress Load (0.1ms)[0m [1mSELECT "addresses".* FROM "addresses" WHERE "addresses"."type" IN ('BillingAddress') AND "addresses"."order_id" = ? LIMIT 1[0m [["order_id", 11]]
[1m[35mShippingAddress Load (0.1ms)[0m SELECT "addresses".* FROM "addresses" WHERE "addresses"."type" IN ('ShippingAddress') AND "addresses"."order_id" = ? LIMIT 1 [["order_id", 11]]
Redirected to http://localhost:3000/simple_cart/orders/11/checkout/payment
Completed 302 Found in 6ms (ActiveRecord: 0.5ms)
Started GET "/simple_cart/orders/11/checkout/payment" for 127.0.0.1 at 2016-03-12 17:19:15 +0200
Processing by SimpleCart::CheckoutController#show as HTML
Parameters: {"order_id"=>"11", "id"=>"payment"}
[1m[36mOrder Load (0.1ms)[0m [1mSELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1[0m [["id", 11]]
[1m[35mDelivery Load (0.1ms)[0m SELECT "deliveries".* FROM "deliveries" WHERE "deliveries"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mBillingAddress Load (0.1ms)[0m [1mSELECT "addresses".* FROM "addresses" WHERE "addresses"."type" IN ('BillingAddress') AND "addresses"."order_id" = ? LIMIT 1[0m [["order_id", 11]]
[1m[35mShippingAddress Load (0.1ms)[0m SELECT "addresses".* FROM "addresses" WHERE "addresses"."type" IN ('ShippingAddress') AND "addresses"."order_id" = ? LIMIT 1 [["order_id", 11]]
[1m[36mCreditCard Load (0.1ms)[0m [1mSELECT "credit_cards".* FROM "credit_cards" WHERE "credit_cards"."order_id" = ? LIMIT 1[0m [["order_id", 11]]
Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/_progress.html.haml (2.4ms)
[1m[35mCACHE (0.0ms)[0m SELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1 [["id", "11"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1[0m [["id", "11"]]
[1m[35mCACHE (0.0ms)[0m SELECT "deliveries".* FROM "deliveries" WHERE "deliveries"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1[0m [["id", "11"]]
[1m[35mCACHE (0.0ms)[0m SELECT "deliveries".* FROM "deliveries" WHERE "deliveries"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1[0m [["id", "11"]]
[1m[35mCACHE (0.0ms)[0m SELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1 [["id", "11"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "deliveries".* FROM "deliveries" WHERE "deliveries"."id" = ? LIMIT 1[0m [["id", 1]]
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/payment.html.haml within layouts/simple_cart/application (13.4ms)
Completed 200 OK in 32ms (Views: 25.8ms | ActiveRecord: 0.6ms)
Started PATCH "/simple_cart/orders/11/checkout/payment" for 127.0.0.1 at 2016-03-12 17:20:12 +0200
Processing by SimpleCart::CheckoutController#update as HTML
Parameters: {"utf8"=>"✓", "authenticity_token"=>"MN+fL2fm+tldV5y+OZ9eNJfFGCu5VbCT7sCWcD2I9732z6Ij/DD2L1QqNdUq2idA1DNabjV1YY3kTm0RUJ9ZLA==", "order"=>{"credit_card"=>{"number"=>"1111111111111111", "expiration_month"=>"01", "expiration_year"=>"2017", "cvv"=>"222", "firstname"=>"3214", "lastname"=>"215"}}, "commit"=>"Continue", "order_id"=>"11", "id"=>"payment"}
[1m[35mOrder Load (0.1ms)[0m SELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1 [["id", 11]]
Unpermitted parameter: credit_card
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
[1m[35m (0.1ms)[0m commit transaction
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
[1m[35m (0.1ms)[0m commit transaction
Redirected to http://localhost:3000/simple_cart/orders/11/checkout/confirm
Completed 302 Found in 4ms (ActiveRecord: 0.5ms)
Started GET "/simple_cart/orders/11/checkout/confirm" for 127.0.0.1 at 2016-03-12 17:20:12 +0200
Processing by SimpleCart::CheckoutController#show as HTML
Parameters: {"order_id"=>"11", "id"=>"confirm"}
[1m[36mOrder Load (0.1ms)[0m [1mSELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1[0m [["id", 11]]
[1m[35mCreditCard Load (0.1ms)[0m SELECT "credit_cards".* FROM "credit_cards" WHERE "credit_cards"."order_id" = ? LIMIT 1 [["order_id", 11]]
[1m[36mBillingAddress Load (0.1ms)[0m [1mSELECT "addresses".* FROM "addresses" WHERE "addresses"."type" IN ('BillingAddress') AND "addresses"."order_id" = ? LIMIT 1[0m [["order_id", 11]]
[1m[35mShippingAddress Load (0.2ms)[0m SELECT "addresses".* FROM "addresses" WHERE "addresses"."type" IN ('ShippingAddress') AND "addresses"."order_id" = ? LIMIT 1 [["order_id", 11]]
Redirected to http://localhost:3000/simple_cart/orders/11/checkout/payment
Completed 302 Found in 7ms (ActiveRecord: 0.5ms)
Started GET "/simple_cart/orders/11/checkout/payment" for 127.0.0.1 at 2016-03-12 17:20:12 +0200
Processing by SimpleCart::CheckoutController#show as HTML
Parameters: {"order_id"=>"11", "id"=>"payment"}
[1m[36mOrder Load (0.1ms)[0m [1mSELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1[0m [["id", 11]]
[1m[35mDelivery Load (0.1ms)[0m SELECT "deliveries".* FROM "deliveries" WHERE "deliveries"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mBillingAddress Load (0.3ms)[0m [1mSELECT "addresses".* FROM "addresses" WHERE "addresses"."type" IN ('BillingAddress') AND "addresses"."order_id" = ? LIMIT 1[0m [["order_id", 11]]
[1m[35mShippingAddress Load (0.2ms)[0m SELECT "addresses".* FROM "addresses" WHERE "addresses"."type" IN ('ShippingAddress') AND "addresses"."order_id" = ? LIMIT 1 [["order_id", 11]]
[1m[36mCreditCard Load (0.1ms)[0m [1mSELECT "credit_cards".* FROM "credit_cards" WHERE "credit_cards"."order_id" = ? LIMIT 1[0m [["order_id", 11]]
Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/_progress.html.haml (1.0ms)
[1m[35mCACHE (0.0ms)[0m SELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1 [["id", "11"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1[0m [["id", "11"]]
[1m[35mCACHE (0.0ms)[0m SELECT "deliveries".* FROM "deliveries" WHERE "deliveries"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1[0m [["id", "11"]]
[1m[35mCACHE (0.0ms)[0m SELECT "deliveries".* FROM "deliveries" WHERE "deliveries"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1[0m [["id", "11"]]
[1m[35mCACHE (0.0ms)[0m SELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1 [["id", "11"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "deliveries".* FROM "deliveries" WHERE "deliveries"."id" = ? LIMIT 1[0m [["id", 1]]
Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/_summary.html.haml (4.4ms)
Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/payment.html.haml within layouts/simple_cart/application (12.9ms)
Completed 200 OK in 30ms (Views: 22.9ms | ActiveRecord: 0.8ms)
Started PATCH "/simple_cart/orders/11/checkout/payment" for 127.0.0.1 at 2016-03-12 17:20:14 +0200
Processing by SimpleCart::CheckoutController#update as HTML
Parameters: {"utf8"=>"✓", "authenticity_token"=>"JyAx+nBxXi3nzny0s88yNETspRLbZpXl411YeGuJI4DhMAz266dS2+6z1d+giktABxrnV1dGRPvp06MZBp6NEQ==", "order"=>{"credit_card"=>{"number"=>"", "expiration_month"=>"01", "expiration_year"=>"2017", "cvv"=>"", "firstname"=>"", "lastname"=>""}}, "commit"=>"Continue", "order_id"=>"11", "id"=>"payment"}
[1m[35mOrder Load (0.1ms)[0m SELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1 [["id", 11]]
Unpermitted parameter: credit_card
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
[1m[35m (0.1ms)[0m commit transaction
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
[1m[35m (0.1ms)[0m commit transaction
Redirected to http://localhost:3000/simple_cart/orders/11/checkout/confirm
Completed 302 Found in 4ms (ActiveRecord: 0.4ms)
Started GET "/simple_cart/orders/11/checkout/confirm" for 127.0.0.1 at 2016-03-12 17:20:14 +0200
Processing by SimpleCart::CheckoutController#show as HTML
Parameters: {"order_id"=>"11", "id"=>"confirm"}
[1m[36mOrder Load (0.1ms)[0m [1mSELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1[0m [["id", 11]]
[1m[35mCreditCard Load (0.0ms)[0m SELECT "credit_cards".* FROM "credit_cards" WHERE "credit_cards"."order_id" = ? LIMIT 1 [["order_id", 11]]
[1m[36mBillingAddress Load (0.1ms)[0m [1mSELECT "addresses".* FROM "addresses" WHERE "addresses"."type" IN ('BillingAddress') AND "addresses"."order_id" = ? LIMIT 1[0m [["order_id", 11]]
[1m[35mShippingAddress Load (0.1ms)[0m SELECT "addresses".* FROM "addresses" WHERE "addresses"."type" IN ('ShippingAddress') AND "addresses"."order_id" = ? LIMIT 1 [["order_id", 11]]
Redirected to http://localhost:3000/simple_cart/orders/11/checkout/payment
Completed 302 Found in 4ms (ActiveRecord: 0.3ms)
Started GET "/simple_cart/orders/11/checkout/payment" for 127.0.0.1 at 2016-03-12 17:20:14 +0200
Processing by SimpleCart::CheckoutController#show as HTML
Parameters: {"order_id"=>"11", "id"=>"payment"}
[1m[36mOrder Load (0.1ms)[0m [1mSELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1[0m [["id", 11]]
[1m[35mDelivery Load (0.1ms)[0m SELECT "deliveries".* FROM "deliveries" WHERE "deliveries"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mBillingAddress Load (0.1ms)[0m [1mSELECT "addresses".* FROM "addresses" WHERE "addresses"."type" IN ('BillingAddress') AND "addresses"."order_id" = ? LIMIT 1[0m [["order_id", 11]]
[1m[35mShippingAddress Load (0.1ms)[0m SELECT "addresses".* FROM "addresses" WHERE "addresses"."type" IN ('ShippingAddress') AND "addresses"."order_id" = ? LIMIT 1 [["order_id", 11]]
[1m[36mCreditCard Load (0.1ms)[0m [1mSELECT "credit_cards".* FROM "credit_cards" WHERE "credit_cards"."order_id" = ? LIMIT 1[0m [["order_id", 11]]
Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/_progress.html.haml (1.3ms)
[1m[35mCACHE (0.0ms)[0m SELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1 [["id", "11"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1[0m [["id", "11"]]
[1m[35mCACHE (0.0ms)[0m SELECT "deliveries".* FROM "deliveries" WHERE "deliveries"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1[0m [["id", "11"]]
[1m[35mCACHE (0.0ms)[0m SELECT "deliveries".* FROM "deliveries" WHERE "deliveries"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1[0m [["id", "11"]]
[1m[35mCACHE (0.0ms)[0m SELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1 [["id", "11"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "deliveries".* FROM "deliveries" WHERE "deliveries"."id" = ? LIMIT 1[0m [["id", 1]]
Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/_summary.html.haml (3.0ms)
Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/payment.html.haml within layouts/simple_cart/application (10.5ms)
Completed 200 OK in 25ms (Views: 21.5ms | ActiveRecord: 0.6ms)
[1m[35mOrder Load (0.5ms)[0m SELECT "orders".* FROM "orders" ORDER BY "orders"."id" ASC LIMIT 1
[1m[36mOrder Load (0.2ms)[0m [1mSELECT "orders".* FROM "orders" ORDER BY "orders"."id" ASC LIMIT 1[0m
[1m[35mOrder Load (0.2ms)[0m SELECT "orders".* FROM "orders" ORDER BY "orders"."id" ASC LIMIT 1
[1m[36mCreditCard Load (0.2ms)[0m [1mSELECT "credit_cards".* FROM "credit_cards" WHERE "credit_cards"."order_id" = ? LIMIT 1[0m [["order_id", 11]]
[1m[35mCreditCard Load (0.1ms)[0m SELECT "credit_cards".* FROM "credit_cards" ORDER BY "credit_cards"."id" ASC LIMIT 1
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
[1m[35mSQL (0.4ms)[0m INSERT INTO "credit_cards" ("number", "expiration_month", "expiration_year", "cvv", "firstname", "lastname", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["number", "1111111111111111"], ["expiration_month", "02"], ["expiration_year", "2019"], ["cvv", "123"], ["firstname", "s"], ["lastname", "gs"], ["created_at", "2016-03-12 15:23:04.498428"], ["updated_at", "2016-03-12 15:23:04.498428"]]
[1m[36m (63.1ms)[0m [1mcommit transaction[0m
[1m[35mCreditCard Load (0.3ms)[0m SELECT "credit_cards".* FROM "credit_cards" ORDER BY "credit_cards"."id" ASC LIMIT 1
[1m[36mOrder Load (0.3ms)[0m [1mSELECT "orders".* FROM "orders" ORDER BY "orders"."id" ASC LIMIT 1[0m
[1m[35mCreditCard Load (0.1ms)[0m SELECT "credit_cards".* FROM "credit_cards" WHERE "credit_cards"."order_id" = ? LIMIT 1 [["order_id", 11]]
[1m[36mCreditCard Load (0.2ms)[0m [1mSELECT "credit_cards".* FROM "credit_cards" ORDER BY "credit_cards"."id" ASC LIMIT 1[0m
[1m[35mOrder Load (0.3ms)[0m SELECT "orders".* FROM "orders" ORDER BY "orders"."id" ASC LIMIT 1
[1m[36mOrder Load (0.2ms)[0m [1mSELECT "orders".* FROM "orders" ORDER BY "orders"."id" ASC LIMIT 1[0m
[1m[35mCreditCard Load (0.2ms)[0m SELECT "credit_cards".* FROM "credit_cards" ORDER BY "credit_cards"."id" ASC LIMIT 1
[1m[36mCreditCard Load (0.1ms)[0m [1mSELECT "credit_cards".* FROM "credit_cards" WHERE "credit_cards"."order_id" = ? LIMIT 1[0m [["order_id", 11]]
[1m[35m (0.1ms)[0m begin transaction
[1m[36mSQL (0.3ms)[0m [1mUPDATE "credit_cards" SET "order_id" = ?, "updated_at" = ? WHERE "credit_cards"."id" = ?[0m [["order_id", 11], ["updated_at", "2016-03-12 15:23:37.685541"], ["id", 1]]
[1m[35m (61.5ms)[0m commit transaction
Started GET "/simple_cart/orders/11/checkout/payment" for 127.0.0.1 at 2016-03-12 19:09:16 +0200
Processing by SimpleCart::CheckoutController#show as HTML
Parameters: {"order_id"=>"11", "id"=>"payment"}
[1m[35mOrder Load (0.2ms)[0m SELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1 [["id", 11]]
[1m[36mDelivery Load (0.1ms)[0m [1mSELECT "deliveries".* FROM "deliveries" WHERE "deliveries"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mBillingAddress Load (0.1ms)[0m SELECT "addresses".* FROM "addresses" WHERE "addresses"."type" IN ('BillingAddress') AND "addresses"."order_id" = ? LIMIT 1 [["order_id", 11]]
[1m[36mShippingAddress Load (0.1ms)[0m [1mSELECT "addresses".* FROM "addresses" WHERE "addresses"."type" IN ('ShippingAddress') AND "addresses"."order_id" = ? LIMIT 1[0m [["order_id", 11]]
[1m[35mCreditCard Load (0.1ms)[0m SELECT "credit_cards".* FROM "credit_cards" WHERE "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 (0.9ms)
[1m[36mCACHE (0.0ms)[0m [1mSELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1[0m [["id", "11"]]
[1m[35mCACHE (0.0ms)[0m SELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1 [["id", "11"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "deliveries".* FROM "deliveries" WHERE "deliveries"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mCACHE (0.0ms)[0m SELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1 [["id", "11"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "deliveries".* FROM "deliveries" WHERE "deliveries"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mCACHE (0.0ms)[0m SELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1 [["id", "11"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1[0m [["id", "11"]]
[1m[35mCACHE (0.0ms)[0m SELECT "deliveries".* FROM "deliveries" WHERE "deliveries"."id" = ? LIMIT 1 [["id", 1]]
Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/_summary.html.haml (4.9ms)
Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/payment.html.haml within layouts/simple_cart/application (11.4ms)
Completed 200 OK in 27ms (Views: 21.6ms | ActiveRecord: 0.7ms)
Started GET "/assets/simple_cart/application.self-2f12d59583468bdcee27c6046669f62a778d265fc91cf385e5d36e9189ac822e.css?body=1" for 127.0.0.1 at 2016-03-12 19:09:16 +0200
Started GET "/assets/simple_cart/application.self-8f06a73c35179188914ab50e057157639fce1401c1cdca640ac9cec33746fc5b.js?body=1" for 127.0.0.1 at 2016-03-12 19:09:16 +0200
Started GET "/simple_cart/orders/11/checkout/payment" for 127.0.0.1 at 2016-03-12 19:10:56 +0200
Processing by SimpleCart::CheckoutController#show as HTML
Parameters: {"order_id"=>"11", "id"=>"payment"}
[1m[36mOrder Load (0.1ms)[0m [1mSELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1[0m [["id", 11]]
[1m[35mDelivery Load (0.1ms)[0m SELECT "deliveries".* FROM "deliveries" WHERE "deliveries"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mBillingAddress Load (0.1ms)[0m [1mSELECT "addresses".* FROM "addresses" WHERE "addresses"."type" IN ('BillingAddress') AND "addresses"."order_id" = ? LIMIT 1[0m [["order_id", 11]]
[1m[35mShippingAddress Load (0.1ms)[0m SELECT "addresses".* FROM "addresses" WHERE "addresses"."type" IN ('ShippingAddress') AND "addresses"."order_id" = ? LIMIT 1 [["order_id", 11]]
[1m[36mCreditCard Load (0.0ms)[0m [1mSELECT "credit_cards".* FROM "credit_cards" WHERE "credit_cards"."order_id" = ? LIMIT 1[0m [["order_id", 11]]
Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/_progress.html.haml (1.1ms)
[1m[35mCACHE (0.0ms)[0m SELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1 [["id", "11"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1[0m [["id", "11"]]
[1m[35mCACHE (0.0ms)[0m SELECT "deliveries".* FROM "deliveries" WHERE "deliveries"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1[0m [["id", "11"]]
[1m[35mCACHE (0.0ms)[0m SELECT "deliveries".* FROM "deliveries" WHERE "deliveries"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1[0m [["id", "11"]]
[1m[35mCACHE (0.0ms)[0m SELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1 [["id", "11"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "deliveries".* FROM "deliveries" WHERE "deliveries"."id" = ? LIMIT 1[0m [["id", 1]]
Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/_summary.html.haml (3.1ms)
Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/payment.html.haml within layouts/simple_cart/application (10.7ms)
Completed 200 OK in 25ms (Views: 22.1ms | ActiveRecord: 0.4ms)
Started GET "/assets/simple_cart/application.self-2f12d59583468bdcee27c6046669f62a778d265fc91cf385e5d36e9189ac822e.css?body=1" for 127.0.0.1 at 2016-03-12 19:10:56 +0200
Started GET "/assets/simple_cart/application.self-8f06a73c35179188914ab50e057157639fce1401c1cdca640ac9cec33746fc5b.js?body=1" for 127.0.0.1 at 2016-03-12 19:10:56 +0200
Started GET "/simple_cart/orders/11/checkout/delivery" for 127.0.0.1 at 2016-03-12 19:11:15 +0200
Processing by SimpleCart::CheckoutController#show as HTML
Parameters: {"order_id"=>"11", "id"=>"delivery"}
[1m[35mOrder Load (0.1ms)[0m SELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1 [["id", 11]]
[1m[36mShippingAddress Load (0.1ms)[0m [1mSELECT "addresses".* FROM "addresses" WHERE "addresses"."type" IN ('ShippingAddress') AND "addresses"."order_id" = ? LIMIT 1[0m [["order_id", 11]]
[1m[35mBillingAddress Load (0.2ms)[0m SELECT "addresses".* FROM "addresses" WHERE "addresses"."type" IN ('BillingAddress') AND "addresses"."order_id" = ? LIMIT 1 [["order_id", 11]]
[1m[36mCreditCard Load (0.2ms)[0m [1mSELECT "credit_cards".* FROM "credit_cards" WHERE "credit_cards"."order_id" = ? LIMIT 1[0m [["order_id", 11]]
Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/_progress.html.haml (1.3ms)
[1m[35mDelivery Load (0.2ms)[0m SELECT "deliveries".* FROM "deliveries"
[1m[36mDelivery Load (0.2ms)[0m [1mSELECT "deliveries".* FROM "deliveries" ORDER BY "deliveries"."id" ASC LIMIT 1[0m
[1m[35mCACHE (0.0ms)[0m SELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1 [["id", "11"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1[0m [["id", "11"]]
[1m[35mDelivery Load (0.1ms)[0m SELECT "deliveries".* FROM "deliveries" WHERE "deliveries"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1[0m [["id", "11"]]
[1m[35mCACHE (0.0ms)[0m SELECT "deliveries".* FROM "deliveries" WHERE "deliveries"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1[0m [["id", "11"]]
[1m[35mCACHE (0.0ms)[0m SELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1 [["id", "11"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "deliveries".* FROM "deliveries" WHERE "deliveries"."id" = ? LIMIT 1[0m [["id", 1]]
Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/_summary.html.haml (4.0ms)
Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/delivery.html.haml within layouts/simple_cart/application (10.5ms)
Completed 200 OK in 34ms (Views: 28.4ms | ActiveRecord: 1.2ms)
Started PATCH "/simple_cart/orders/11/checkout/delivery" for 127.0.0.1 at 2016-03-12 19:11:16 +0200
Processing by SimpleCart::CheckoutController#update as HTML
Parameters: {"utf8"=>"✓", "authenticity_token"=>"cV5TVWSjmX0htVVw6gllz3590+D1hHQN3JKk1H660n23Tm5Z/3WViyjI/Bv5TBy7PYuRpXmkpRPWHF+1E6187A==", "order"=>{"delivery_id"=>"1"}, "commit"=>"Continue", "order_id"=>"11", "id"=>"delivery"}
[1m[35mOrder Load (0.1ms)[0m SELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1 [["id", 11]]
[1m[36mDelivery Load (0.1ms)[0m [1mSELECT "deliveries".* FROM "deliveries" WHERE "deliveries"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35m (0.1ms)[0m begin transaction
[1m[36m (0.1ms)[0m [1mcommit transaction[0m
Redirected to http://localhost:3000/simple_cart/orders/11/checkout/payment
Completed 302 Found in 4ms (ActiveRecord: 0.4ms)
Started GET "/simple_cart/orders/11/checkout/payment" for 127.0.0.1 at 2016-03-12 19:11:16 +0200
Processing by SimpleCart::CheckoutController#show as HTML
Parameters: {"order_id"=>"11", "id"=>"payment"}
[1m[35mOrder Load (0.1ms)[0m SELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1 [["id", 11]]
[1m[36mDelivery Load (0.1ms)[0m [1mSELECT "deliveries".* FROM "deliveries" WHERE "deliveries"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mBillingAddress Load (0.1ms)[0m SELECT "addresses".* FROM "addresses" WHERE "addresses"."type" IN ('BillingAddress') AND "addresses"."order_id" = ? LIMIT 1 [["order_id", 11]]
[1m[36mShippingAddress Load (0.1ms)[0m [1mSELECT "addresses".* FROM "addresses" WHERE "addresses"."type" IN ('ShippingAddress') AND "addresses"."order_id" = ? LIMIT 1[0m [["order_id", 11]]
[1m[35mCreditCard Load (0.2ms)[0m SELECT "credit_cards".* FROM "credit_cards" WHERE "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)
[1m[36mCACHE (0.0ms)[0m [1mSELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1[0m [["id", "11"]]
[1m[35mCACHE (0.0ms)[0m SELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1 [["id", "11"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "deliveries".* FROM "deliveries" WHERE "deliveries"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mCACHE (0.0ms)[0m SELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1 [["id", "11"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "deliveries".* FROM "deliveries" WHERE "deliveries"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mCACHE (0.0ms)[0m SELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1 [["id", "11"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1[0m [["id", "11"]]
[1m[35mCACHE (0.0ms)[0m SELECT "deliveries".* FROM "deliveries" WHERE "deliveries"."id" = ? LIMIT 1 [["id", 1]]
Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/_summary.html.haml (3.1ms)
Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/payment.html.haml within layouts/simple_cart/application (10.4ms)
Completed 200 OK in 25ms (Views: 21.2ms | ActiveRecord: 0.5ms)
Started PATCH "/simple_cart/orders/11/checkout/payment" for 127.0.0.1 at 2016-03-12 19:11:24 +0200
Processing by SimpleCart::CheckoutController#update as HTML
Parameters: {"utf8"=>"✓", "authenticity_token"=>"38OP00kuA5WMkFZBWHy6s6OVKK0MFoL4E3bJBEujGiAZ07Lf0vgPY4Xt/ypLOcPH4GNq6IA2U+YZ+DJlJrS0sQ==", "order"=>{"credit_card"=>{"number"=>"1111111111111111", "expiration_month"=>"01", "expiration_year"=>"2017", "cvv"=>"222", "firstname"=>"42124", "lastname"=>"5251"}}, "commit"=>"Continue", "order_id"=>"11", "id"=>"payment"}
[1m[36mOrder Load (0.1ms)[0m [1mSELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1[0m [["id", 11]]
Unpermitted parameter: credit_card
[1m[35m (0.1ms)[0m begin transaction
[1m[36m (0.1ms)[0m [1mcommit transaction[0m
[1m[35m (0.0ms)[0m begin transaction
[1m[36m (0.0ms)[0m [1mcommit transaction[0m
Redirected to http://localhost:3000/simple_cart/orders/11/checkout/confirm
Completed 302 Found in 5ms (ActiveRecord: 0.4ms)
Started GET "/simple_cart/orders/11/checkout/confirm" for 127.0.0.1 at 2016-03-12 19:11:24 +0200
Processing by SimpleCart::CheckoutController#show as HTML
Parameters: {"order_id"=>"11", "id"=>"confirm"}
[1m[35mOrder Load (0.1ms)[0m SELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1 [["id", 11]]
[1m[36mCreditCard Load (0.1ms)[0m [1mSELECT "credit_cards".* FROM "credit_cards" WHERE "credit_cards"."order_id" = ? LIMIT 1[0m [["order_id", 11]]
[1m[35mBillingAddress Load (0.1ms)[0m SELECT "addresses".* FROM "addresses" WHERE "addresses"."type" IN ('BillingAddress') AND "addresses"."order_id" = ? LIMIT 1 [["order_id", 11]]
[1m[36mShippingAddress Load (0.1ms)[0m [1mSELECT "addresses".* FROM "addresses" WHERE "addresses"."type" IN ('ShippingAddress') AND "addresses"."order_id" = ? LIMIT 1[0m [["order_id", 11]]
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/_overview.html.haml (6.9ms)
Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/confirm.html.haml within layouts/simple_cart/application (17.3ms)
Completed 500 Internal Server Error in 22ms (ActiveRecord: 0.4ms)
ActionView::Template::Error (uninitialized constant ActionView::CompiledTemplates::Country):
32: %br
33: = @order.shipping_address.phone
34: %br
35: = Country.find(@order.shipping_address.country).name
36: .col-md-3.col-sm-3
37: %h4
38: Shipments
/home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/_overview.html.haml:35:in `__home_leksster__uby__uby_arage__mazon_simple_cart_app_views_simple_cart_checkout__overview_html_haml___3123047885338021685_69979295664960'
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/partial_renderer.rb:339:in `render_partial'
actionview (4.2.5.2) lib/action_view/renderer/partial_renderer.rb:310:in `block in render'
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/partial_renderer.rb:309:in `render'
actionview (4.2.5.2) lib/action_view/renderer/renderer.rb:51:in `render_partial'
actionview (4.2.5.2) lib/action_view/helpers/rendering_helper.rb:35:in `render'
haml (4.0.7) lib/haml/helpers/action_view_mods.rb:10:in `block in render_with_haml'
haml (4.0.7) lib/haml/helpers.rb:89:in `non_haml'
haml (4.0.7) lib/haml/helpers/action_view_mods.rb:10:in `render_with_haml'
/home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/confirm.html.haml:7:in `__home_leksster__uby__uby_arage__mazon_simple_cart_app_views_simple_cart_checkout_confirm_html_haml__1841643945308710642_69979297701400'
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'
wicked (1.2.1) lib/wicked/controller/concerns/render_redirect.rb:29:in `render_step'
wicked (1.2.1) lib/wicked/controller/concerns/render_redirect.rb:11:in `render_wizard'
/home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/controllers/simple_cart/checkout_controller.rb:23:in `show'
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: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.1ms)
Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (3.4ms)
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/template_error.html.erb within rescues/layout (20.9ms)
Started GET "/simple_cart/orders/11/checkout/payment" for 127.0.0.1 at 2016-03-12 19:12:04 +0200
Processing by SimpleCart::CheckoutController#show as HTML
Parameters: {"order_id"=>"11", "id"=>"payment"}
[1m[35mOrder Load (0.1ms)[0m SELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1 [["id", 11]]
[1m[36mDelivery Load (0.1ms)[0m [1mSELECT "deliveries".* FROM "deliveries" WHERE "deliveries"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mBillingAddress Load (0.1ms)[0m SELECT "addresses".* FROM "addresses" WHERE "addresses"."type" IN ('BillingAddress') AND "addresses"."order_id" = ? LIMIT 1 [["order_id", 11]]
[1m[36mShippingAddress Load (0.1ms)[0m [1mSELECT "addresses".* FROM "addresses" WHERE "addresses"."type" IN ('ShippingAddress') AND "addresses"."order_id" = ? LIMIT 1[0m [["order_id", 11]]
[1m[35mCreditCard Load (0.1ms)[0m SELECT "credit_cards".* FROM "credit_cards" WHERE "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 (0.9ms)
Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/payment.html.haml within layouts/simple_cart/application (11.1ms)
Completed 200 OK in 26ms (Views: 21.5ms | ActiveRecord: 0.6ms)
Started PATCH "/simple_cart/orders/11/checkout/payment" for 127.0.0.1 at 2016-03-12 19:12:06 +0200
Processing by SimpleCart::CheckoutController#update as HTML
Parameters: {"utf8"=>"✓", "authenticity_token"=>"OwV5VrvBzBuoZOgjVUyRdgZRr+E4BQPBfRPCYcDOCrX9FURaIBfA7aEZQUhGCegCRaftpLQl0t93nTkArdmkJA==", "order"=>{"credit_card"=>{"number"=>"1111111111111111", "expiration_month"=>"01", "expiration_year"=>"2017", "cvv"=>"222", "firstname"=>"42124", "lastname"=>"5251"}}, "commit"=>"Continue", "order_id"=>"11", "id"=>"payment"}
[1m[36mOrder Load (0.1ms)[0m [1mSELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1[0m [["id", 11]]
Unpermitted parameter: credit_card
[1m[35m (0.1ms)[0m begin transaction
[1m[36m (0.1ms)[0m [1mcommit transaction[0m
[1m[35m (0.1ms)[0m begin transaction
[1m[36m (0.1ms)[0m [1mcommit transaction[0m
Redirected to http://localhost:3000/simple_cart/orders/11/checkout/confirm
Completed 302 Found in 4ms (ActiveRecord: 0.4ms)
Started GET "/simple_cart/orders/11/checkout/confirm" for 127.0.0.1 at 2016-03-12 19:12:06 +0200
Processing by SimpleCart::CheckoutController#show as HTML
Parameters: {"order_id"=>"11", "id"=>"confirm"}
[1m[35mOrder Load (0.1ms)[0m SELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1 [["id", 11]]
[1m[36mCreditCard Load (0.1ms)[0m [1mSELECT "credit_cards".* FROM "credit_cards" WHERE "credit_cards"."order_id" = ? LIMIT 1[0m [["order_id", 11]]
[1m[35mBillingAddress Load (0.1ms)[0m SELECT "addresses".* FROM "addresses" WHERE "addresses"."type" IN ('BillingAddress') AND "addresses"."order_id" = ? LIMIT 1 [["order_id", 11]]
[1m[36mShippingAddress Load (0.1ms)[0m [1mSELECT "addresses".* FROM "addresses" WHERE "addresses"."type" IN ('ShippingAddress') AND "addresses"."order_id" = ? LIMIT 1[0m [["order_id", 11]]
Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/_progress.html.haml (0.8ms)
Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/_overview.html.haml (1.9ms)
Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/confirm.html.haml within layouts/simple_cart/application (4.1ms)
Completed 500 Internal Server Error in 8ms (ActiveRecord: 0.3ms)
ActionView::Template::Error (uninitialized constant ActionView::CompiledTemplates::Country):
32: %br
33: = @order.shipping_address.phone
34: %br
35: = Country.find(@order.shipping_address.country).name
36: .col-md-3.col-sm-3
37: %h4
38: Shipments
/home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/_overview.html.haml:35:in `__home_leksster__uby__uby_arage__mazon_simple_cart_app_views_simple_cart_checkout__overview_html_haml___3123047885338021685_69979295664960'
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/partial_renderer.rb:339:in `render_partial'
actionview (4.2.5.2) lib/action_view/renderer/partial_renderer.rb:310:in `block in render'
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/partial_renderer.rb:309:in `render'
actionview (4.2.5.2) lib/action_view/renderer/renderer.rb:51:in `render_partial'
actionview (4.2.5.2) lib/action_view/helpers/rendering_helper.rb:35:in `render'
haml (4.0.7) lib/haml/helpers/action_view_mods.rb:10:in `block in render_with_haml'
haml (4.0.7) lib/haml/helpers.rb:89:in `non_haml'
haml (4.0.7) lib/haml/helpers/action_view_mods.rb:10:in `render_with_haml'
/home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/confirm.html.haml:7:in `__home_leksster__uby__uby_arage__mazon_simple_cart_app_views_simple_cart_checkout_confirm_html_haml__1841643945308710642_69979297701400'
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'
wicked (1.2.1) lib/wicked/controller/concerns/render_redirect.rb:29:in `render_step'
wicked (1.2.1) lib/wicked/controller/concerns/render_redirect.rb:11:in `render_wizard'
/home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/controllers/simple_cart/checkout_controller.rb:23:in `show'
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: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.1ms)
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 (1.0ms)
Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/rescues/template_error.html.erb within rescues/layout (20.0ms)
Started GET "/simple_cart/orders/11/checkout/payment" for 127.0.0.1 at 2016-03-12 19:12:28 +0200
Processing by SimpleCart::CheckoutController#show as HTML
Parameters: {"order_id"=>"11", "id"=>"payment"}
[1m[35mOrder Load (0.1ms)[0m SELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1 [["id", 11]]
[1m[36mDelivery Load (0.1ms)[0m [1mSELECT "deliveries".* FROM "deliveries" WHERE "deliveries"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mBillingAddress Load (0.1ms)[0m SELECT "addresses".* FROM "addresses" WHERE "addresses"."type" IN ('BillingAddress') AND "addresses"."order_id" = ? LIMIT 1 [["order_id", 11]]
[1m[36mShippingAddress Load (0.1ms)[0m [1mSELECT "addresses".* FROM "addresses" WHERE "addresses"."type" IN ('ShippingAddress') AND "addresses"."order_id" = ? LIMIT 1[0m [["order_id", 11]]
[1m[35mCreditCard Load (0.1ms)[0m SELECT "credit_cards".* FROM "credit_cards" WHERE "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.3ms)
Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/payment.html.haml within layouts/simple_cart/application (7.4ms)
Completed 200 OK in 23ms (Views: 18.1ms | ActiveRecord: 0.5ms)
Started GET "/simple_cart/orders/11/checkout/payment" for 127.0.0.1 at 2016-03-12 19:12:30 +0200
Processing by SimpleCart::CheckoutController#show as HTML
Parameters: {"order_id"=>"11", "id"=>"payment"}
[1m[36mOrder Load (0.1ms)[0m [1mSELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1[0m [["id", 11]]
[1m[35mDelivery Load (0.1ms)[0m SELECT "deliveries".* FROM "deliveries" WHERE "deliveries"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mBillingAddress Load (0.1ms)[0m [1mSELECT "addresses".* FROM "addresses" WHERE "addresses"."type" IN ('BillingAddress') AND "addresses"."order_id" = ? LIMIT 1[0m [["order_id", 11]]
[1m[35mShippingAddress Load (0.1ms)[0m SELECT "addresses".* FROM "addresses" WHERE "addresses"."type" IN ('ShippingAddress') AND "addresses"."order_id" = ? LIMIT 1 [["order_id", 11]]
[1m[36mCreditCard Load (0.1ms)[0m [1mSELECT "credit_cards".* FROM "credit_cards" WHERE "credit_cards"."order_id" = ? LIMIT 1[0m [["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/payment.html.haml within layouts/simple_cart/application (7.3ms)
Completed 200 OK in 22ms (Views: 18.6ms | ActiveRecord: 0.4ms)
Started GET "/assets/simple_cart/application.self-2f12d59583468bdcee27c6046669f62a778d265fc91cf385e5d36e9189ac822e.css?body=1" for 127.0.0.1 at 2016-03-12 19:12:30 +0200
Started GET "/assets/simple_cart/application.self-8f06a73c35179188914ab50e057157639fce1401c1cdca640ac9cec33746fc5b.js?body=1" for 127.0.0.1 at 2016-03-12 19:12:30 +0200
Started PATCH "/simple_cart/orders/11/checkout/payment" for 127.0.0.1 at 2016-03-12 19:12:33 +0200
Processing by SimpleCart::CheckoutController#update as HTML
Parameters: {"utf8"=>"✓", "authenticity_token"=>"Ks9iRWWWHM4GBYfYD8VV1sxobBDofFO0oqMKVfBDtkfs319J/kAQOA94LrMcgCyij54uVWRcgqqoLfE0nVQY1g==", "order"=>{"credit_card"=>{"number"=>"", "expiration_month"=>"01", "expiration_year"=>"2017", "cvv"=>"", "firstname"=>"", "lastname"=>""}}, "commit"=>"Continue", "order_id"=>"11", "id"=>"payment"}
[1m[35mOrder Load (0.1ms)[0m SELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1 [["id", 11]]
Unpermitted parameter: credit_card
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
[1m[35m (0.1ms)[0m commit transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
[1m[35m (0.1ms)[0m commit transaction
Redirected to http://localhost:3000/simple_cart/orders/11/checkout/confirm
Completed 302 Found in 3ms (ActiveRecord: 0.3ms)
Started GET "/simple_cart/orders/11/checkout/confirm" for 127.0.0.1 at 2016-03-12 19:12:33 +0200
Processing by SimpleCart::CheckoutController#show as HTML
Parameters: {"order_id"=>"11", "id"=>"confirm"}
[1m[36mOrder Load (0.1ms)[0m [1mSELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1[0m [["id", 11]]
[1m[35mCreditCard Load (0.1ms)[0m SELECT "credit_cards".* FROM "credit_cards" WHERE "credit_cards"."order_id" = ? LIMIT 1 [["order_id", 11]]
[1m[36mBillingAddress Load (0.1ms)[0m [1mSELECT "addresses".* FROM "addresses" WHERE "addresses"."type" IN ('BillingAddress') AND "addresses"."order_id" = ? LIMIT 1[0m [["order_id", 11]]
[1m[35mShippingAddress Load (0.1ms)[0m SELECT "addresses".* FROM "addresses" WHERE "addresses"."type" IN ('ShippingAddress') AND "addresses"."order_id" = ? LIMIT 1 [["order_id", 11]]
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/_overview.html.haml (5.7ms)
Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/confirm.html.haml within layouts/simple_cart/application (7.9ms)
Completed 500 Internal Server Error in 12ms (ActiveRecord: 0.3ms)
ActionView::Template::Error (undefined method `name' for #):
32: %br
33: = @order.shipping_address.phone
34: %br
35: = @order.shipping_address.name
36: .col-md-3.col-sm-3
37: %h4
38: Shipments
activemodel (4.2.5.2) lib/active_model/attribute_methods.rb:433:in `method_missing'
/home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/_overview.html.haml:35:in `__home_leksster__uby__uby_arage__mazon_simple_cart_app_views_simple_cart_checkout__overview_html_haml___3123047885338021685_69979246699900'
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/partial_renderer.rb:339:in `render_partial'
actionview (4.2.5.2) lib/action_view/renderer/partial_renderer.rb:310:in `block in render'
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/partial_renderer.rb:309:in `render'
actionview (4.2.5.2) lib/action_view/renderer/renderer.rb:51:in `render_partial'
actionview (4.2.5.2) lib/action_view/helpers/rendering_helper.rb:35:in `render'
haml (4.0.7) lib/haml/helpers/action_view_mods.rb:10:in `block in render_with_haml'
haml (4.0.7) lib/haml/helpers.rb:89:in `non_haml'
haml (4.0.7) lib/haml/helpers/action_view_mods.rb:10:in `render_with_haml'
/home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/confirm.html.haml:7:in `__home_leksster__uby__uby_arage__mazon_simple_cart_app_views_simple_cart_checkout_confirm_html_haml__1841643945308710642_69979297701400'
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'
wicked (1.2.1) lib/wicked/controller/concerns/render_redirect.rb:29:in `render_step'
wicked (1.2.1) lib/wicked/controller/concerns/render_redirect.rb:11:in `render_wizard'
/home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/controllers/simple_cart/checkout_controller.rb:23:in `show'
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: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.7ms)
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.5ms)
Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (1.0ms)
Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/rescues/template_error.html.erb within rescues/layout (20.7ms)
Started GET "/simple_cart/orders/11/checkout/confirm" for 127.0.0.1 at 2016-03-12 19:14:41 +0200
Processing by SimpleCart::CheckoutController#show as HTML
Parameters: {"order_id"=>"11", "id"=>"confirm"}
[1m[36mOrder Load (0.1ms)[0m [1mSELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1[0m [["id", 11]]
[1m[35mCreditCard Load (0.1ms)[0m SELECT "credit_cards".* FROM "credit_cards" WHERE "credit_cards"."order_id" = ? LIMIT 1 [["order_id", 11]]
[1m[36mBillingAddress Load (0.1ms)[0m [1mSELECT "addresses".* FROM "addresses" WHERE "addresses"."type" IN ('BillingAddress') AND "addresses"."order_id" = ? LIMIT 1[0m [["order_id", 11]]
[1m[35mShippingAddress Load (0.1ms)[0m SELECT "addresses".* FROM "addresses" WHERE "addresses"."type" IN ('ShippingAddress') AND "addresses"."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/_overview.html.haml (7.7ms)
Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/confirm.html.haml within layouts/simple_cart/application (10.3ms)
Completed 500 Internal Server Error in 15ms (ActiveRecord: 0.3ms)
ActionView::Template::Error (undefined method `shipping' for #):
38: Shipments
39: = link_to '(edit)', wizard_path(:delivery)
40: %p
41: = @order.shipping.company
42: %br
43: = @order.shipping.costs
44: .col-md-3.col-sm-3
activemodel (4.2.5.2) lib/active_model/attribute_methods.rb:433:in `method_missing'
/home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/_overview.html.haml:41:in `__home_leksster__uby__uby_arage__mazon_simple_cart_app_views_simple_cart_checkout__overview_html_haml___3123047885338021685_69979246554520'
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/partial_renderer.rb:339:in `render_partial'
actionview (4.2.5.2) lib/action_view/renderer/partial_renderer.rb:310:in `block in render'
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/partial_renderer.rb:309:in `render'
actionview (4.2.5.2) lib/action_view/renderer/renderer.rb:51:in `render_partial'
actionview (4.2.5.2) lib/action_view/helpers/rendering_helper.rb:35:in `render'
haml (4.0.7) lib/haml/helpers/action_view_mods.rb:10:in `block in render_with_haml'
haml (4.0.7) lib/haml/helpers.rb:89:in `non_haml'
haml (4.0.7) lib/haml/helpers/action_view_mods.rb:10:in `render_with_haml'
/home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/confirm.html.haml:7:in `__home_leksster__uby__uby_arage__mazon_simple_cart_app_views_simple_cart_checkout_confirm_html_haml__1841643945308710642_69979297701400'
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'
wicked (1.2.1) lib/wicked/controller/concerns/render_redirect.rb:29:in `render_step'
wicked (1.2.1) lib/wicked/controller/concerns/render_redirect.rb:11:in `render_wizard'
/home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/controllers/simple_cart/checkout_controller.rb:23:in `show'
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: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 (6.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.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/template_error.html.erb within rescues/layout (20.2ms)
Started GET "/simple_cart/orders/11/checkout/confirm" for 127.0.0.1 at 2016-03-12 19:14:59 +0200
Processing by SimpleCart::CheckoutController#show as HTML
Parameters: {"order_id"=>"11", "id"=>"confirm"}
[1m[36mOrder Load (0.1ms)[0m [1mSELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1[0m [["id", 11]]
[1m[35mCreditCard Load (0.1ms)[0m SELECT "credit_cards".* FROM "credit_cards" WHERE "credit_cards"."order_id" = ? LIMIT 1 [["order_id", 11]]
[1m[36mBillingAddress Load (0.1ms)[0m [1mSELECT "addresses".* FROM "addresses" WHERE "addresses"."type" IN ('BillingAddress') AND "addresses"."order_id" = ? LIMIT 1[0m [["order_id", 11]]
[1m[35mShippingAddress Load (0.1ms)[0m SELECT "addresses".* FROM "addresses" WHERE "addresses"."type" IN ('ShippingAddress') AND "addresses"."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)
[1m[36mDelivery Load (0.1ms)[0m [1mSELECT "deliveries".* FROM "deliveries" WHERE "deliveries"."id" = ? LIMIT 1[0m [["id", 1]]
Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/_overview.html.haml (12.4ms)
[1m[35mOrderItem Exists (0.2ms)[0m SELECT 1 AS one FROM "order_items" WHERE "order_items"."order_id" = ? LIMIT 1 [["order_id", "11"]]
[1m[36mOrderItem Load (0.1ms)[0m [1mSELECT "order_items".* FROM "order_items" WHERE "order_items"."order_id" = ?[0m [["order_id", "11"]]
Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/confirm.html.haml within layouts/simple_cart/application (70.1ms)
Completed 500 Internal Server Error in 75ms (ActiveRecord: 0.9ms)
ActionView::Template::Error (undefined method `book' for #):
34: - @order.order_items.each do |item|
35: %tr
36: %td
37: = image_tag(item.book.cover.url)
38: %td
39: = item.book.title
40: %td
activemodel (4.2.5.2) lib/active_model/attribute_methods.rb:433:in `method_missing'
/home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/confirm.html.haml:37:in `block in __home_leksster__uby__uby_arage__mazon_simple_cart_app_views_simple_cart_checkout_confirm_html_haml__1841643945308710642_69979297701400'
activerecord (4.2.5.2) lib/active_record/relation/delegation.rb:46:in `each'
activerecord (4.2.5.2) lib/active_record/relation/delegation.rb:46:in `each'
/home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/confirm.html.haml:34:in `__home_leksster__uby__uby_arage__mazon_simple_cart_app_views_simple_cart_checkout_confirm_html_haml__1841643945308710642_69979297701400'
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'
wicked (1.2.1) lib/wicked/controller/concerns/render_redirect.rb:29:in `render_step'
wicked (1.2.1) lib/wicked/controller/concerns/render_redirect.rb:11:in `render_wizard'
/home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/controllers/simple_cart/checkout_controller.rb:23:in `show'
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: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 (6.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.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 (1.1ms)
Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/rescues/template_error.html.erb within rescues/layout (19.9ms)
Started GET "/simple_cart/orders/11/checkout/confirm" for 127.0.0.1 at 2016-03-12 19:16:16 +0200
Processing by SimpleCart::CheckoutController#show as HTML
Parameters: {"order_id"=>"11", "id"=>"confirm"}
[1m[35mOrder Load (0.1ms)[0m SELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1 [["id", 11]]
[1m[36mCreditCard Load (0.1ms)[0m [1mSELECT "credit_cards".* FROM "credit_cards" WHERE "credit_cards"."order_id" = ? LIMIT 1[0m [["order_id", 11]]
[1m[35mBillingAddress Load (0.2ms)[0m SELECT "addresses".* FROM "addresses" WHERE "addresses"."type" IN ('BillingAddress') AND "addresses"."order_id" = ? LIMIT 1 [["order_id", 11]]
[1m[36mShippingAddress Load (0.2ms)[0m [1mSELECT "addresses".* FROM "addresses" WHERE "addresses"."type" IN ('ShippingAddress') AND "addresses"."order_id" = ? LIMIT 1[0m [["order_id", 11]]
Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/_progress.html.haml (1.1ms)
[1m[35mDelivery Load (0.1ms)[0m SELECT "deliveries".* FROM "deliveries" WHERE "deliveries"."id" = ? LIMIT 1 [["id", 1]]
Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/_overview.html.haml (1.9ms)
[1m[36mOrderItem Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "order_items" WHERE "order_items"."order_id" = ? LIMIT 1[0m [["order_id", "11"]]
[1m[35mOrderItem Load (0.0ms)[0m SELECT "order_items".* FROM "order_items" WHERE "order_items"."order_id" = ? [["order_id", "11"]]
Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/confirm.html.haml within layouts/simple_cart/application (20.7ms)
Completed 500 Internal Server Error in 28ms (ActiveRecord: 0.8ms)
ActionView::Template::Error (undefined method `book' for #):
34: - @order.order_items.each do |item|
35: %tr
36: %td
37: = image_tag(item.book.cover.url)
38: %td
39: = item.itemable.title
40: %td
activemodel (4.2.5.2) lib/active_model/attribute_methods.rb:433:in `method_missing'
/home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/confirm.html.haml:37:in `block in __home_leksster__uby__uby_arage__mazon_simple_cart_app_views_simple_cart_checkout_confirm_html_haml__1841643945308710642_69979297979620'
activerecord (4.2.5.2) lib/active_record/relation/delegation.rb:46:in `each'
activerecord (4.2.5.2) lib/active_record/relation/delegation.rb:46:in `each'
/home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/confirm.html.haml:34:in `__home_leksster__uby__uby_arage__mazon_simple_cart_app_views_simple_cart_checkout_confirm_html_haml__1841643945308710642_69979297979620'
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'
wicked (1.2.1) lib/wicked/controller/concerns/render_redirect.rb:29:in `render_step'
wicked (1.2.1) lib/wicked/controller/concerns/render_redirect.rb:11:in `render_wizard'
/home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/controllers/simple_cart/checkout_controller.rb:23:in `show'
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: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.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.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 (1.1ms)
Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/rescues/template_error.html.erb within rescues/layout (20.7ms)
Started GET "/simple_cart/orders/11/checkout/confirm" for 127.0.0.1 at 2016-03-12 19:16:31 +0200
Processing by SimpleCart::CheckoutController#show as HTML
Parameters: {"order_id"=>"11", "id"=>"confirm"}
[1m[36mOrder Load (0.1ms)[0m [1mSELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1[0m [["id", 11]]
[1m[35mCreditCard Load (0.1ms)[0m SELECT "credit_cards".* FROM "credit_cards" WHERE "credit_cards"."order_id" = ? LIMIT 1 [["order_id", 11]]
[1m[36mBillingAddress Load (0.2ms)[0m [1mSELECT "addresses".* FROM "addresses" WHERE "addresses"."type" IN ('BillingAddress') AND "addresses"."order_id" = ? LIMIT 1[0m [["order_id", 11]]
[1m[35mShippingAddress Load (0.2ms)[0m SELECT "addresses".* FROM "addresses" WHERE "addresses"."type" IN ('ShippingAddress') AND "addresses"."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)
[1m[36mDelivery Load (0.1ms)[0m [1mSELECT "deliveries".* FROM "deliveries" WHERE "deliveries"."id" = ? LIMIT 1[0m [["id", 1]]
Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/_overview.html.haml (2.6ms)
[1m[35mOrderItem Exists (0.1ms)[0m SELECT 1 AS one FROM "order_items" WHERE "order_items"."order_id" = ? LIMIT 1 [["order_id", "11"]]
[1m[36mOrderItem Load (0.1ms)[0m [1mSELECT "order_items".* FROM "order_items" WHERE "order_items"."order_id" = ?[0m [["order_id", "11"]]
[1m[35mItem Load (0.1ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 2]]
Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/confirm.html.haml within layouts/simple_cart/application (20.0ms)
Completed 500 Internal Server Error in 27ms (ActiveRecord: 1.2ms)
ActionView::Template::Error (undefined method `cover' for #):
34: - @order.order_items.each do |item|
35: %tr
36: %td
37: = image_tag(item.itemable.cover.url)
38: %td
39: = item.itemable.title
40: %td
activemodel (4.2.5.2) lib/active_model/attribute_methods.rb:433:in `method_missing'
/home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/confirm.html.haml:37:in `block in __home_leksster__uby__uby_arage__mazon_simple_cart_app_views_simple_cart_checkout_confirm_html_haml__1841643945308710642_42504360'
activerecord (4.2.5.2) lib/active_record/relation/delegation.rb:46:in `each'
activerecord (4.2.5.2) lib/active_record/relation/delegation.rb:46:in `each'
/home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/confirm.html.haml:34:in `__home_leksster__uby__uby_arage__mazon_simple_cart_app_views_simple_cart_checkout_confirm_html_haml__1841643945308710642_42504360'
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'
wicked (1.2.1) lib/wicked/controller/concerns/render_redirect.rb:29:in `render_step'
wicked (1.2.1) lib/wicked/controller/concerns/render_redirect.rb:11:in `render_wizard'
/home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/controllers/simple_cart/checkout_controller.rb:23:in `show'
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: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 (6.5ms)
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.5ms)
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/template_error.html.erb within rescues/layout (19.4ms)
Started GET "/simple_cart/orders/11/checkout/confirm" for 127.0.0.1 at 2016-03-12 19:16:39 +0200
Processing by SimpleCart::CheckoutController#show as HTML
Parameters: {"order_id"=>"11", "id"=>"confirm"}
[1m[36mOrder Load (0.1ms)[0m [1mSELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1[0m [["id", 11]]
[1m[35mCreditCard Load (0.1ms)[0m SELECT "credit_cards".* FROM "credit_cards" WHERE "credit_cards"."order_id" = ? LIMIT 1 [["order_id", 11]]
[1m[36mBillingAddress Load (0.1ms)[0m [1mSELECT "addresses".* FROM "addresses" WHERE "addresses"."type" IN ('BillingAddress') AND "addresses"."order_id" = ? LIMIT 1[0m [["order_id", 11]]
[1m[35mShippingAddress Load (0.1ms)[0m SELECT "addresses".* FROM "addresses" WHERE "addresses"."type" IN ('ShippingAddress') AND "addresses"."order_id" = ? LIMIT 1 [["order_id", 11]]
Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/_progress.html.haml (1.3ms)
[1m[36mDelivery Load (0.1ms)[0m [1mSELECT "deliveries".* FROM "deliveries" WHERE "deliveries"."id" = ? LIMIT 1[0m [["id", 1]]
Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/_overview.html.haml (1.7ms)
[1m[35mOrderItem Exists (0.1ms)[0m SELECT 1 AS one FROM "order_items" WHERE "order_items"."order_id" = ? LIMIT 1 [["order_id", "11"]]
[1m[36mOrderItem Load (0.1ms)[0m [1mSELECT "order_items".* FROM "order_items" WHERE "order_items"."order_id" = ?[0m [["order_id", "11"]]
[1m[35mItem Load (0.1ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 2]]
Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/confirm.html.haml within layouts/simple_cart/application (15.8ms)
Completed 500 Internal Server Error in 21ms (ActiveRecord: 0.7ms)
ActionView::Template::Error (undefined method `title' for #):
36: / %td
37: / = image_tag(item.itemable.cover.url)
38: %td
39: = item.itemable.title
40: %td
41: $#{item.itemable.price}
42: %td
activemodel (4.2.5.2) lib/active_model/attribute_methods.rb:433:in `method_missing'
/home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/confirm.html.haml:39:in `block in __home_leksster__uby__uby_arage__mazon_simple_cart_app_views_simple_cart_checkout_confirm_html_haml__1841643945308710642_47636540'
activerecord (4.2.5.2) lib/active_record/relation/delegation.rb:46:in `each'
activerecord (4.2.5.2) lib/active_record/relation/delegation.rb:46:in `each'
/home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/confirm.html.haml:34:in `__home_leksster__uby__uby_arage__mazon_simple_cart_app_views_simple_cart_checkout_confirm_html_haml__1841643945308710642_47636540'
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'
wicked (1.2.1) lib/wicked/controller/concerns/render_redirect.rb:29:in `render_step'
wicked (1.2.1) lib/wicked/controller/concerns/render_redirect.rb:11:in `render_wizard'
/home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/controllers/simple_cart/checkout_controller.rb:23:in `show'
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: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 (6.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.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 (1.0ms)
Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/rescues/template_error.html.erb within rescues/layout (19.3ms)
Started GET "/simple_cart/orders/11/checkout/confirm" for 127.0.0.1 at 2016-03-12 19:16:51 +0200
Processing by SimpleCart::CheckoutController#show as HTML
Parameters: {"order_id"=>"11", "id"=>"confirm"}
[1m[36mOrder Load (0.1ms)[0m [1mSELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1[0m [["id", 11]]
[1m[35mCreditCard Load (0.1ms)[0m SELECT "credit_cards".* FROM "credit_cards" WHERE "credit_cards"."order_id" = ? LIMIT 1 [["order_id", 11]]
[1m[36mBillingAddress Load (0.2ms)[0m [1mSELECT "addresses".* FROM "addresses" WHERE "addresses"."type" IN ('BillingAddress') AND "addresses"."order_id" = ? LIMIT 1[0m [["order_id", 11]]
[1m[35mShippingAddress Load (0.1ms)[0m SELECT "addresses".* FROM "addresses" WHERE "addresses"."type" IN ('ShippingAddress') AND "addresses"."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)
[1m[36mDelivery Load (0.1ms)[0m [1mSELECT "deliveries".* FROM "deliveries" WHERE "deliveries"."id" = ? LIMIT 1[0m [["id", 1]]
Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/_overview.html.haml (1.7ms)
[1m[35mOrderItem Exists (0.1ms)[0m SELECT 1 AS one FROM "order_items" WHERE "order_items"."order_id" = ? LIMIT 1 [["order_id", "11"]]
[1m[36mOrderItem Load (0.1ms)[0m [1mSELECT "order_items".* FROM "order_items" WHERE "order_items"."order_id" = ?[0m [["order_id", "11"]]
[1m[35mItem Load (0.1ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 2]]
Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/confirm.html.haml within layouts/simple_cart/application (18.9ms)
Completed 500 Internal Server Error in 26ms (ActiveRecord: 0.9ms)
ActionView::Template::Error (undefined method `shipping' for #):
53: %td
54: = number_to_currency(@order.total_price)
55: %br
56: = number_to_currency(@order.shipping.costs)
57: %tr
58: %td{colspan: 2}
59: %td.text-right{colspan: 2}
activemodel (4.2.5.2) lib/active_model/attribute_methods.rb:433:in `method_missing'
/home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/confirm.html.haml:56:in `__home_leksster__uby__uby_arage__mazon_simple_cart_app_views_simple_cart_checkout_confirm_html_haml__1841643945308710642_69979288490980'
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'
wicked (1.2.1) lib/wicked/controller/concerns/render_redirect.rb:29:in `render_step'
wicked (1.2.1) lib/wicked/controller/concerns/render_redirect.rb:11:in `render_wizard'
/home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/controllers/simple_cart/checkout_controller.rb:23:in `show'
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: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 (6.3ms)
Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (2.4ms)
Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (1.0ms)
Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/rescues/template_error.html.erb within rescues/layout (20.0ms)
Started GET "/simple_cart/orders/11/checkout/confirm" for 127.0.0.1 at 2016-03-12 19:17:00 +0200
Processing by SimpleCart::CheckoutController#show as HTML
Parameters: {"order_id"=>"11", "id"=>"confirm"}
[1m[36mOrder Load (0.1ms)[0m [1mSELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1[0m [["id", 11]]
[1m[35mCreditCard Load (0.1ms)[0m SELECT "credit_cards".* FROM "credit_cards" WHERE "credit_cards"."order_id" = ? LIMIT 1 [["order_id", 11]]
[1m[36mBillingAddress Load (0.1ms)[0m [1mSELECT "addresses".* FROM "addresses" WHERE "addresses"."type" IN ('BillingAddress') AND "addresses"."order_id" = ? LIMIT 1[0m [["order_id", 11]]
[1m[35mShippingAddress Load (0.1ms)[0m SELECT "addresses".* FROM "addresses" WHERE "addresses"."type" IN ('ShippingAddress') AND "addresses"."order_id" = ? LIMIT 1 [["order_id", 11]]
Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/_progress.html.haml (1.2ms)
[1m[36mDelivery Load (0.1ms)[0m [1mSELECT "deliveries".* FROM "deliveries" WHERE "deliveries"."id" = ? LIMIT 1[0m [["id", 1]]
Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/_overview.html.haml (1.8ms)
[1m[35mOrderItem Exists (0.1ms)[0m SELECT 1 AS one FROM "order_items" WHERE "order_items"."order_id" = ? LIMIT 1 [["order_id", "11"]]
[1m[36mOrderItem Load (0.1ms)[0m [1mSELECT "order_items".* FROM "order_items" WHERE "order_items"."order_id" = ?[0m [["order_id", "11"]]
[1m[35mItem Load (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 2]]
Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/confirm.html.haml within layouts/simple_cart/application (20.3ms)
Completed 500 Internal Server Error in 26ms (ActiveRecord: 0.7ms)
ActionView::Template::Error (undefined method `shipping' for #):
60: %strong
61: Order total:
62: %td
63: = number_to_currency(@order.total_price + @order.shipping.costs)
64: .row
65: .col-md-4
66: .col-md-4
activemodel (4.2.5.2) lib/active_model/attribute_methods.rb:433:in `method_missing'
/home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/confirm.html.haml:63:in `__home_leksster__uby__uby_arage__mazon_simple_cart_app_views_simple_cart_checkout_confirm_html_haml__1841643945308710642_69979290802720'
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'
wicked (1.2.1) lib/wicked/controller/concerns/render_redirect.rb:29:in `render_step'
wicked (1.2.1) lib/wicked/controller/concerns/render_redirect.rb:11:in `render_wizard'
/home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/controllers/simple_cart/checkout_controller.rb:23:in `show'
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: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 (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 (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 (1.1ms)
Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/rescues/template_error.html.erb within rescues/layout (19.0ms)
Started GET "/simple_cart/orders/11/checkout/confirm" for 127.0.0.1 at 2016-03-12 19:17:07 +0200
Processing by SimpleCart::CheckoutController#show as HTML
Parameters: {"order_id"=>"11", "id"=>"confirm"}
[1m[36mOrder Load (0.1ms)[0m [1mSELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1[0m [["id", 11]]
[1m[35mCreditCard Load (0.1ms)[0m SELECT "credit_cards".* FROM "credit_cards" WHERE "credit_cards"."order_id" = ? LIMIT 1 [["order_id", 11]]
[1m[36mBillingAddress Load (0.1ms)[0m [1mSELECT "addresses".* FROM "addresses" WHERE "addresses"."type" IN ('BillingAddress') AND "addresses"."order_id" = ? LIMIT 1[0m [["order_id", 11]]
[1m[35mShippingAddress Load (0.1ms)[0m SELECT "addresses".* FROM "addresses" WHERE "addresses"."type" IN ('ShippingAddress') AND "addresses"."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)
[1m[36mDelivery Load (0.1ms)[0m [1mSELECT "deliveries".* FROM "deliveries" WHERE "deliveries"."id" = ? LIMIT 1[0m [["id", 1]]
Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/_overview.html.haml (2.3ms)
[1m[35mOrderItem Exists (0.1ms)[0m SELECT 1 AS one FROM "order_items" WHERE "order_items"."order_id" = ? LIMIT 1 [["order_id", "11"]]
[1m[36mOrderItem Load (0.1ms)[0m [1mSELECT "order_items".* FROM "order_items" WHERE "order_items"."order_id" = ?[0m [["order_id", "11"]]
[1m[35mItem Load (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 2]]
Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/confirm.html.haml within layouts/simple_cart/application (16.5ms)
Completed 200 OK in 33ms (Views: 30.0ms | ActiveRecord: 0.7ms)
Started GET "/assets/simple_cart/application.self-2f12d59583468bdcee27c6046669f62a778d265fc91cf385e5d36e9189ac822e.css?body=1" for 127.0.0.1 at 2016-03-12 19:17:07 +0200
Started GET "/assets/simple_cart/application.self-8f06a73c35179188914ab50e057157639fce1401c1cdca640ac9cec33746fc5b.js?body=1" for 127.0.0.1 at 2016-03-12 19:17:07 +0200
Started GET "/simple_cart/orders/11/checkout/confirm" for 127.0.0.1 at 2016-03-12 19:17:12 +0200
Processing by SimpleCart::CheckoutController#show as HTML
Parameters: {"order_id"=>"11", "id"=>"confirm"}
[1m[36mOrder Load (0.1ms)[0m [1mSELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1[0m [["id", 11]]
[1m[35mCreditCard Load (0.1ms)[0m SELECT "credit_cards".* FROM "credit_cards" WHERE "credit_cards"."order_id" = ? LIMIT 1 [["order_id", 11]]
[1m[36mBillingAddress Load (0.1ms)[0m [1mSELECT "addresses".* FROM "addresses" WHERE "addresses"."type" IN ('BillingAddress') AND "addresses"."order_id" = ? LIMIT 1[0m [["order_id", 11]]
[1m[35mShippingAddress Load (0.1ms)[0m SELECT "addresses".* FROM "addresses" WHERE "addresses"."type" IN ('ShippingAddress') AND "addresses"."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)
[1m[36mDelivery Load (0.1ms)[0m [1mSELECT "deliveries".* FROM "deliveries" WHERE "deliveries"."id" = ? LIMIT 1[0m [["id", 1]]
Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/_overview.html.haml (1.8ms)
[1m[35mOrderItem Exists (0.1ms)[0m SELECT 1 AS one FROM "order_items" WHERE "order_items"."order_id" = ? LIMIT 1 [["order_id", "11"]]
[1m[36mOrderItem Load (0.1ms)[0m [1mSELECT "order_items".* FROM "order_items" WHERE "order_items"."order_id" = ?[0m [["order_id", "11"]]
[1m[35mItem Load (0.1ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 2]]
Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/confirm.html.haml within layouts/simple_cart/application (9.5ms)
Completed 200 OK in 24ms (Views: 20.2ms | ActiveRecord: 0.8ms)
Started GET "/simple_cart/orders/11/checkout/payment" for 127.0.0.1 at 2016-03-12 19:17:13 +0200
Processing by SimpleCart::CheckoutController#show as HTML
Parameters: {"order_id"=>"11", "id"=>"payment"}
[1m[36mOrder Load (0.1ms)[0m [1mSELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1[0m [["id", 11]]
[1m[35mDelivery Load (0.1ms)[0m SELECT "deliveries".* FROM "deliveries" WHERE "deliveries"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mBillingAddress Load (0.1ms)[0m [1mSELECT "addresses".* FROM "addresses" WHERE "addresses"."type" IN ('BillingAddress') AND "addresses"."order_id" = ? LIMIT 1[0m [["order_id", 11]]
[1m[35mShippingAddress Load (0.1ms)[0m SELECT "addresses".* FROM "addresses" WHERE "addresses"."type" IN ('ShippingAddress') AND "addresses"."order_id" = ? LIMIT 1 [["order_id", 11]]
[1m[36mCreditCard Load (0.1ms)[0m [1mSELECT "credit_cards".* FROM "credit_cards" WHERE "credit_cards"."order_id" = ? LIMIT 1[0m [["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/payment.html.haml within layouts/simple_cart/application (6.4ms)
Completed 200 OK in 32ms (Views: 20.1ms | ActiveRecord: 0.5ms)
Started PATCH "/simple_cart/orders/11/checkout/payment" for 127.0.0.1 at 2016-03-12 19:17:14 +0200
Processing by SimpleCart::CheckoutController#update as HTML
Parameters: {"utf8"=>"✓", "authenticity_token"=>"6m6oRkttlsvhqjgPS38FLcMTIeI9gk5oVvX6oa6F07osfpVK0LuaPejXkWRYOnxZgOVjp7Gin3ZcewHAw5J9Kw==", "order"=>{"credit_card"=>{"number"=>"", "expiration_month"=>"01", "expiration_year"=>"2017", "cvv"=>"", "firstname"=>"", "lastname"=>""}}, "commit"=>"Continue", "order_id"=>"11", "id"=>"payment"}
[1m[35mOrder Load (0.1ms)[0m SELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1 [["id", 11]]
Unpermitted parameter: credit_card
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
[1m[35m (0.1ms)[0m commit transaction
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
[1m[35m (0.1ms)[0m commit transaction
Redirected to http://localhost:3000/simple_cart/orders/11/checkout/confirm
Completed 302 Found in 5ms (ActiveRecord: 0.6ms)
Started GET "/simple_cart/orders/11/checkout/confirm" for 127.0.0.1 at 2016-03-12 19:17:14 +0200
Processing by SimpleCart::CheckoutController#show as HTML
Parameters: {"order_id"=>"11", "id"=>"confirm"}
[1m[36mOrder Load (0.1ms)[0m [1mSELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1[0m [["id", 11]]
[1m[35mCreditCard Load (0.1ms)[0m SELECT "credit_cards".* FROM "credit_cards" WHERE "credit_cards"."order_id" = ? LIMIT 1 [["order_id", 11]]
[1m[36mBillingAddress Load (0.1ms)[0m [1mSELECT "addresses".* FROM "addresses" WHERE "addresses"."type" IN ('BillingAddress') AND "addresses"."order_id" = ? LIMIT 1[0m [["order_id", 11]]
[1m[35mShippingAddress Load (0.1ms)[0m SELECT "addresses".* FROM "addresses" WHERE "addresses"."type" IN ('ShippingAddress') AND "addresses"."order_id" = ? LIMIT 1 [["order_id", 11]]
Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/_progress.html.haml (0.9ms)
[1m[36mDelivery Load (0.1ms)[0m [1mSELECT "deliveries".* FROM "deliveries" WHERE "deliveries"."id" = ? LIMIT 1[0m [["id", 1]]
Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/_overview.html.haml (2.4ms)
[1m[35mOrderItem Exists (0.1ms)[0m SELECT 1 AS one FROM "order_items" WHERE "order_items"."order_id" = ? LIMIT 1 [["order_id", "11"]]
[1m[36mOrderItem Load (0.1ms)[0m [1mSELECT "order_items".* FROM "order_items" WHERE "order_items"."order_id" = ?[0m [["order_id", "11"]]
[1m[35mItem Load (0.1ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 2]]
Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/confirm.html.haml within layouts/simple_cart/application (10.1ms)
Completed 200 OK in 22ms (Views: 19.7ms | ActiveRecord: 0.6ms)
Started GET "/simple_cart/orders/11/checkout/payment" for 127.0.0.1 at 2016-03-12 19:17:17 +0200
Processing by SimpleCart::CheckoutController#show as HTML
Parameters: {"order_id"=>"11", "id"=>"payment"}
[1m[36mOrder Load (0.1ms)[0m [1mSELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1[0m [["id", 11]]
[1m[35mDelivery Load (0.2ms)[0m SELECT "deliveries".* FROM "deliveries" WHERE "deliveries"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mBillingAddress Load (0.2ms)[0m [1mSELECT "addresses".* FROM "addresses" WHERE "addresses"."type" IN ('BillingAddress') AND "addresses"."order_id" = ? LIMIT 1[0m [["order_id", 11]]
[1m[35mShippingAddress Load (0.1ms)[0m SELECT "addresses".* FROM "addresses" WHERE "addresses"."type" IN ('ShippingAddress') AND "addresses"."order_id" = ? LIMIT 1 [["order_id", 11]]
[1m[36mCreditCard Load (0.1ms)[0m [1mSELECT "credit_cards".* FROM "credit_cards" WHERE "credit_cards"."order_id" = ? LIMIT 1[0m [["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/payment.html.haml within layouts/simple_cart/application (6.9ms)
Completed 200 OK in 23ms (Views: 16.6ms | ActiveRecord: 0.7ms)
Started GET "/" for 127.0.0.1 at 2016-03-14 14:16:01 +0200
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
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 (7.1ms)
Completed 200 OK in 108ms (Views: 107.6ms | ActiveRecord: 0.0ms)
Started GET "/" for 127.0.0.1 at 2016-03-14 14:16:03 +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.0ms)
Completed 200 OK in 1ms (Views: 0.7ms | ActiveRecord: 0.0ms)
Started GET "/items" for 127.0.0.1 at 2016-03-14 14:16:04 +0200
Processing by ItemsController#index as HTML
[1m[35mItem Load (0.2ms)[0m SELECT "items".* FROM "items"
Rendered items/index.html.erb (54.3ms)
Completed 200 OK in 79ms (Views: 67.3ms | ActiveRecord: 0.8ms)
Started GET "/items" for 127.0.0.1 at 2016-03-14 14:16:04 +0200
Processing by ItemsController#index as HTML
[1m[36mItem Load (0.1ms)[0m [1mSELECT "items".* FROM "items"[0m
Rendered items/index.html.erb (1.6ms)
Completed 200 OK in 3ms (Views: 2.9ms | ActiveRecord: 0.1ms)
Started GET "/items/2" for 127.0.0.1 at 2016-03-14 14:16:06 +0200
Processing by ItemsController#show as HTML
Parameters: {"id"=>"2"}
[1m[35mItem Load (0.2ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 2]]
Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/carts/_buy.html.haml (88.6ms)
Rendered items/show.html.erb (125.7ms)
Completed 200 OK in 182ms (Views: 142.7ms | ActiveRecord: 0.2ms)
Started POST "/simple_cart/cart/2" for 127.0.0.1 at 2016-03-14 14:16:07 +0200
Processing by SimpleCart::CartsController#add as HTML
Parameters: {"utf8"=>"✓", "authenticity_token"=>"YTFZBMVVtk8CFkmwF09E2JU6ccSPRs1oiAYBDEdgw5unIWQIXoO6uQtr4NsECj2s1swzgQNmHHaCiPptKndtCg==", "qty"=>"1", "klass"=>"Item", "commit"=>"Add to cart", "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-14 14:16:07 +0200
Processing by SimpleCart::CartsController#show as HTML
[1m[36mItem Load (0.1ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", 2]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "2"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "2"]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "2"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "2"]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."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 (128.5ms)
Completed 200 OK in 536ms (Views: 534.3ms | ActiveRecord: 0.8ms)
Started GET "/simple_cart/cart/checkout" for 127.0.0.1 at 2016-03-14 14:16:11 +0200
Processing by SimpleCart::CartsController#checkout as HTML
[1m[36mItem Load (0.1ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", 2]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "2"]]
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
[1m[35mSQL (0.3ms)[0m INSERT INTO "orders" ("total_price", "completed_date", "aasm_state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["total_price", 127060.0], ["completed_date", "2016-03-14"], ["aasm_state", "in_progress"], ["created_at", "2016-03-14 12:16:11.720202"], ["updated_at", "2016-03-14 12:16:11.720202"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "order_items" ("price", "qty", "itemable_id", "itemable_type", "order_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["price", 25412.0], ["qty", 5], ["itemable_id", 2], ["itemable_type", "Item"], ["order_id", "12"], ["created_at", "2016-03-14 12:16:11.721907"], ["updated_at", "2016-03-14 12:16:11.721907"]]
[1m[35m (64.7ms)[0m commit transaction
Redirected to http://localhost:3000/simple_cart/orders/12/checkout
Completed 302 Found in 95ms (ActiveRecord: 65.4ms)
Started GET "/simple_cart/orders/12/checkout" for 127.0.0.1 at 2016-03-14 14:16:11 +0200
Processing by SimpleCart::CheckoutController#index as HTML
Parameters: {"order_id"=>"12"}
[1m[36mOrder Load (0.2ms)[0m [1mSELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1[0m [["id", 12]]
Redirected to http://localhost:3000/simple_cart/orders/12/checkout/billing
Completed 302 Found in 1ms (ActiveRecord: 0.2ms)
Started GET "/simple_cart/orders/12/checkout/billing" for 127.0.0.1 at 2016-03-14 14:16:11 +0200
Processing by SimpleCart::CheckoutController#show as HTML
Parameters: {"order_id"=>"12", "id"=>"billing"}
[1m[35mOrder Load (0.1ms)[0m SELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1 [["id", 12]]
[1m[36mBillingAddress Load (0.2ms)[0m [1mSELECT "addresses".* FROM "addresses" WHERE "addresses"."type" IN ('BillingAddress') AND "addresses"."order_id" = ? LIMIT 1[0m [["order_id", 12]]
[1m[35mShippingAddress Load (0.2ms)[0m SELECT "addresses".* FROM "addresses" WHERE "addresses"."type" IN ('ShippingAddress') AND "addresses"."order_id" = ? LIMIT 1 [["order_id", 12]]
[1m[36mCreditCard Load (0.1ms)[0m [1mSELECT "credit_cards".* FROM "credit_cards" WHERE "credit_cards"."order_id" = ? LIMIT 1[0m [["order_id", 12]]
Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/_progress.html.haml (3.2ms)
Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/_address.html.haml (37.2ms)
Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/billing.html.haml within layouts/simple_cart/application (69.3ms)
Completed 200 OK in 241ms (Views: 112.2ms | ActiveRecord: 1.2ms)
Started PATCH "/simple_cart/orders/12/checkout/billing" for 127.0.0.1 at 2016-03-14 14:16:13 +0200
Processing by SimpleCart::CheckoutController#update as HTML
Parameters: {"utf8"=>"✓", "authenticity_token"=>"oQtKUFUiFdc3oRxNO/ijBKlsCfY8Z0nMG4CtTRIeTRRnG3dczvQZIT7ctSYovdpw6ppLs7BHmNIRDlYsfwnjhQ==", "order"=>{"billing_address_attributes"=>{"firstname"=>"", "lastname"=>"", "address"=>"", "zipcode"=>"", "city"=>"", "phone"=>"", "country"=>"Afghanistan"}}, "shipping"=>{"use_billing_address"=>"true"}, "commit"=>"Save and continue", "order_id"=>"12", "id"=>"billing"}
[1m[35mOrder Load (0.1ms)[0m SELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1 [["id", 12]]
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
[1m[35mBillingAddress Load (0.1ms)[0m SELECT "addresses".* FROM "addresses" WHERE "addresses"."type" IN ('BillingAddress') AND "addresses"."order_id" = ? LIMIT 1 [["order_id", 12]]
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/_progress.html.haml (1.8ms)
Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/_address.html.haml (13.8ms)
Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/billing.html.haml within layouts/simple_cart/application (27.2ms)
Completed 200 OK in 69ms (Views: 48.0ms | ActiveRecord: 0.4ms)
Started PATCH "/simple_cart/orders/12/checkout/billing" for 127.0.0.1 at 2016-03-14 14:16:19 +0200
Processing by SimpleCart::CheckoutController#update as HTML
Parameters: {"utf8"=>"✓", "authenticity_token"=>"MQDqoyiPpn4GQEBpWSA612r9scLXaTrTfJ1jivrLegb3ENevs1mqiA896QJKZUOjKQvzh1tJ6812E5jrl9zUlw==", "order"=>{"billing_address_attributes"=>{"firstname"=>"fsdfg", "lastname"=>"vxcbxc", "address"=>"bxcb", "zipcode"=>"xcbxcbxcb", "city"=>"bxcbx", "phone"=>"cbxcb", "country"=>"Afghanistan"}}, "shipping"=>{"use_billing_address"=>"true"}, "commit"=>"Save and continue", "order_id"=>"12", "id"=>"billing"}
[1m[35mOrder Load (0.1ms)[0m SELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1 [["id", 12]]
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
[1m[35mBillingAddress Load (0.1ms)[0m SELECT "addresses".* FROM "addresses" WHERE "addresses"."type" IN ('BillingAddress') AND "addresses"."order_id" = ? LIMIT 1 [["order_id", 12]]
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "addresses" ("type", "firstname", "lastname", "address", "zipcode", "city", "phone", "country", "order_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["type", "BillingAddress"], ["firstname", "fsdfg"], ["lastname", "vxcbxc"], ["address", "bxcb"], ["zipcode", "xcbxcbxcb"], ["city", "bxcbx"], ["phone", "cbxcb"], ["country", "Afghanistan"], ["order_id", 12], ["created_at", "2016-03-14 12:16:19.738049"], ["updated_at", "2016-03-14 12:16:19.738049"]]
[1m[35m (64.1ms)[0m commit transaction
[1m[36mShippingAddress Load (0.2ms)[0m [1mSELECT "addresses".* FROM "addresses" WHERE "addresses"."type" IN ('ShippingAddress') AND "addresses"."order_id" = ? LIMIT 1[0m [["order_id", 12]]
[1m[35m (0.1ms)[0m begin transaction
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "addresses" ("type", "order_id", "address", "zipcode", "city", "phone", "country", "created_at", "updated_at", "firstname", "lastname") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["type", "ShippingAddress"], ["order_id", 12], ["address", "bxcb"], ["zipcode", "xcbxcbxcb"], ["city", "bxcbx"], ["phone", "cbxcb"], ["country", "Afghanistan"], ["created_at", "2016-03-14 12:16:19.738049"], ["updated_at", "2016-03-14 12:16:19.738049"], ["firstname", "fsdfg"], ["lastname", "vxcbxc"]]
[1m[35m (228.9ms)[0m commit transaction
Redirected to http://localhost:3000/simple_cart/orders/12/checkout/delivery
Completed 302 Found in 309ms (ActiveRecord: 294.1ms)
Started GET "/simple_cart/orders/12/checkout/delivery" for 127.0.0.1 at 2016-03-14 14:16:20 +0200
Processing by SimpleCart::CheckoutController#show as HTML
Parameters: {"order_id"=>"12", "id"=>"delivery"}
[1m[36mOrder Load (0.2ms)[0m [1mSELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1[0m [["id", 12]]
[1m[35mShippingAddress Load (0.1ms)[0m SELECT "addresses".* FROM "addresses" WHERE "addresses"."type" IN ('ShippingAddress') AND "addresses"."order_id" = ? LIMIT 1 [["order_id", 12]]
[1m[36mBillingAddress Load (0.1ms)[0m [1mSELECT "addresses".* FROM "addresses" WHERE "addresses"."type" IN ('BillingAddress') AND "addresses"."order_id" = ? LIMIT 1[0m [["order_id", 12]]
[1m[35mCreditCard Load (0.1ms)[0m SELECT "credit_cards".* FROM "credit_cards" WHERE "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.7ms)
[1m[36mDelivery Load (0.2ms)[0m [1mSELECT "deliveries".* FROM "deliveries"[0m
[1m[35mDelivery Load (0.2ms)[0m SELECT "deliveries".* FROM "deliveries" ORDER BY "deliveries"."id" ASC LIMIT 1
[1m[36mCACHE (0.0ms)[0m [1mSELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1[0m [["id", "12"]]
[1m[35mCACHE (0.0ms)[0m SELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1 [["id", "12"]]
Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/_summary.html.haml (5.1ms)
Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/delivery.html.haml within layouts/simple_cart/application (108.1ms)
Completed 200 OK in 159ms (Views: 153.1ms | ActiveRecord: 1.7ms)
Started PATCH "/simple_cart/orders/12/checkout/delivery" for 127.0.0.1 at 2016-03-14 14:16:21 +0200
Processing by SimpleCart::CheckoutController#update as HTML
Parameters: {"utf8"=>"✓", "authenticity_token"=>"uZskrfcTIs924/jHPT98W2E1S3teeU1Vk6+msG8r7gt/ixmhbMUuOX+eUawuegUvIsMJPtJZnEuZIV3RAjxAmg==", "order"=>{"delivery_id"=>"1"}, "commit"=>"Continue", "order_id"=>"12", "id"=>"delivery"}
[1m[36mOrder Load (0.1ms)[0m [1mSELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1[0m [["id", 12]]
[1m[35mDelivery Load (0.2ms)[0m SELECT "deliveries".* FROM "deliveries" WHERE "deliveries"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
[1m[35mSQL (0.3ms)[0m UPDATE "orders" SET "delivery_id" = ?, "updated_at" = ? WHERE "orders"."id" = ? [["delivery_id", 1], ["updated_at", "2016-03-14 12:16:21.275769"], ["id", 12]]
[1m[36m (238.5ms)[0m [1mcommit transaction[0m
Redirected to http://localhost:3000/simple_cart/orders/12/checkout/payment
Completed 302 Found in 245ms (ActiveRecord: 239.2ms)
Started GET "/simple_cart/orders/12/checkout/payment" for 127.0.0.1 at 2016-03-14 14:16:21 +0200
Processing by SimpleCart::CheckoutController#show as HTML
Parameters: {"order_id"=>"12", "id"=>"payment"}
[1m[35mOrder Load (0.1ms)[0m SELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1 [["id", 12]]
[1m[36mDelivery Load (0.1ms)[0m [1mSELECT "deliveries".* FROM "deliveries" WHERE "deliveries"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mBillingAddress Load (0.1ms)[0m SELECT "addresses".* FROM "addresses" WHERE "addresses"."type" IN ('BillingAddress') AND "addresses"."order_id" = ? LIMIT 1 [["order_id", 12]]
[1m[36mShippingAddress Load (0.1ms)[0m [1mSELECT "addresses".* FROM "addresses" WHERE "addresses"."type" IN ('ShippingAddress') AND "addresses"."order_id" = ? LIMIT 1[0m [["order_id", 12]]
[1m[35mCreditCard Load (0.0ms)[0m SELECT "credit_cards".* FROM "credit_cards" WHERE "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.1ms)
Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/payment.html.haml within layouts/simple_cart/application (13.8ms)
Completed 200 OK in 36ms (Views: 31.8ms | ActiveRecord: 0.4ms)
Started PATCH "/simple_cart/orders/12/checkout/payment" for 127.0.0.1 at 2016-03-14 14:16:23 +0200
Processing by SimpleCart::CheckoutController#update as HTML
Parameters: {"utf8"=>"✓", "authenticity_token"=>"61TKC6dAgdEXtMX2WmFcKtg7Ym70Q71LQ7IzhV8M5xQtRPcHPJaNJx7JbJ1JJCVem80gK3hjbFVJPMjkMhtJhQ==", "order"=>{"credit_card"=>{"number"=>"", "expiration_month"=>"01", "expiration_year"=>"2017", "cvv"=>"", "firstname"=>"", "lastname"=>""}}, "commit"=>"Continue", "order_id"=>"12", "id"=>"payment"}
[1m[36mOrder Load (0.1ms)[0m [1mSELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1[0m [["id", 12]]
Unpermitted parameter: credit_card
[1m[35m (0.1ms)[0m begin transaction
[1m[36m (0.0ms)[0m [1mcommit transaction[0m
[1m[35m (0.0ms)[0m begin transaction
[1m[36m (0.0ms)[0m [1mcommit transaction[0m
Redirected to http://localhost:3000/simple_cart/orders/12/checkout/confirm
Completed 302 Found in 2ms (ActiveRecord: 0.2ms)
Started GET "/simple_cart/orders/12/checkout/confirm" for 127.0.0.1 at 2016-03-14 14:16:23 +0200
Processing by SimpleCart::CheckoutController#show as HTML
Parameters: {"order_id"=>"12", "id"=>"confirm"}
[1m[35mOrder Load (0.1ms)[0m SELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1 [["id", 12]]
[1m[36mCreditCard Load (0.1ms)[0m [1mSELECT "credit_cards".* FROM "credit_cards" WHERE "credit_cards"."order_id" = ? LIMIT 1[0m [["order_id", 12]]
[1m[35mBillingAddress Load (0.2ms)[0m SELECT "addresses".* FROM "addresses" WHERE "addresses"."type" IN ('BillingAddress') AND "addresses"."order_id" = ? LIMIT 1 [["order_id", 12]]
[1m[36mShippingAddress Load (0.1ms)[0m [1mSELECT "addresses".* FROM "addresses" WHERE "addresses"."type" IN ('ShippingAddress') AND "addresses"."order_id" = ? LIMIT 1[0m [["order_id", 12]]
Redirected to http://localhost:3000/simple_cart/orders/12/checkout/payment
Completed 302 Found in 5ms (ActiveRecord: 0.5ms)
Started GET "/simple_cart/orders/12/checkout/payment" for 127.0.0.1 at 2016-03-14 14:16:23 +0200
Processing by SimpleCart::CheckoutController#show as HTML
Parameters: {"order_id"=>"12", "id"=>"payment"}
[1m[35mOrder Load (0.1ms)[0m SELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1 [["id", 12]]
[1m[36mDelivery Load (0.1ms)[0m [1mSELECT "deliveries".* FROM "deliveries" WHERE "deliveries"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mBillingAddress Load (0.1ms)[0m SELECT "addresses".* FROM "addresses" WHERE "addresses"."type" IN ('BillingAddress') AND "addresses"."order_id" = ? LIMIT 1 [["order_id", 12]]
[1m[36mShippingAddress Load (0.1ms)[0m [1mSELECT "addresses".* FROM "addresses" WHERE "addresses"."type" IN ('ShippingAddress') AND "addresses"."order_id" = ? LIMIT 1[0m [["order_id", 12]]
[1m[35mCreditCard Load (0.0ms)[0m SELECT "credit_cards".* FROM "credit_cards" WHERE "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 (0.9ms)
Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/payment.html.haml within layouts/simple_cart/application (5.7ms)
Completed 200 OK in 20ms (Views: 16.6ms | ActiveRecord: 0.4ms)
Started PATCH "/simple_cart/orders/12/checkout/payment" for 127.0.0.1 at 2016-03-14 14:16:24 +0200
Processing by SimpleCart::CheckoutController#update as HTML
Parameters: {"utf8"=>"✓", "authenticity_token"=>"xxM2ei+hn/8Z7xt+cvr4G4mdTOVY/0NQwK4IJ5Bv6DoBAwt2tHeTCRCSshVhv4FvymsOoNTfkk7KIPNG/XhGqw==", "order"=>{"credit_card"=>{"number"=>"", "expiration_month"=>"01", "expiration_year"=>"2017", "cvv"=>"", "firstname"=>"", "lastname"=>""}}, "commit"=>"Continue", "order_id"=>"12", "id"=>"payment"}
[1m[36mOrder Load (0.1ms)[0m [1mSELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1[0m [["id", 12]]
Unpermitted parameter: credit_card
[1m[35m (0.1ms)[0m begin transaction
[1m[36m (0.1ms)[0m [1mcommit transaction[0m
[1m[35m (0.1ms)[0m begin transaction
[1m[36m (0.1ms)[0m [1mcommit transaction[0m
Redirected to http://localhost:3000/simple_cart/orders/12/checkout/confirm
Completed 302 Found in 4ms (ActiveRecord: 0.4ms)
Started GET "/simple_cart/orders/12/checkout/confirm" for 127.0.0.1 at 2016-03-14 14:16:24 +0200
Processing by SimpleCart::CheckoutController#show as HTML
Parameters: {"order_id"=>"12", "id"=>"confirm"}
[1m[35mOrder Load (0.1ms)[0m SELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1 [["id", 12]]
[1m[36mCreditCard Load (0.1ms)[0m [1mSELECT "credit_cards".* FROM "credit_cards" WHERE "credit_cards"."order_id" = ? LIMIT 1[0m [["order_id", 12]]
[1m[35mBillingAddress Load (0.1ms)[0m SELECT "addresses".* FROM "addresses" WHERE "addresses"."type" IN ('BillingAddress') AND "addresses"."order_id" = ? LIMIT 1 [["order_id", 12]]
[1m[36mShippingAddress Load (0.1ms)[0m [1mSELECT "addresses".* FROM "addresses" WHERE "addresses"."type" IN ('ShippingAddress') AND "addresses"."order_id" = ? LIMIT 1[0m [["order_id", 12]]
Redirected to http://localhost:3000/simple_cart/orders/12/checkout/payment
Completed 302 Found in 4ms (ActiveRecord: 0.4ms)
Started GET "/simple_cart/orders/12/checkout/payment" for 127.0.0.1 at 2016-03-14 14:16:24 +0200
Processing by SimpleCart::CheckoutController#show as HTML
Parameters: {"order_id"=>"12", "id"=>"payment"}
[1m[35mOrder Load (0.1ms)[0m SELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1 [["id", 12]]
[1m[36mDelivery Load (0.1ms)[0m [1mSELECT "deliveries".* FROM "deliveries" WHERE "deliveries"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mBillingAddress Load (0.1ms)[0m SELECT "addresses".* FROM "addresses" WHERE "addresses"."type" IN ('BillingAddress') AND "addresses"."order_id" = ? LIMIT 1 [["order_id", 12]]
[1m[36mShippingAddress Load (0.1ms)[0m [1mSELECT "addresses".* FROM "addresses" WHERE "addresses"."type" IN ('ShippingAddress') AND "addresses"."order_id" = ? LIMIT 1[0m [["order_id", 12]]
[1m[35mCreditCard Load (0.0ms)[0m SELECT "credit_cards".* FROM "credit_cards" WHERE "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.3ms)
Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/payment.html.haml within layouts/simple_cart/application (6.6ms)
Completed 200 OK in 19ms (Views: 16.2ms | ActiveRecord: 0.3ms)
[1m[36mSQL (48.9ms)[0m [1mDELETE FROM "orders"[0m
Started GET "/simple_cart/orders/12/checkout/payment" for 127.0.0.1 at 2016-03-14 14:17:02 +0200
Processing by SimpleCart::CheckoutController#show as HTML
Parameters: {"order_id"=>"12", "id"=>"payment"}
[1m[36mOrder Load (0.1ms)[0m [1mSELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1[0m [["id", 12]]
Completed 404 Not Found in 1ms (ActiveRecord: 0.1ms)
ActiveRecord::RecordNotFound (Couldn't find Order with 'id'=12):
activerecord (4.2.5.2) lib/active_record/core.rb:155:in `find'
/home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/controllers/simple_cart/checkout_controller.rb:46:in `set_order'
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: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 (5.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.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 (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 (25.2ms)
Started GET "/simple_cart/" for 127.0.0.1 at 2016-03-14 14:17:06 +0200
Processing by SimpleCart::CartsController#show as HTML
[1m[35mItem Load (0.1ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 2]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "2"]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "2"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "2"]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "2"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "2"]]
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 23ms (Views: 21.9ms | ActiveRecord: 0.2ms)
Started GET "/simple_cart/cart/checkout" for 127.0.0.1 at 2016-03-14 14:17:07 +0200
Processing by SimpleCart::CartsController#checkout as HTML
[1m[35mItem Load (0.1ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 2]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "2"]]
[1m[35m (0.1ms)[0m begin transaction
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "orders" ("total_price", "completed_date", "aasm_state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["total_price", 127060.0], ["completed_date", "2016-03-14"], ["aasm_state", "in_progress"], ["created_at", "2016-03-14 12:17:07.827780"], ["updated_at", "2016-03-14 12:17:07.827780"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "order_items" ("price", "qty", "itemable_id", "itemable_type", "order_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["price", 25412.0], ["qty", 5], ["itemable_id", 2], ["itemable_type", "Item"], ["order_id", "13"], ["created_at", "2016-03-14 12:17:07.829320"], ["updated_at", "2016-03-14 12:17:07.829320"]]
[1m[36m (49.2ms)[0m [1mcommit transaction[0m
Redirected to http://localhost:3000/simple_cart/orders/13/checkout
Completed 302 Found in 56ms (ActiveRecord: 49.6ms)
Started GET "/simple_cart/orders/13/checkout" for 127.0.0.1 at 2016-03-14 14:17:07 +0200
Processing by SimpleCart::CheckoutController#index as HTML
Parameters: {"order_id"=>"13"}
[1m[35mOrder Load (0.1ms)[0m SELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1 [["id", 13]]
Redirected to http://localhost:3000/simple_cart/orders/13/checkout/billing
Completed 302 Found in 1ms (ActiveRecord: 0.1ms)
Started GET "/simple_cart/orders/13/checkout/billing" for 127.0.0.1 at 2016-03-14 14:17:07 +0200
Processing by SimpleCart::CheckoutController#show as HTML
Parameters: {"order_id"=>"13", "id"=>"billing"}
[1m[36mOrder Load (0.1ms)[0m [1mSELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1[0m [["id", 13]]
[1m[35mBillingAddress Load (0.1ms)[0m SELECT "addresses".* FROM "addresses" WHERE "addresses"."type" IN ('BillingAddress') AND "addresses"."order_id" = ? LIMIT 1 [["order_id", 13]]
[1m[36mShippingAddress Load (0.1ms)[0m [1mSELECT "addresses".* FROM "addresses" WHERE "addresses"."type" IN ('ShippingAddress') AND "addresses"."order_id" = ? LIMIT 1[0m [["order_id", 13]]
[1m[35mCreditCard Load (0.0ms)[0m SELECT "credit_cards".* FROM "credit_cards" WHERE "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/_address.html.haml (14.5ms)
Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/billing.html.haml within layouts/simple_cart/application (19.1ms)
Completed 200 OK in 34ms (Views: 30.8ms | ActiveRecord: 0.3ms)
Started PATCH "/simple_cart/orders/13/checkout/billing" for 127.0.0.1 at 2016-03-14 14:17:09 +0200
Processing by SimpleCart::CheckoutController#update as HTML
Parameters: {"utf8"=>"✓", "authenticity_token"=>"qbtsMWDqaFmeeAFfSs62PoN3Vy7VDn/eeEO2nSJuDPdvq1E9+zxkr5cFqDRZi89KwIEVa1kursByzU38T3miZg==", "order"=>{"billing_address_attributes"=>{"firstname"=>"", "lastname"=>"", "address"=>"", "zipcode"=>"", "city"=>"", "phone"=>"", "country"=>"Afghanistan"}}, "shipping"=>{"use_billing_address"=>"true"}, "commit"=>"Save and continue", "order_id"=>"13", "id"=>"billing"}
[1m[36mOrder Load (0.1ms)[0m [1mSELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1[0m [["id", 13]]
[1m[35m (0.1ms)[0m begin transaction
[1m[36mBillingAddress Load (0.1ms)[0m [1mSELECT "addresses".* FROM "addresses" WHERE "addresses"."type" IN ('BillingAddress') AND "addresses"."order_id" = ? LIMIT 1[0m [["order_id", 13]]
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
[1m[35m (0.1ms)[0m 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.5ms)
Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/billing.html.haml within layouts/simple_cart/application (15.2ms)
Completed 200 OK in 36ms (Views: 25.6ms | ActiveRecord: 0.5ms)
Started PATCH "/simple_cart/orders/13/checkout/billing" for 127.0.0.1 at 2016-03-14 14:17:17 +0200
Processing by SimpleCart::CheckoutController#update as HTML
Parameters: {"utf8"=>"✓", "authenticity_token"=>"o8Bn5Ribl+buQNRsW7N1IC6EdoAcRayI17R6Ge9ohoRl0Frpg02bEOc9fQdI9gxUbXI0xZBlfZbdOoF4gn8oFQ==", "order"=>{"billing_address_attributes"=>{"firstname"=>"vxcb", "lastname"=>"zxcbxzc", "address"=>"bxxcb", "zipcode"=>"zxc", "city"=>"xzcxzc", "phone"=>"cxzcxz", "country"=>"Afghanistan"}}, "shipping"=>{"use_billing_address"=>"true"}, "commit"=>"Save and continue", "order_id"=>"13", "id"=>"billing"}
[1m[36mOrder Load (0.1ms)[0m [1mSELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1[0m [["id", 13]]
[1m[35m (0.1ms)[0m begin transaction
[1m[36mBillingAddress Load (0.1ms)[0m [1mSELECT "addresses".* FROM "addresses" WHERE "addresses"."type" IN ('BillingAddress') AND "addresses"."order_id" = ? LIMIT 1[0m [["order_id", 13]]
[1m[35mSQL (0.2ms)[0m INSERT INTO "addresses" ("type", "firstname", "lastname", "address", "zipcode", "city", "phone", "country", "order_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["type", "BillingAddress"], ["firstname", "vxcb"], ["lastname", "zxcbxzc"], ["address", "bxxcb"], ["zipcode", "zxc"], ["city", "xzcxzc"], ["phone", "cxzcxz"], ["country", "Afghanistan"], ["order_id", 13], ["created_at", "2016-03-14 12:17:17.289479"], ["updated_at", "2016-03-14 12:17:17.289479"]]
[1m[36m (80.3ms)[0m [1mcommit transaction[0m
[1m[35mShippingAddress Load (0.1ms)[0m SELECT "addresses".* FROM "addresses" WHERE "addresses"."type" IN ('ShippingAddress') AND "addresses"."order_id" = ? LIMIT 1 [["order_id", 13]]
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "addresses" ("type", "order_id", "address", "zipcode", "city", "phone", "country", "created_at", "updated_at", "firstname", "lastname") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["type", "ShippingAddress"], ["order_id", 13], ["address", "bxxcb"], ["zipcode", "zxc"], ["city", "xzcxzc"], ["phone", "cxzcxz"], ["country", "Afghanistan"], ["created_at", "2016-03-14 12:17:17.289479"], ["updated_at", "2016-03-14 12:17:17.289479"], ["firstname", "vxcb"], ["lastname", "zxcbxzc"]]
[1m[36m (223.9ms)[0m [1mcommit transaction[0m
Redirected to http://localhost:3000/simple_cart/orders/13/checkout/delivery
Completed 302 Found in 314ms (ActiveRecord: 304.9ms)
Started GET "/simple_cart/orders/13/checkout/delivery" for 127.0.0.1 at 2016-03-14 14:17:17 +0200
Processing by SimpleCart::CheckoutController#show as HTML
Parameters: {"order_id"=>"13", "id"=>"delivery"}
[1m[35mOrder Load (0.1ms)[0m SELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1 [["id", 13]]
[1m[36mShippingAddress Load (0.1ms)[0m [1mSELECT "addresses".* FROM "addresses" WHERE "addresses"."type" IN ('ShippingAddress') AND "addresses"."order_id" = ? LIMIT 1[0m [["order_id", 13]]
[1m[35mBillingAddress Load (0.1ms)[0m SELECT "addresses".* FROM "addresses" WHERE "addresses"."type" IN ('BillingAddress') AND "addresses"."order_id" = ? LIMIT 1 [["order_id", 13]]
[1m[36mCreditCard Load (0.1ms)[0m [1mSELECT "credit_cards".* FROM "credit_cards" WHERE "credit_cards"."order_id" = ? LIMIT 1[0m [["order_id", 13]]
Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/_progress.html.haml (1.6ms)
[1m[35mDelivery Load (0.2ms)[0m SELECT "deliveries".* FROM "deliveries"
[1m[36mDelivery Load (0.2ms)[0m [1mSELECT "deliveries".* FROM "deliveries" ORDER BY "deliveries"."id" ASC LIMIT 1[0m
[1m[35mCACHE (0.0ms)[0m SELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1 [["id", "13"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1[0m [["id", "13"]]
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/delivery.html.haml within layouts/simple_cart/application (8.3ms)
Completed 200 OK in 23ms (Views: 19.9ms | ActiveRecord: 0.7ms)
Started PATCH "/simple_cart/orders/13/checkout/delivery" for 127.0.0.1 at 2016-03-14 14:17:18 +0200
Processing by SimpleCart::CheckoutController#update as HTML
Parameters: {"utf8"=>"✓", "authenticity_token"=>"dWLvwIbjB1G38+QPn58bzhbxKdK2tZow//R1UCe4K72zctLMHTULp76OTWSM2mK6VQdrlzqVSy71eo4xSq+FLA==", "order"=>{"delivery_id"=>"1"}, "commit"=>"Continue", "order_id"=>"13", "id"=>"delivery"}
[1m[35mOrder Load (0.1ms)[0m SELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1 [["id", 13]]
[1m[36mDelivery Load (0.2ms)[0m [1mSELECT "deliveries".* FROM "deliveries" WHERE "deliveries"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35m (0.1ms)[0m begin transaction
[1m[36mSQL (0.2ms)[0m [1mUPDATE "orders" SET "delivery_id" = ?, "updated_at" = ? WHERE "orders"."id" = ?[0m [["delivery_id", 1], ["updated_at", "2016-03-14 12:17:18.758166"], ["id", 13]]
[1m[35m (112.2ms)[0m commit transaction
Redirected to http://localhost:3000/simple_cart/orders/13/checkout/payment
Completed 302 Found in 121ms (ActiveRecord: 112.8ms)
Started GET "/simple_cart/orders/13/checkout/payment" for 127.0.0.1 at 2016-03-14 14:17:18 +0200
Processing by SimpleCart::CheckoutController#show as HTML
Parameters: {"order_id"=>"13", "id"=>"payment"}
[1m[36mOrder Load (0.1ms)[0m [1mSELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1[0m [["id", 13]]
[1m[35mDelivery Load (0.1ms)[0m SELECT "deliveries".* FROM "deliveries" WHERE "deliveries"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mBillingAddress Load (0.1ms)[0m [1mSELECT "addresses".* FROM "addresses" WHERE "addresses"."type" IN ('BillingAddress') AND "addresses"."order_id" = ? LIMIT 1[0m [["order_id", 13]]
[1m[35mShippingAddress Load (0.1ms)[0m SELECT "addresses".* FROM "addresses" WHERE "addresses"."type" IN ('ShippingAddress') AND "addresses"."order_id" = ? LIMIT 1 [["order_id", 13]]
[1m[36mCreditCard Load (0.0ms)[0m [1mSELECT "credit_cards".* FROM "credit_cards" WHERE "credit_cards"."order_id" = ? LIMIT 1[0m [["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/payment.html.haml within layouts/simple_cart/application (6.5ms)
Completed 200 OK in 21ms (Views: 17.4ms | ActiveRecord: 0.4ms)
Started PATCH "/simple_cart/orders/13/checkout/payment" for 127.0.0.1 at 2016-03-14 14:17:28 +0200
Processing by SimpleCart::CheckoutController#update as HTML
Parameters: {"utf8"=>"✓", "authenticity_token"=>"vvEUEu8w+T25y9bWEtMYjRiM6J3xNNHJns8HbHDWW4l44SkedOb1y7C2f70BlmH5W3qq2H0UANeUQfwNHcH1GA==", "order"=>{"credit_card"=>{"number"=>"1111111111111111", "expiration_month"=>"01", "expiration_year"=>"2017", "cvv"=>"233", "firstname"=>"125", "lastname"=>"512"}}, "commit"=>"Continue", "order_id"=>"13", "id"=>"payment"}
[1m[35mOrder Load (0.1ms)[0m SELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1 [["id", 13]]
Unpermitted parameter: credit_card
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
[1m[35m (0.1ms)[0m commit transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
[1m[35m (0.1ms)[0m commit transaction
Redirected to http://localhost:3000/simple_cart/orders/13/checkout/confirm
Completed 302 Found in 4ms (ActiveRecord: 0.4ms)
Started GET "/simple_cart/orders/13/checkout/confirm" for 127.0.0.1 at 2016-03-14 14:17:28 +0200
Processing by SimpleCart::CheckoutController#show as HTML
Parameters: {"order_id"=>"13", "id"=>"confirm"}
[1m[36mOrder Load (0.1ms)[0m [1mSELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1[0m [["id", 13]]
[1m[35mCreditCard Load (0.0ms)[0m SELECT "credit_cards".* FROM "credit_cards" WHERE "credit_cards"."order_id" = ? LIMIT 1 [["order_id", 13]]
[1m[36mBillingAddress Load (0.1ms)[0m [1mSELECT "addresses".* FROM "addresses" WHERE "addresses"."type" IN ('BillingAddress') AND "addresses"."order_id" = ? LIMIT 1[0m [["order_id", 13]]
[1m[35mShippingAddress Load (0.1ms)[0m SELECT "addresses".* FROM "addresses" WHERE "addresses"."type" IN ('ShippingAddress') AND "addresses"."order_id" = ? LIMIT 1 [["order_id", 13]]
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-14 14:17:28 +0200
Processing by SimpleCart::CheckoutController#show as HTML
Parameters: {"order_id"=>"13", "id"=>"payment"}
[1m[36mOrder Load (0.1ms)[0m [1mSELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1[0m [["id", 13]]
[1m[35mDelivery Load (0.0ms)[0m SELECT "deliveries".* FROM "deliveries" WHERE "deliveries"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mBillingAddress Load (0.1ms)[0m [1mSELECT "addresses".* FROM "addresses" WHERE "addresses"."type" IN ('BillingAddress') AND "addresses"."order_id" = ? LIMIT 1[0m [["order_id", 13]]
[1m[35mShippingAddress Load (0.2ms)[0m SELECT "addresses".* FROM "addresses" WHERE "addresses"."type" IN ('ShippingAddress') AND "addresses"."order_id" = ? LIMIT 1 [["order_id", 13]]
[1m[36mCreditCard Load (0.1ms)[0m [1mSELECT "credit_cards".* FROM "credit_cards" WHERE "credit_cards"."order_id" = ? LIMIT 1[0m [["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/payment.html.haml within layouts/simple_cart/application (6.5ms)
Completed 200 OK in 24ms (Views: 19.8ms | ActiveRecord: 0.5ms)
[1m[35mOrder Load (0.3ms)[0m SELECT "orders".* FROM "orders"
[1m[36mOrder Load (0.2ms)[0m [1mSELECT "orders".* FROM "orders" ORDER BY "orders"."id" ASC LIMIT 1[0m
[1m[35mCreditCard Load (0.2ms)[0m SELECT "credit_cards".* FROM "credit_cards" WHERE "credit_cards"."order_id" = ? LIMIT 1 [["order_id", 13]]
[1m[36mOrder Load (0.3ms)[0m [1mSELECT "orders".* FROM "orders" ORDER BY "orders"."id" ASC LIMIT 1[0m
[1m[35mCreditCard Load (0.1ms)[0m SELECT "credit_cards".* FROM "credit_cards" WHERE "credit_cards"."order_id" = ? LIMIT 1 [["order_id", 13]]
Started GET "/simple_cart/orders/13/checkout/payment" for 127.0.0.1 at 2016-03-14 14:18:55 +0200
Processing by SimpleCart::CheckoutController#show as HTML
Parameters: {"order_id"=>"13", "id"=>"payment"}
[1m[35mOrder Load (0.1ms)[0m SELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1 [["id", 13]]
[1m[36mDelivery Load (0.1ms)[0m [1mSELECT "deliveries".* FROM "deliveries" WHERE "deliveries"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mBillingAddress Load (0.2ms)[0m SELECT "addresses".* FROM "addresses" WHERE "addresses"."type" IN ('BillingAddress') AND "addresses"."order_id" = ? LIMIT 1 [["order_id", 13]]
[1m[36mShippingAddress Load (0.2ms)[0m [1mSELECT "addresses".* FROM "addresses" WHERE "addresses"."type" IN ('ShippingAddress') AND "addresses"."order_id" = ? LIMIT 1[0m [["order_id", 13]]
[1m[35mCreditCard Load (0.2ms)[0m SELECT "credit_cards".* FROM "credit_cards" WHERE "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.4ms)
Completed 200 OK in 86ms (Views: 19.4ms | ActiveRecord: 2.1ms)
Started GET "/assets/simple_cart/application.self-8f06a73c35179188914ab50e057157639fce1401c1cdca640ac9cec33746fc5b.js?body=1" for 127.0.0.1 at 2016-03-14 14:18:55 +0200
Started GET "/assets/simple_cart/application.self-2f12d59583468bdcee27c6046669f62a778d265fc91cf385e5d36e9189ac822e.css?body=1" for 127.0.0.1 at 2016-03-14 14:18:55 +0200
Started PATCH "/simple_cart/orders/13/checkout/payment" for 127.0.0.1 at 2016-03-14 14:18:57 +0200
Processing by SimpleCart::CheckoutController#update as HTML
Parameters: {"utf8"=>"✓", "authenticity_token"=>"Y+JcPYZjryPQ/EKbe4YTit2B77dC1M9DTPtJnfyv2EGl8mExHbWj1dmB6/Bow2r+nnet8s70Hl1GdbL8kbh20A==", "order"=>{"credit_card_attributes"=>{"number"=>"", "expiration_month"=>"01", "expiration_year"=>"2017", "cvv"=>"", "firstname"=>"", "lastname"=>""}}, "commit"=>"Continue", "order_id"=>"13", "id"=>"payment"}
[1m[36mOrder Load (0.1ms)[0m [1mSELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1[0m [["id", 13]]
[1m[35m (0.1ms)[0m begin transaction
[1m[36mCreditCard Load (0.1ms)[0m [1mSELECT "credit_cards".* FROM "credit_cards" WHERE "credit_cards"."order_id" = ? LIMIT 1[0m [["order_id", 13]]
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
[1m[35m (0.1ms)[0m rollback transaction
Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/_progress.html.haml (1.4ms)
[1m[36mShippingAddress Load (0.1ms)[0m [1mSELECT "addresses".* FROM "addresses" WHERE "addresses"."type" IN ('ShippingAddress') AND "addresses"."order_id" = ? LIMIT 1[0m [["order_id", 13]]
Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/payment.html.haml within layouts/simple_cart/application (12.6ms)
Completed 200 OK in 36ms (Views: 25.4ms | ActiveRecord: 0.6ms)
Started PATCH "/simple_cart/orders/13/checkout/payment" for 127.0.0.1 at 2016-03-14 14:19:03 +0200
Processing by SimpleCart::CheckoutController#update as HTML
Parameters: {"utf8"=>"✓", "authenticity_token"=>"Gsw2y4/M6OCJaAC+x31unJ/DzJvr18dB2IpAYn/v6Qrc3AvHFBrkFoAVqdXUOBfo3DWO3mf3Fl/SBLsDEvhHmw==", "order"=>{"credit_card_attributes"=>{"number"=>"1111111111111111", "expiration_month"=>"01", "expiration_year"=>"2017", "cvv"=>"525", "firstname"=>"afsf", "lastname"=>"fasg"}}, "commit"=>"Continue", "order_id"=>"13", "id"=>"payment"}
[1m[35mOrder Load (0.2ms)[0m SELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1 [["id", 13]]
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
[1m[35mCreditCard Load (0.1ms)[0m SELECT "credit_cards".* FROM "credit_cards" WHERE "credit_cards"."order_id" = ? LIMIT 1 [["order_id", 13]]
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "credit_cards" ("number", "expiration_month", "expiration_year", "cvv", "firstname", "lastname", "order_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["number", "1111111111111111"], ["expiration_month", "01"], ["expiration_year", "2017"], ["cvv", "525"], ["firstname", "afsf"], ["lastname", "fasg"], ["order_id", 13], ["created_at", "2016-03-14 12:19:03.354201"], ["updated_at", "2016-03-14 12:19:03.354201"]]
[1m[35m (76.1ms)[0m commit transaction
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
[1m[35m (0.0ms)[0m commit transaction
Redirected to http://localhost:3000/simple_cart/orders/13/checkout/confirm
Completed 302 Found in 84ms (ActiveRecord: 76.8ms)
Started GET "/simple_cart/orders/13/checkout/confirm" for 127.0.0.1 at 2016-03-14 14:19:03 +0200
Processing by SimpleCart::CheckoutController#show as HTML
Parameters: {"order_id"=>"13", "id"=>"confirm"}
[1m[36mOrder Load (0.1ms)[0m [1mSELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1[0m [["id", 13]]
[1m[35mCreditCard Load (0.1ms)[0m SELECT "credit_cards".* FROM "credit_cards" WHERE "credit_cards"."order_id" = ? LIMIT 1 [["order_id", 13]]
[1m[36mBillingAddress Load (0.1ms)[0m [1mSELECT "addresses".* FROM "addresses" WHERE "addresses"."type" IN ('BillingAddress') AND "addresses"."order_id" = ? LIMIT 1[0m [["order_id", 13]]
[1m[35mShippingAddress Load (0.1ms)[0m SELECT "addresses".* FROM "addresses" WHERE "addresses"."type" IN ('ShippingAddress') AND "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)
[1m[36mDelivery Load (0.1ms)[0m [1mSELECT "deliveries".* FROM "deliveries" WHERE "deliveries"."id" = ? LIMIT 1[0m [["id", 1]]
Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/_overview.html.haml (5.6ms)
[1m[35mOrderItem Exists (0.2ms)[0m SELECT 1 AS one FROM "order_items" WHERE "order_items"."order_id" = ? LIMIT 1 [["order_id", "13"]]
[1m[36mOrderItem Load (0.1ms)[0m [1mSELECT "order_items".* FROM "order_items" WHERE "order_items"."order_id" = ?[0m [["order_id", "13"]]
[1m[35mItem Load (0.1ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 2]]
Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/confirm.html.haml within layouts/simple_cart/application (87.2ms)
Completed 200 OK in 100ms (Views: 97.1ms | ActiveRecord: 1.2ms)
Started GET "/simple_cart/orders/13" for 127.0.0.1 at 2016-03-14 14:24:40 +0200
ActionController::RoutingError (uninitialized constant SimpleCart::OrdersController):
activesupport (4.2.5.2) lib/active_support/inflector/methods.rb:263:in `const_get'
activesupport (4.2.5.2) lib/active_support/inflector/methods.rb:263:in `block in constantize'
activesupport (4.2.5.2) lib/active_support/inflector/methods.rb:259:in `each'
activesupport (4.2.5.2) lib/active_support/inflector/methods.rb:259:in `inject'
activesupport (4.2.5.2) lib/active_support/inflector/methods.rb:259:in `constantize'
actionpack (4.2.5.2) lib/action_dispatch/routing/route_set.rb:70:in `controller_reference'
actionpack (4.2.5.2) lib/action_dispatch/routing/route_set.rb:60:in `controller'
actionpack (4.2.5.2) lib/action_dispatch/routing/route_set.rb:39: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/_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/routes/_route.html.erb (1.4ms)
Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/routes/_route.html.erb (0.7ms)
Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/routes/_table.html.erb (3.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 (1.2ms)
Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/rescues/routing_error.html.erb within rescues/layout (51.5ms)
Started GET "/simple_cart/orders/13/checkout/delivery" for 127.0.0.1 at 2016-03-14 14:24:57 +0200
Processing by SimpleCart::CheckoutController#show as HTML
Parameters: {"order_id"=>"13", "id"=>"delivery"}
[1m[36mOrder Load (0.2ms)[0m [1mSELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1[0m [["id", 13]]
[1m[35mShippingAddress Load (0.2ms)[0m SELECT "addresses".* FROM "addresses" WHERE "addresses"."type" IN ('ShippingAddress') AND "addresses"."order_id" = ? LIMIT 1 [["order_id", 13]]
[1m[36mBillingAddress Load (0.1ms)[0m [1mSELECT "addresses".* FROM "addresses" WHERE "addresses"."type" IN ('BillingAddress') AND "addresses"."order_id" = ? LIMIT 1[0m [["order_id", 13]]
[1m[35mCreditCard Load (0.1ms)[0m SELECT "credit_cards".* FROM "credit_cards" WHERE "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)
[1m[36mDelivery Load (0.2ms)[0m [1mSELECT "deliveries".* FROM "deliveries"[0m
[1m[35mDelivery Load (0.1ms)[0m SELECT "deliveries".* FROM "deliveries" ORDER BY "deliveries"."id" ASC LIMIT 1
[1m[36mCACHE (0.0ms)[0m [1mSELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1[0m [["id", "13"]]
[1m[35mCACHE (0.0ms)[0m SELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1 [["id", "13"]]
[1m[36mDelivery Load (0.1ms)[0m [1mSELECT "deliveries".* FROM "deliveries" WHERE "deliveries"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mCACHE (0.0ms)[0m SELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1 [["id", "13"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "deliveries".* FROM "deliveries" WHERE "deliveries"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mCACHE (0.0ms)[0m SELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1 [["id", "13"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1[0m [["id", "13"]]
[1m[35mCACHE (0.0ms)[0m SELECT "deliveries".* FROM "deliveries" WHERE "deliveries"."id" = ? LIMIT 1 [["id", 1]]
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.0ms)
Completed 200 OK in 28ms (Views: 22.0ms | ActiveRecord: 1.0ms)
Started GET "/simple_cart/orders/13/checkout/payment" for 127.0.0.1 at 2016-03-14 14:26:21 +0200
Processing by SimpleCart::CheckoutController#show as HTML
Parameters: {"order_id"=>"13", "id"=>"payment"}
[1m[36mOrder Load (0.1ms)[0m [1mSELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1[0m [["id", 13]]
[1m[35mDelivery Load (0.2ms)[0m SELECT "deliveries".* FROM "deliveries" WHERE "deliveries"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mBillingAddress Load (0.2ms)[0m [1mSELECT "addresses".* FROM "addresses" WHERE "addresses"."type" IN ('BillingAddress') AND "addresses"."order_id" = ? LIMIT 1[0m [["order_id", 13]]
[1m[35mShippingAddress Load (0.3ms)[0m SELECT "addresses".* FROM "addresses" WHERE "addresses"."type" IN ('ShippingAddress') AND "addresses"."order_id" = ? LIMIT 1 [["order_id", 13]]
[1m[36mCreditCard Load (0.2ms)[0m [1mSELECT "credit_cards".* FROM "credit_cards" WHERE "credit_cards"."order_id" = ? LIMIT 1[0m [["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 (24.7ms)
Completed 200 OK in 100ms (Views: 39.2ms | ActiveRecord: 2.3ms)
Started GET "/simple_cart/orders/13/checkout/billing" for 127.0.0.1 at 2016-03-14 14:26:24 +0200
Processing by SimpleCart::CheckoutController#show as HTML
Parameters: {"order_id"=>"13", "id"=>"billing"}
[1m[35mOrder Load (0.1ms)[0m SELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1 [["id", 13]]
[1m[36mBillingAddress Load (0.1ms)[0m [1mSELECT "addresses".* FROM "addresses" WHERE "addresses"."type" IN ('BillingAddress') AND "addresses"."order_id" = ? LIMIT 1[0m [["order_id", 13]]
[1m[35mShippingAddress Load (0.1ms)[0m SELECT "addresses".* FROM "addresses" WHERE "addresses"."type" IN ('ShippingAddress') AND "addresses"."order_id" = ? LIMIT 1 [["order_id", 13]]
[1m[36mCreditCard Load (0.1ms)[0m [1mSELECT "credit_cards".* FROM "credit_cards" WHERE "credit_cards"."order_id" = ? LIMIT 1[0m [["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)
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 27ms (Views: 24.2ms | ActiveRecord: 0.4ms)
Started PATCH "/simple_cart/orders/13/checkout/billing" for 127.0.0.1 at 2016-03-14 14:26:25 +0200
Processing by SimpleCart::CheckoutController#update as HTML
Parameters: {"utf8"=>"✓", "authenticity_token"=>"I9Z19XUYdC+IjyNOPo5xQnzzd/Pl3twS3beA1YOgUynlxkj57s542YHyiiUtywg2PwU1tmn+DQzXOXu07rf9uA==", "order"=>{"billing_address_attributes"=>{"firstname"=>"vxcb", "lastname"=>"zxcbxzc", "address"=>"bxxcb", "zipcode"=>"zxc", "city"=>"xzcxzc", "phone"=>"cxzcxz", "country"=>"Afghanistan", "id"=>"17"}}, "shipping"=>{"use_billing_address"=>"true"}, "commit"=>"Save and continue", "order_id"=>"13", "id"=>"billing"}
[1m[35mOrder Load (0.1ms)[0m SELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1 [["id", 13]]
Unpermitted parameter: id
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
[1m[35mBillingAddress Load (0.2ms)[0m SELECT "addresses".* FROM "addresses" WHERE "addresses"."type" IN ('BillingAddress') AND "addresses"."order_id" = ? LIMIT 1 [["order_id", 13]]
[1m[36mSQL (0.4ms)[0m [1mDELETE FROM "addresses" WHERE "addresses"."type" IN ('BillingAddress') AND "addresses"."id" = ?[0m [["id", 17]]
[1m[35mSQL (0.3ms)[0m INSERT INTO "addresses" ("type", "firstname", "lastname", "address", "zipcode", "city", "phone", "country", "order_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["type", "BillingAddress"], ["firstname", "vxcb"], ["lastname", "zxcbxzc"], ["address", "bxxcb"], ["zipcode", "zxc"], ["city", "xzcxzc"], ["phone", "cxzcxz"], ["country", "Afghanistan"], ["order_id", 13], ["created_at", "2016-03-14 12:26:25.186584"], ["updated_at", "2016-03-14 12:26:25.186584"]]
[1m[36m (228.7ms)[0m [1mcommit transaction[0m
[1m[35mShippingAddress Load (0.2ms)[0m SELECT "addresses".* FROM "addresses" WHERE "addresses"."type" IN ('ShippingAddress') AND "addresses"."order_id" = ? LIMIT 1 [["order_id", 13]]
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
[1m[35mSQL (0.3ms)[0m DELETE FROM "addresses" WHERE "addresses"."type" IN ('ShippingAddress') AND "addresses"."id" = ? [["id", 18]]
[1m[36m (56.9ms)[0m [1mcommit transaction[0m
[1m[35m (0.1ms)[0m begin transaction
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "addresses" ("type", "order_id", "address", "zipcode", "city", "phone", "country", "created_at", "updated_at", "firstname", "lastname") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["type", "ShippingAddress"], ["order_id", 13], ["address", "bxxcb"], ["zipcode", "zxc"], ["city", "xzcxzc"], ["phone", "cxzcxz"], ["country", "Afghanistan"], ["created_at", "2016-03-14 12:26:25.186584"], ["updated_at", "2016-03-14 12:26:25.186584"], ["firstname", "vxcb"], ["lastname", "zxcbxzc"]]
[1m[35m (96.1ms)[0m commit transaction
Redirected to http://localhost:3000/simple_cart/orders/13/checkout/delivery
Completed 302 Found in 400ms (ActiveRecord: 383.7ms)
Started GET "/simple_cart/orders/13/checkout/delivery" for 127.0.0.1 at 2016-03-14 14:26:25 +0200
Processing by SimpleCart::CheckoutController#show as HTML
Parameters: {"order_id"=>"13", "id"=>"delivery"}
[1m[36mOrder Load (0.1ms)[0m [1mSELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1[0m [["id", 13]]
[1m[35mShippingAddress Load (0.1ms)[0m SELECT "addresses".* FROM "addresses" WHERE "addresses"."type" IN ('ShippingAddress') AND "addresses"."order_id" = ? LIMIT 1 [["order_id", 13]]
[1m[36mBillingAddress Load (0.1ms)[0m [1mSELECT "addresses".* FROM "addresses" WHERE "addresses"."type" IN ('BillingAddress') AND "addresses"."order_id" = ? LIMIT 1[0m [["order_id", 13]]
[1m[35mCreditCard Load (0.0ms)[0m SELECT "credit_cards".* FROM "credit_cards" WHERE "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)
[1m[36mDelivery Load (0.2ms)[0m [1mSELECT "deliveries".* FROM "deliveries"[0m
[1m[35mDelivery Load (0.1ms)[0m SELECT "deliveries".* FROM "deliveries" ORDER BY "deliveries"."id" ASC LIMIT 1
[1m[36mCACHE (0.0ms)[0m [1mSELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1[0m [["id", "13"]]
[1m[35mCACHE (0.0ms)[0m SELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1 [["id", "13"]]
[1m[36mDelivery Load (0.1ms)[0m [1mSELECT "deliveries".* FROM "deliveries" WHERE "deliveries"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mCACHE (0.0ms)[0m SELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1 [["id", "13"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "deliveries".* FROM "deliveries" WHERE "deliveries"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mCACHE (0.0ms)[0m SELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1 [["id", "13"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1[0m [["id", "13"]]
[1m[35mCACHE (0.0ms)[0m SELECT "deliveries".* FROM "deliveries" WHERE "deliveries"."id" = ? LIMIT 1 [["id", 1]]
Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/_summary.html.haml (6.2ms)
Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/delivery.html.haml within layouts/simple_cart/application (12.7ms)
Completed 200 OK in 41ms (Views: 37.8ms | ActiveRecord: 1.0ms)
Started PATCH "/simple_cart/orders/13/checkout/delivery" for 127.0.0.1 at 2016-03-14 14:26:26 +0200
Processing by SimpleCart::CheckoutController#update as HTML
Parameters: {"utf8"=>"✓", "authenticity_token"=>"RHheaHU5FozR3vwKKFP1Lnem4nSxm69WL4gX+ZVO/GWCaGNk7u8aetijVWE7FoxaNFCgMT27fkglBuyY+FlS9A==", "order"=>{"delivery_id"=>"1"}, "commit"=>"Continue", "order_id"=>"13", "id"=>"delivery"}
[1m[36mOrder Load (0.1ms)[0m [1mSELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1[0m [["id", 13]]
[1m[35mDelivery Load (0.1ms)[0m SELECT "deliveries".* FROM "deliveries" WHERE "deliveries"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
[1m[35m (0.1ms)[0m 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-14 14:26:26 +0200
Processing by SimpleCart::CheckoutController#show as HTML
Parameters: {"order_id"=>"13", "id"=>"payment"}
[1m[36mOrder Load (0.1ms)[0m [1mSELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1[0m [["id", 13]]
[1m[35mDelivery Load (0.1ms)[0m SELECT "deliveries".* FROM "deliveries" WHERE "deliveries"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mBillingAddress Load (0.1ms)[0m [1mSELECT "addresses".* FROM "addresses" WHERE "addresses"."type" IN ('BillingAddress') AND "addresses"."order_id" = ? LIMIT 1[0m [["order_id", 13]]
[1m[35mShippingAddress Load (0.1ms)[0m SELECT "addresses".* FROM "addresses" WHERE "addresses"."type" IN ('ShippingAddress') AND "addresses"."order_id" = ? LIMIT 1 [["order_id", 13]]
[1m[36mCreditCard Load (0.0ms)[0m [1mSELECT "credit_cards".* FROM "credit_cards" WHERE "credit_cards"."order_id" = ? LIMIT 1[0m [["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 (8.1ms)
Completed 200 OK in 23ms (Views: 19.9ms | ActiveRecord: 0.4ms)
Started PATCH "/simple_cart/orders/13/checkout/payment" for 127.0.0.1 at 2016-03-14 14:26:27 +0200
Processing by SimpleCart::CheckoutController#update as HTML
Parameters: {"utf8"=>"✓", "authenticity_token"=>"ZMGtpZ9u3LhnkxOoj1XynrhML2b1AqUrx4KbRiUq+Fmi0ZCpBLjQTm7uusOcEIvq+7ptI3kidDXNDGAnSD1WyA==", "order"=>{"credit_card_attributes"=>{"number"=>"1111111111111111", "expiration_month"=>"01", "expiration_year"=>"2017", "cvv"=>"525", "firstname"=>"afsf", "lastname"=>"fasg", "id"=>"2"}}, "commit"=>"Continue", "order_id"=>"13", "id"=>"payment"}
[1m[35mOrder Load (0.1ms)[0m SELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1 [["id", 13]]
Unpermitted parameter: id
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
[1m[35mCreditCard Load (0.1ms)[0m SELECT "credit_cards".* FROM "credit_cards" WHERE "credit_cards"."order_id" = ? LIMIT 1 [["order_id", 13]]
[1m[36mSQL (0.2ms)[0m [1mDELETE FROM "credit_cards" WHERE "credit_cards"."id" = ?[0m [["id", 2]]
[1m[35mSQL (0.2ms)[0m INSERT INTO "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", "525"], ["firstname", "afsf"], ["lastname", "fasg"], ["order_id", 13], ["created_at", "2016-03-14 12:26:27.865855"], ["updated_at", "2016-03-14 12:26:27.865855"]]
[1m[36m (223.7ms)[0m [1mcommit transaction[0m
[1m[35m (0.1ms)[0m begin transaction
[1m[36m (0.0ms)[0m [1mcommit transaction[0m
Redirected to http://localhost:3000/simple_cart/orders/13/checkout/confirm
Completed 302 Found in 234ms (ActiveRecord: 224.7ms)
Started GET "/simple_cart/orders/13/checkout/confirm" for 127.0.0.1 at 2016-03-14 14:26:28 +0200
Processing by SimpleCart::CheckoutController#show as HTML
Parameters: {"order_id"=>"13", "id"=>"confirm"}
[1m[35mOrder Load (0.1ms)[0m SELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1 [["id", 13]]
[1m[36mCreditCard Load (0.1ms)[0m [1mSELECT "credit_cards".* FROM "credit_cards" WHERE "credit_cards"."order_id" = ? LIMIT 1[0m [["order_id", 13]]
[1m[35mBillingAddress Load (0.1ms)[0m SELECT "addresses".* FROM "addresses" WHERE "addresses"."type" IN ('BillingAddress') AND "addresses"."order_id" = ? LIMIT 1 [["order_id", 13]]
[1m[36mShippingAddress Load (0.1ms)[0m [1mSELECT "addresses".* FROM "addresses" WHERE "addresses"."type" IN ('ShippingAddress') AND "addresses"."order_id" = ? LIMIT 1[0m [["order_id", 13]]
Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/_progress.html.haml (1.0ms)
[1m[35mDelivery Load (0.1ms)[0m SELECT "deliveries".* FROM "deliveries" WHERE "deliveries"."id" = ? LIMIT 1 [["id", 1]]
Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/_overview.html.haml (2.1ms)
[1m[36mOrderItem Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "order_items" WHERE "order_items"."order_id" = ? LIMIT 1[0m [["order_id", "13"]]
[1m[35mOrderItem Load (0.3ms)[0m SELECT "order_items".* FROM "order_items" WHERE "order_items"."order_id" = ? [["order_id", "13"]]
[1m[36mItem Load (0.2ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", 2]]
Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/confirm.html.haml within layouts/simple_cart/application (24.3ms)
Completed 200 OK in 37ms (Views: 33.7ms | ActiveRecord: 1.5ms)
Started GET "/simple_cart/orders/13" for 127.0.0.1 at 2016-03-14 14:29:28 +0200
LoadError (Unable to autoload constant SimpleCart::OrdersController, expected /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/controllers/simple_cart/orders_controller.rb to define it):
activesupport (4.2.5.2) lib/active_support/dependencies.rb:495:in `load_missing_constant'
activesupport (4.2.5.2) lib/active_support/dependencies.rb:184:in `const_missing'
activesupport (4.2.5.2) lib/active_support/inflector/methods.rb:263:in `const_get'
activesupport (4.2.5.2) lib/active_support/inflector/methods.rb:263:in `block in constantize'
activesupport (4.2.5.2) lib/active_support/inflector/methods.rb:259:in `each'
activesupport (4.2.5.2) lib/active_support/inflector/methods.rb:259:in `inject'
activesupport (4.2.5.2) lib/active_support/inflector/methods.rb:259:in `constantize'
activesupport (4.2.5.2) lib/active_support/dependencies.rb:566:in `get'
activesupport (4.2.5.2) lib/active_support/dependencies.rb:597:in `constantize'
actionpack (4.2.5.2) lib/action_dispatch/routing/route_set.rb:70:in `controller_reference'
actionpack (4.2.5.2) lib/action_dispatch/routing/route_set.rb:60:in `controller'
actionpack (4.2.5.2) lib/action_dispatch/routing/route_set.rb:39: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 (4.4ms)
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 (1.5ms)
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 "/simple_cart/orders/13" for 127.0.0.1 at 2016-03-14 14:29:52 +0200
Processing by SimpleCart::OrdersController#show as HTML
Parameters: {"id"=>"13"}
[1m[35mOrder Load (0.2ms)[0m SELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1 [["id", 13]]
Completed 500 Internal Server Error in 43ms (ActiveRecord: 1.1ms)
ActionView::MissingTemplate (Missing template simple_cart/orders/show, simple_cart/application/show with {:locale=>[:en], :formats=>[:html], :variants=>[], :handlers=>[:erb, :builder, :raw, :ruby, :haml]}. Searched in:
* "/home/leksster/Ruby/RubyGarage/Amazon/simple_cart/test/dummy/app/views"
* "/home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views"
):
actionview (4.2.5.2) lib/action_view/path_set.rb:46:in `find'
actionview (4.2.5.2) lib/action_view/lookup_context.rb:121:in `find'
actionview (4.2.5.2) lib/action_view/renderer/abstract_renderer.rb:18:in `find_template'
actionview (4.2.5.2) lib/action_view/renderer/template_renderer.rb:40:in `determine_template'
actionview (4.2.5.2) lib/action_view/renderer/template_renderer.rb:8: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.1ms)
Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (3.5ms)
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.8ms)
Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/rescues/missing_template.html.erb within rescues/layout (24.4ms)
Started GET "/simple_cart/orders/13" for 127.0.0.1 at 2016-03-14 14:30:20 +0200
Processing by SimpleCart::OrdersController#show as HTML
Parameters: {"id"=>"13"}
[1m[36mOrder Load (0.1ms)[0m [1mSELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1[0m [["id", 13]]
[1m[35mBillingAddress Load (0.6ms)[0m SELECT "addresses".* FROM "addresses" WHERE "addresses"."type" IN ('BillingAddress') AND "addresses"."order_id" = ? LIMIT 1 [["order_id", 13]]
Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/orders/show.html.haml within layouts/simple_cart/application (51.7ms)
Completed 500 Internal Server Error in 55ms (ActiveRecord: 1.0ms)
ActionView::Template::Error (uninitialized constant ActionView::CompiledTemplates::Country):
15: %br
16: = @order.billing_address.phone
17: %br
18: = Country.find(@order.billing_address.country).name
19: .col-md-3.col-sm-3
20: %h4
21: Shipping Address
/home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/orders/show.html.haml:18:in `__home_leksster__uby__uby_arage__mazon_simple_cart_app_views_simple_cart_orders_show_html_haml__3851488113884107675_70228055388560'
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 (6.5ms)
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 (1.1ms)
Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/rescues/template_error.html.erb within rescues/layout (20.3ms)
Started GET "/simple_cart/orders/13" for 127.0.0.1 at 2016-03-14 14:31:08 +0200
Processing by SimpleCart::OrdersController#show as HTML
Parameters: {"id"=>"13"}
[1m[36mOrder Load (0.2ms)[0m [1mSELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1[0m [["id", 13]]
[1m[35mBillingAddress Load (0.2ms)[0m SELECT "addresses".* FROM "addresses" WHERE "addresses"."type" IN ('BillingAddress') AND "addresses"."order_id" = ? LIMIT 1 [["order_id", 13]]
[1m[36mShippingAddress Load (0.2ms)[0m [1mSELECT "addresses".* FROM "addresses" WHERE "addresses"."type" IN ('ShippingAddress') AND "addresses"."order_id" = ? LIMIT 1[0m [["order_id", 13]]
[1m[35mDelivery Load (0.1ms)[0m SELECT "deliveries".* FROM "deliveries" WHERE "deliveries"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mCreditCard Load (0.2ms)[0m [1mSELECT "credit_cards".* FROM "credit_cards" WHERE "credit_cards"."order_id" = ? LIMIT 1[0m [["order_id", 13]]
[1m[35mOrderItem Exists (0.2ms)[0m SELECT 1 AS one FROM "order_items" WHERE "order_items"."order_id" = ? LIMIT 1 [["order_id", "13"]]
[1m[36mOrderItem Load (0.2ms)[0m [1mSELECT "order_items".* FROM "order_items" WHERE "order_items"."order_id" = ?[0m [["order_id", "13"]]
Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/orders/show.html.haml within layouts/simple_cart/application (50.6ms)
Completed 500 Internal Server Error in 55ms (ActiveRecord: 2.1ms)
ActionView::Template::Error (undefined method `book' for #):
80: - @order.order_items.each do |item|
81: %tr
82: %td
83: = image_tag(item.book.cover.url)
84: %td
85: = item.book.title
86: %td
activemodel (4.2.5.2) lib/active_model/attribute_methods.rb:433:in `method_missing'
/home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/orders/show.html.haml:83:in `block in __home_leksster__uby__uby_arage__mazon_simple_cart_app_views_simple_cart_orders_show_html_haml__3851488113884107675_70228093992680'
activerecord (4.2.5.2) lib/active_record/relation/delegation.rb:46:in `each'
activerecord (4.2.5.2) lib/active_record/relation/delegation.rb:46:in `each'
/home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/orders/show.html.haml:80:in `__home_leksster__uby__uby_arage__mazon_simple_cart_app_views_simple_cart_orders_show_html_haml__3851488113884107675_70228093992680'
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 (6.4ms)
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 (1.6ms)
Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/rescues/template_error.html.erb within rescues/layout (20.1ms)
Started GET "/simple_cart/orders/13" for 127.0.0.1 at 2016-03-14 14:31:31 +0200
Processing by SimpleCart::OrdersController#show as HTML
Parameters: {"id"=>"13"}
[1m[35mOrder Load (0.1ms)[0m SELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1 [["id", 13]]
[1m[36mBillingAddress Load (0.1ms)[0m [1mSELECT "addresses".* FROM "addresses" WHERE "addresses"."type" IN ('BillingAddress') AND "addresses"."order_id" = ? LIMIT 1[0m [["order_id", 13]]
[1m[35mShippingAddress Load (0.1ms)[0m SELECT "addresses".* FROM "addresses" WHERE "addresses"."type" IN ('ShippingAddress') AND "addresses"."order_id" = ? LIMIT 1 [["order_id", 13]]
[1m[36mDelivery Load (0.1ms)[0m [1mSELECT "deliveries".* FROM "deliveries" WHERE "deliveries"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mCreditCard Load (0.1ms)[0m SELECT "credit_cards".* FROM "credit_cards" WHERE "credit_cards"."order_id" = ? LIMIT 1 [["order_id", 13]]
[1m[36mOrderItem Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "order_items" WHERE "order_items"."order_id" = ? LIMIT 1[0m [["order_id", "13"]]
[1m[35mOrderItem Load (0.1ms)[0m SELECT "order_items".* FROM "order_items" WHERE "order_items"."order_id" = ? [["order_id", "13"]]
[1m[36mItem Load (0.2ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", 2]]
Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/orders/show.html.haml within layouts/simple_cart/application (33.4ms)
Completed 500 Internal Server Error in 37ms (ActiveRecord: 1.4ms)
ActionView::Template::Error (undefined method `cover' for #):
80: - @order.order_items.each do |item|
81: %tr
82: %td
83: = image_tag(item.itemable.cover.url)
84: %td
85: = item.book.title
86: %td
activemodel (4.2.5.2) lib/active_model/attribute_methods.rb:433:in `method_missing'
/home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/orders/show.html.haml:83:in `block in __home_leksster__uby__uby_arage__mazon_simple_cart_app_views_simple_cart_orders_show_html_haml__3851488113884107675_70228097586080'
activerecord (4.2.5.2) lib/active_record/relation/delegation.rb:46:in `each'
activerecord (4.2.5.2) lib/active_record/relation/delegation.rb:46:in `each'
/home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/orders/show.html.haml:80:in `__home_leksster__uby__uby_arage__mazon_simple_cart_app_views_simple_cart_orders_show_html_haml__3851488113884107675_70228097586080'
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 (6.3ms)
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.5ms)
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.5ms)
Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/rescues/template_error.html.erb within rescues/layout (19.7ms)
Started GET "/simple_cart/orders/13" for 127.0.0.1 at 2016-03-14 14:31:39 +0200
Processing by SimpleCart::OrdersController#show as HTML
Parameters: {"id"=>"13"}
[1m[35mOrder Load (0.2ms)[0m SELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1 [["id", 13]]
[1m[36mBillingAddress Load (0.1ms)[0m [1mSELECT "addresses".* FROM "addresses" WHERE "addresses"."type" IN ('BillingAddress') AND "addresses"."order_id" = ? LIMIT 1[0m [["order_id", 13]]
[1m[35mShippingAddress Load (0.1ms)[0m SELECT "addresses".* FROM "addresses" WHERE "addresses"."type" IN ('ShippingAddress') AND "addresses"."order_id" = ? LIMIT 1 [["order_id", 13]]
[1m[36mDelivery Load (0.1ms)[0m [1mSELECT "deliveries".* FROM "deliveries" WHERE "deliveries"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mCreditCard Load (0.1ms)[0m SELECT "credit_cards".* FROM "credit_cards" WHERE "credit_cards"."order_id" = ? LIMIT 1 [["order_id", 13]]
[1m[36mOrderItem Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "order_items" WHERE "order_items"."order_id" = ? LIMIT 1[0m [["order_id", "13"]]
[1m[35mOrderItem Load (0.1ms)[0m SELECT "order_items".* FROM "order_items" WHERE "order_items"."order_id" = ? [["order_id", "13"]]
Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/orders/show.html.haml within layouts/simple_cart/application (20.3ms)
Completed 500 Internal Server Error in 24ms (ActiveRecord: 0.7ms)
ActionView::Template::Error (undefined method `book' for #):
82: %td
83: / = image_tag(item.itemable.cover.url)
84: %td
85: = item.book.title
86: %td
87: $#{item.book.price}
88: %td
activemodel (4.2.5.2) lib/active_model/attribute_methods.rb:433:in `method_missing'
/home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/orders/show.html.haml:85:in `block in __home_leksster__uby__uby_arage__mazon_simple_cart_app_views_simple_cart_orders_show_html_haml__3851488113884107675_70228101518840'
activerecord (4.2.5.2) lib/active_record/relation/delegation.rb:46:in `each'
activerecord (4.2.5.2) lib/active_record/relation/delegation.rb:46:in `each'
/home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/orders/show.html.haml:80:in `__home_leksster__uby__uby_arage__mazon_simple_cart_app_views_simple_cart_orders_show_html_haml__3851488113884107675_70228101518840'
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 (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 (2.5ms)
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.3ms)
Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/rescues/template_error.html.erb within rescues/layout (19.6ms)
Started GET "/simple_cart/orders/13" for 127.0.0.1 at 2016-03-14 14:31:51 +0200
Processing by SimpleCart::OrdersController#show as HTML
Parameters: {"id"=>"13"}
[1m[36mOrder Load (0.1ms)[0m [1mSELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1[0m [["id", 13]]
[1m[35mBillingAddress Load (0.1ms)[0m SELECT "addresses".* FROM "addresses" WHERE "addresses"."type" IN ('BillingAddress') AND "addresses"."order_id" = ? LIMIT 1 [["order_id", 13]]
[1m[36mShippingAddress Load (0.1ms)[0m [1mSELECT "addresses".* FROM "addresses" WHERE "addresses"."type" IN ('ShippingAddress') AND "addresses"."order_id" = ? LIMIT 1[0m [["order_id", 13]]
[1m[35mDelivery Load (0.1ms)[0m SELECT "deliveries".* FROM "deliveries" WHERE "deliveries"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mCreditCard Load (0.1ms)[0m [1mSELECT "credit_cards".* FROM "credit_cards" WHERE "credit_cards"."order_id" = ? LIMIT 1[0m [["order_id", 13]]
[1m[35mOrderItem Exists (0.1ms)[0m SELECT 1 AS one FROM "order_items" WHERE "order_items"."order_id" = ? LIMIT 1 [["order_id", "13"]]
[1m[36mOrderItem Load (0.1ms)[0m [1mSELECT "order_items".* FROM "order_items" WHERE "order_items"."order_id" = ?[0m [["order_id", "13"]]
[1m[35mItem Load (0.1ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 2]]
Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/orders/show.html.haml within layouts/simple_cart/application (21.1ms)
Completed 500 Internal Server Error in 29ms (ActiveRecord: 0.8ms)
ActionView::Template::Error (undefined method `title' for #):
82: %td
83: / = image_tag(item.itemable.cover.url)
84: %td
85: = item.itemable.title
86: %td
87: $#{item.itemable.price}
88: %td
activemodel (4.2.5.2) lib/active_model/attribute_methods.rb:433:in `method_missing'
/home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/orders/show.html.haml:85:in `block in __home_leksster__uby__uby_arage__mazon_simple_cart_app_views_simple_cart_orders_show_html_haml__3851488113884107675_70228051236500'
activerecord (4.2.5.2) lib/active_record/relation/delegation.rb:46:in `each'
activerecord (4.2.5.2) lib/active_record/relation/delegation.rb:46:in `each'
/home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/orders/show.html.haml:80:in `__home_leksster__uby__uby_arage__mazon_simple_cart_app_views_simple_cart_orders_show_html_haml__3851488113884107675_70228051236500'
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 (6.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.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 (1.0ms)
Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/rescues/template_error.html.erb within rescues/layout (20.0ms)
Started GET "/simple_cart/orders/13" for 127.0.0.1 at 2016-03-14 14:31:57 +0200
Processing by SimpleCart::OrdersController#show as HTML
Parameters: {"id"=>"13"}
[1m[36mOrder Load (0.1ms)[0m [1mSELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1[0m [["id", 13]]
[1m[35mBillingAddress Load (0.1ms)[0m SELECT "addresses".* FROM "addresses" WHERE "addresses"."type" IN ('BillingAddress') AND "addresses"."order_id" = ? LIMIT 1 [["order_id", 13]]
[1m[36mShippingAddress Load (0.1ms)[0m [1mSELECT "addresses".* FROM "addresses" WHERE "addresses"."type" IN ('ShippingAddress') AND "addresses"."order_id" = ? LIMIT 1[0m [["order_id", 13]]
[1m[35mDelivery Load (0.0ms)[0m SELECT "deliveries".* FROM "deliveries" WHERE "deliveries"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mCreditCard Load (0.1ms)[0m [1mSELECT "credit_cards".* FROM "credit_cards" WHERE "credit_cards"."order_id" = ? LIMIT 1[0m [["order_id", 13]]
[1m[35mOrderItem Exists (0.1ms)[0m SELECT 1 AS one FROM "order_items" WHERE "order_items"."order_id" = ? LIMIT 1 [["order_id", "13"]]
[1m[36mOrderItem Load (0.1ms)[0m [1mSELECT "order_items".* FROM "order_items" WHERE "order_items"."order_id" = ?[0m [["order_id", "13"]]
[1m[35mItem Load (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 2]]
Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/orders/show.html.haml within layouts/simple_cart/application (17.8ms)
Completed 500 Internal Server Error in 20ms (ActiveRecord: 0.6ms)
ActionView::Template::Error (undefined method `shipping' for #):
97: %br
98: Shipping:
99: %td
100: = number_to_currency(@order.total_price - @order.shipping.costs)
101: %br
102: = number_to_currency(@order.shipping.costs) unless @order.shipping.nil?
103: %tr
activemodel (4.2.5.2) lib/active_model/attribute_methods.rb:433:in `method_missing'
/home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/orders/show.html.haml:100:in `__home_leksster__uby__uby_arage__mazon_simple_cart_app_views_simple_cart_orders_show_html_haml__3851488113884107675_70228055664680'
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.4ms)
Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (2.8ms)
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.5ms)
Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/rescues/template_error.html.erb within rescues/layout (22.2ms)
Started GET "/simple_cart/orders/13" for 127.0.0.1 at 2016-03-14 14:32:09 +0200
Processing by SimpleCart::OrdersController#show as HTML
Parameters: {"id"=>"13"}
[1m[36mOrder Load (0.2ms)[0m [1mSELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1[0m [["id", 13]]
[1m[35mBillingAddress Load (0.1ms)[0m SELECT "addresses".* FROM "addresses" WHERE "addresses"."type" IN ('BillingAddress') AND "addresses"."order_id" = ? LIMIT 1 [["order_id", 13]]
[1m[36mShippingAddress Load (0.1ms)[0m [1mSELECT "addresses".* FROM "addresses" WHERE "addresses"."type" IN ('ShippingAddress') AND "addresses"."order_id" = ? LIMIT 1[0m [["order_id", 13]]
[1m[35mDelivery Load (0.1ms)[0m SELECT "deliveries".* FROM "deliveries" WHERE "deliveries"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mCreditCard Load (0.1ms)[0m [1mSELECT "credit_cards".* FROM "credit_cards" WHERE "credit_cards"."order_id" = ? LIMIT 1[0m [["order_id", 13]]
[1m[35mOrderItem Exists (0.1ms)[0m SELECT 1 AS one FROM "order_items" WHERE "order_items"."order_id" = ? LIMIT 1 [["order_id", "13"]]
[1m[36mOrderItem Load (0.1ms)[0m [1mSELECT "order_items".* FROM "order_items" WHERE "order_items"."order_id" = ?[0m [["order_id", "13"]]
[1m[35mItem Load (0.1ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 2]]
Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/orders/show.html.haml within layouts/simple_cart/application (31.8ms)
Completed 500 Internal Server Error in 36ms (ActiveRecord: 0.9ms)
ActionView::Template::Error (undefined method `edit_order_address_path' for #<#:0x007fbe8264ff58>):
114:
115: .col-md-4
116: - if @order.in_progress?
117: = link_to 'Continue checkout', edit_order_address_path(@order), :class => "btn btn-success btn-block"
/home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/orders/show.html.haml:117:in `__home_leksster__uby__uby_arage__mazon_simple_cart_app_views_simple_cart_orders_show_html_haml__3851488113884107675_70228104081380'
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 (6.5ms)
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 (1.6ms)
Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/rescues/template_error.html.erb within rescues/layout (20.5ms)
Started GET "/simple_cart/orders/13" for 127.0.0.1 at 2016-03-14 14:33:26 +0200
Processing by SimpleCart::OrdersController#show as HTML
Parameters: {"id"=>"13"}
[1m[36mOrder Load (0.1ms)[0m [1mSELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1[0m [["id", 13]]
[1m[35mBillingAddress Load (0.2ms)[0m SELECT "addresses".* FROM "addresses" WHERE "addresses"."type" IN ('BillingAddress') AND "addresses"."order_id" = ? LIMIT 1 [["order_id", 13]]
[1m[36mShippingAddress Load (0.1ms)[0m [1mSELECT "addresses".* FROM "addresses" WHERE "addresses"."type" IN ('ShippingAddress') AND "addresses"."order_id" = ? LIMIT 1[0m [["order_id", 13]]
[1m[35mDelivery Load (0.1ms)[0m SELECT "deliveries".* FROM "deliveries" WHERE "deliveries"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mCreditCard Load (0.1ms)[0m [1mSELECT "credit_cards".* FROM "credit_cards" WHERE "credit_cards"."order_id" = ? LIMIT 1[0m [["order_id", 13]]
[1m[35mOrderItem Exists (0.1ms)[0m SELECT 1 AS one FROM "order_items" WHERE "order_items"."order_id" = ? LIMIT 1 [["order_id", "13"]]
[1m[36mOrderItem Load (0.1ms)[0m [1mSELECT "order_items".* FROM "order_items" WHERE "order_items"."order_id" = ?[0m [["order_id", "13"]]
[1m[35mItem Load (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 2]]
Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/orders/show.html.haml within layouts/simple_cart/application (37.0ms)
Completed 500 Internal Server Error in 40ms (ActiveRecord: 0.7ms)
ActionView::Template::Error (undefined method `order_checkout_index' for #<#:0x00000002bbf498>):
114:
115: .col-md-4
116: - if @order.in_progress?
117: = link_to 'Continue checkout', order_checkout_index(@order), :class => "btn btn-success btn-block"
/home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/orders/show.html.haml:117:in `__home_leksster__uby__uby_arage__mazon_simple_cart_app_views_simple_cart_orders_show_html_haml__3851488113884107675_22851640'
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 (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 (2.5ms)
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/template_error.html.erb within rescues/layout (19.4ms)
Started GET "/simple_cart/orders/13" for 127.0.0.1 at 2016-03-14 14:33:32 +0200
Processing by SimpleCart::OrdersController#show as HTML
Parameters: {"id"=>"13"}
[1m[36mOrder Load (0.1ms)[0m [1mSELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1[0m [["id", 13]]
[1m[35mBillingAddress Load (0.2ms)[0m SELECT "addresses".* FROM "addresses" WHERE "addresses"."type" IN ('BillingAddress') AND "addresses"."order_id" = ? LIMIT 1 [["order_id", 13]]
[1m[36mShippingAddress Load (0.2ms)[0m [1mSELECT "addresses".* FROM "addresses" WHERE "addresses"."type" IN ('ShippingAddress') AND "addresses"."order_id" = ? LIMIT 1[0m [["order_id", 13]]
[1m[35mDelivery Load (0.1ms)[0m SELECT "deliveries".* FROM "deliveries" WHERE "deliveries"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mCreditCard Load (0.1ms)[0m [1mSELECT "credit_cards".* FROM "credit_cards" WHERE "credit_cards"."order_id" = ? LIMIT 1[0m [["order_id", 13]]
[1m[35mOrderItem Exists (0.1ms)[0m SELECT 1 AS one FROM "order_items" WHERE "order_items"."order_id" = ? LIMIT 1 [["order_id", "13"]]
[1m[36mOrderItem Load (0.1ms)[0m [1mSELECT "order_items".* FROM "order_items" WHERE "order_items"."order_id" = ?[0m [["order_id", "13"]]
[1m[35mItem Load (0.1ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 2]]
Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/orders/show.html.haml within layouts/simple_cart/application (19.3ms)
Completed 200 OK in 34ms (Views: 32.4ms | ActiveRecord: 0.8ms)
Started GET "/simple_cart/orders" for 127.0.0.1 at 2016-03-14 14:33:39 +0200
Processing by SimpleCart::OrdersController#index as HTML
Completed 500 Internal Server Error in 3ms (ActiveRecord: 0.0ms)
NoMethodError (undefined method `user_signed_in?' for #):
/home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/controllers/simple_cart/orders_controller.rb:6:in `index'
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: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 (4.7ms)
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 (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 (20.9ms)
Started GET "/simple_cart/orders" for 127.0.0.1 at 2016-03-14 17:53:33 +0200
Processing by SimpleCart::OrdersController#index as HTML
Completed 500 Internal Server Error in 3ms (ActiveRecord: 0.0ms)
NameError (undefined local variable or method `current_user' for #):
/home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/controllers/simple_cart/orders_controller.rb:6:in `index'
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: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 (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.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 (1.0ms)
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.9ms)
Started GET "/simple_cart/orders" for 127.0.0.1 at 2016-03-14 17:54:09 +0200
Processing by SimpleCart::OrdersController#index as HTML
[1m[36mOrder Load (0.4ms)[0m [1mSELECT "orders".* FROM "orders" ORDER BY "orders"."id" DESC[0m
Completed 500 Internal Server Error in 19ms (ActiveRecord: 0.0ms)
NoMethodError (undefined method `page' for #):
activerecord (4.2.5.2) lib/active_record/relation/delegation.rb:136:in `method_missing'
activerecord (4.2.5.2) lib/active_record/relation/delegation.rb:99:in `method_missing'
/home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/controllers/simple_cart/orders_controller.rb:6:in `index'
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: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 (5.3ms)
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 (1.0ms)
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.3ms)
Started GET "/simple_cart/orders" for 127.0.0.1 at 2016-03-14 17:54:34 +0200
Processing by SimpleCart::OrdersController#index as HTML
[1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "orders"
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "orders" WHERE "orders"."aasm_state" = ?[0m [["aasm_state", "in_progress"]]
[1m[35mOrder Load (0.1ms)[0m SELECT "orders".* FROM "orders" WHERE "orders"."aasm_state" = ? ORDER BY "orders"."id" DESC [["aasm_state", "in_progress"]]
[1m[36mOrderItem Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "order_items" WHERE "order_items"."order_id" = ? LIMIT 1[0m [["order_id", "13"]]
[1m[35mOrderItem Load (0.1ms)[0m SELECT "order_items".* FROM "order_items" WHERE "order_items"."order_id" = ? [["order_id", "13"]]
Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/orders/index.html.haml within layouts/simple_cart/application (24.0ms)
Completed 500 Internal Server Error in 40ms (ActiveRecord: 1.4ms)
ActionView::Template::Error (undefined method `book' for #):
33: - order.order_items.each do |item|
34: %tr
35: %td
36: = image_tag(item.book.cover.url)
37: %td
38: = item.book.title
39: %td
activemodel (4.2.5.2) lib/active_model/attribute_methods.rb:433:in `method_missing'
/home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/orders/index.html.haml:36:in `block (2 levels) in __home_leksster__uby__uby_arage__mazon_simple_cart_app_views_simple_cart_orders_index_html_haml___551046158169825831_70228055590680'
activerecord (4.2.5.2) lib/active_record/relation/delegation.rb:46:in `each'
activerecord (4.2.5.2) lib/active_record/relation/delegation.rb:46:in `each'
/home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/orders/index.html.haml:33:in `block in __home_leksster__uby__uby_arage__mazon_simple_cart_app_views_simple_cart_orders_index_html_haml___551046158169825831_70228055590680'
activerecord (4.2.5.2) lib/active_record/relation/delegation.rb:46:in `each'
activerecord (4.2.5.2) lib/active_record/relation/delegation.rb:46:in `each'
/home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/orders/index.html.haml:15:in `__home_leksster__uby__uby_arage__mazon_simple_cart_app_views_simple_cart_orders_index_html_haml___551046158169825831_70228055590680'
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 (6.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.4ms)
Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (1.0ms)
Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/rescues/template_error.html.erb within rescues/layout (19.8ms)
Started GET "/simple_cart/orders" for 127.0.0.1 at 2016-03-14 17:55:11 +0200
Processing by SimpleCart::OrdersController#index as HTML
[1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "orders"[0m
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "orders" WHERE "orders"."aasm_state" = ? [["aasm_state", "in_progress"]]
[1m[36mOrder Load (0.1ms)[0m [1mSELECT "orders".* FROM "orders" WHERE "orders"."aasm_state" = ? ORDER BY "orders"."id" DESC[0m [["aasm_state", "in_progress"]]
[1m[35mOrderItem Exists (0.1ms)[0m SELECT 1 AS one FROM "order_items" WHERE "order_items"."order_id" = ? LIMIT 1 [["order_id", "13"]]
[1m[36mOrderItem Load (0.1ms)[0m [1mSELECT "order_items".* FROM "order_items" WHERE "order_items"."order_id" = ?[0m [["order_id", "13"]]
[1m[35mItem Load (0.1ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 2]]
Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/orders/index.html.haml within layouts/simple_cart/application (16.8ms)
Completed 500 Internal Server Error in 19ms (ActiveRecord: 0.8ms)
ActionView::Template::Error (undefined method `title' for #):
35: %td
36: / = image_tag(item.book.cover.url)
37: %td
38: = item.itemable.title
39: %td
40: $#{item.itemable.price}
41: %td
activemodel (4.2.5.2) lib/active_model/attribute_methods.rb:433:in `method_missing'
/home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/orders/index.html.haml:38:in `block (2 levels) in __home_leksster__uby__uby_arage__mazon_simple_cart_app_views_simple_cart_orders_index_html_haml___551046158169825831_70228055638340'
activerecord (4.2.5.2) lib/active_record/relation/delegation.rb:46:in `each'
activerecord (4.2.5.2) lib/active_record/relation/delegation.rb:46:in `each'
/home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/orders/index.html.haml:33:in `block in __home_leksster__uby__uby_arage__mazon_simple_cart_app_views_simple_cart_orders_index_html_haml___551046158169825831_70228055638340'
activerecord (4.2.5.2) lib/active_record/relation/delegation.rb:46:in `each'
activerecord (4.2.5.2) lib/active_record/relation/delegation.rb:46:in `each'
/home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/orders/index.html.haml:15:in `__home_leksster__uby__uby_arage__mazon_simple_cart_app_views_simple_cart_orders_index_html_haml___551046158169825831_70228055638340'
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 (6.3ms)
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/template_error.html.erb within rescues/layout (18.9ms)
Started GET "/simple_cart/orders" for 127.0.0.1 at 2016-03-14 17:55:17 +0200
Processing by SimpleCart::OrdersController#index as HTML
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "orders"[0m
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "orders" WHERE "orders"."aasm_state" = ? [["aasm_state", "in_progress"]]
[1m[36mOrder Load (0.1ms)[0m [1mSELECT "orders".* FROM "orders" WHERE "orders"."aasm_state" = ? ORDER BY "orders"."id" DESC[0m [["aasm_state", "in_progress"]]
[1m[35mOrderItem Exists (0.1ms)[0m SELECT 1 AS one FROM "order_items" WHERE "order_items"."order_id" = ? LIMIT 1 [["order_id", "13"]]
[1m[36mOrderItem Load (0.1ms)[0m [1mSELECT "order_items".* FROM "order_items" WHERE "order_items"."order_id" = ?[0m [["order_id", "13"]]
[1m[35mItem Load (0.1ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 2]]
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "orders" WHERE "orders"."aasm_state" = ?[0m [["aasm_state", "in_queue"]]
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "orders" WHERE "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 (13.9ms)
Completed 200 OK in 27ms (Views: 25.2ms | ActiveRecord: 0.7ms)
Started GET "/simple_cart/orders/13/checkout" for 127.0.0.1 at 2016-03-14 17:55:24 +0200
Processing by SimpleCart::CheckoutController#index as HTML
Parameters: {"order_id"=>"13"}
[1m[36mOrder Load (0.2ms)[0m [1mSELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1[0m [["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-14 17:55:24 +0200
Processing by SimpleCart::CheckoutController#show as HTML
Parameters: {"order_id"=>"13", "id"=>"billing"}
[1m[35mOrder Load (0.1ms)[0m SELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1 [["id", 13]]
[1m[36mBillingAddress Load (0.3ms)[0m [1mSELECT "addresses".* FROM "addresses" WHERE "addresses"."type" IN ('BillingAddress') AND "addresses"."order_id" = ? LIMIT 1[0m [["order_id", 13]]
[1m[35mShippingAddress Load (0.2ms)[0m SELECT "addresses".* FROM "addresses" WHERE "addresses"."type" IN ('ShippingAddress') AND "addresses"."order_id" = ? LIMIT 1 [["order_id", 13]]
[1m[36mCreditCard Load (0.2ms)[0m [1mSELECT "credit_cards".* FROM "credit_cards" WHERE "credit_cards"."order_id" = ? LIMIT 1[0m [["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/_address.html.haml (7.4ms)
Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/billing.html.haml within layouts/simple_cart/application (12.8ms)
Completed 200 OK in 68ms (Views: 28.6ms | ActiveRecord: 1.5ms)
Started GET "/simple_cart/cart" for 127.0.0.1 at 2016-03-14 17:55:31 +0200
Processing by SimpleCart::CartsController#show as HTML
[1m[35mItem Load (0.1ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 2]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "2"]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "2"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "2"]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "2"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "2"]]
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 39ms (Views: 36.0ms | ActiveRecord: 0.2ms)
Started GET "/simple_cart/" for 127.0.0.1 at 2016-03-14 17:55:32 +0200
Processing by SimpleCart::CartsController#show as HTML
[1m[35mItem Load (0.1ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 2]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "2"]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "2"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "2"]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "2"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "2"]]
Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml within layouts/simple_cart/application (9.1ms)
Completed 200 OK in 27ms (Views: 26.5ms | ActiveRecord: 0.1ms)
Started GET "/items" for 127.0.0.1 at 2016-03-14 17:55:35 +0200
Processing by ItemsController#index as HTML
[1m[35mItem Load (0.2ms)[0m SELECT "items".* FROM "items"
Rendered items/index.html.erb (1.9ms)
Completed 200 OK in 6ms (Views: 5.0ms | ActiveRecord: 0.2ms)
Started GET "/items/3" for 127.0.0.1 at 2016-03-14 17:55:37 +0200
Processing by ItemsController#show as HTML
Parameters: {"id"=>"3"}
[1m[36mItem Load (0.1ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", 3]]
Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/carts/_buy.html.haml (5.2ms)
Rendered items/show.html.erb (6.5ms)
Completed 200 OK in 10ms (Views: 8.8ms | ActiveRecord: 0.1ms)
Started POST "/simple_cart/cart/3" for 127.0.0.1 at 2016-03-14 17:55:39 +0200
Processing by SimpleCart::CartsController#add as HTML
Parameters: {"utf8"=>"✓", "authenticity_token"=>"cXTw6As0bU6HxZVLeLJbElO299A8r2rkcgMoPDgh9hS3ZM3kkOJhuI64PCBr9yJmEEC1lbCPu/p4jdNdVTZYhQ==", "qty"=>"2", "klass"=>"Item", "commit"=>"Add to cart", "item_id"=>"3"}
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-14 17:55:39 +0200
Processing by SimpleCart::CartsController#show as HTML
[1m[35mItem Load (0.1ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 2]]
[1m[36mItem Load (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", 3]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "2"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "3"]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "2"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "3"]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "2"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "3"]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "2"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "3"]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "2"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "3"]]
Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml within layouts/simple_cart/application (13.1ms)
Completed 200 OK in 25ms (Views: 24.3ms | ActiveRecord: 0.2ms)
Started GET "/simple_cart/cart/checkout" for 127.0.0.1 at 2016-03-14 17:55:41 +0200
Processing by SimpleCart::CartsController#checkout as HTML
[1m[35mItem Load (0.1ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 2]]
[1m[36mItem Load (0.1ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", 3]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "2"]]
[1m[36mCACHE (0.1ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "3"]]
[1m[35m (0.2ms)[0m begin transaction
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "orders" ("total_price", "completed_date", "aasm_state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["total_price", 127110.0], ["completed_date", "2016-03-14"], ["aasm_state", "in_progress"], ["created_at", "2016-03-14 15:55:41.794244"], ["updated_at", "2016-03-14 15:55:41.794244"]]
[1m[35mSQL (0.3ms)[0m INSERT INTO "order_items" ("price", "qty", "itemable_id", "itemable_type", "order_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["price", 25412.0], ["qty", 5], ["itemable_id", 2], ["itemable_type", "Item"], ["order_id", "14"], ["created_at", "2016-03-14 15:55:41.796105"], ["updated_at", "2016-03-14 15:55:41.796105"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "order_items" ("price", "qty", "itemable_id", "itemable_type", "order_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["price", 25.0], ["qty", 2], ["itemable_id", 3], ["itemable_type", "Item"], ["order_id", "14"], ["created_at", "2016-03-14 15:55:41.798419"], ["updated_at", "2016-03-14 15:55:41.798419"]]
[1m[35m (51.1ms)[0m commit transaction
Redirected to http://localhost:3000/simple_cart/orders/14/checkout
Completed 302 Found in 62ms (ActiveRecord: 52.2ms)
Started GET "/simple_cart/orders/14/checkout" for 127.0.0.1 at 2016-03-14 17:55:41 +0200
Processing by SimpleCart::CheckoutController#index as HTML
Parameters: {"order_id"=>"14"}
[1m[36mOrder Load (0.1ms)[0m [1mSELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1[0m [["id", 14]]
Redirected to http://localhost:3000/simple_cart/orders/14/checkout/billing
Completed 302 Found in 2ms (ActiveRecord: 0.1ms)
Started GET "/simple_cart/orders/14/checkout/billing" for 127.0.0.1 at 2016-03-14 17:55:41 +0200
Processing by SimpleCart::CheckoutController#show as HTML
Parameters: {"order_id"=>"14", "id"=>"billing"}
[1m[35mOrder Load (0.1ms)[0m SELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1 [["id", 14]]
[1m[36mBillingAddress Load (0.1ms)[0m [1mSELECT "addresses".* FROM "addresses" WHERE "addresses"."type" IN ('BillingAddress') AND "addresses"."order_id" = ? LIMIT 1[0m [["order_id", 14]]
[1m[35mShippingAddress Load (0.1ms)[0m SELECT "addresses".* FROM "addresses" WHERE "addresses"."type" IN ('ShippingAddress') AND "addresses"."order_id" = ? LIMIT 1 [["order_id", 14]]
[1m[36mCreditCard Load (0.1ms)[0m [1mSELECT "credit_cards".* FROM "credit_cards" WHERE "credit_cards"."order_id" = ? LIMIT 1[0m [["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 (9.1ms)
Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/billing.html.haml within layouts/simple_cart/application (13.9ms)
Completed 200 OK in 31ms (Views: 26.3ms | ActiveRecord: 0.3ms)
Started PATCH "/simple_cart/orders/14/checkout/billing" for 127.0.0.1 at 2016-03-14 17:55:43 +0200
Processing by SimpleCart::CheckoutController#update as HTML
Parameters: {"utf8"=>"✓", "authenticity_token"=>"4jSDKB7SRCvZ/WkhqcrIsDfWzJDCthScR66oWZu3CfQkJL4khQRI3dCAwEq6j7HEdCCO1U6WxYJNIFM49qCnZQ==", "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"}
[1m[35mOrder Load (0.1ms)[0m SELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1 [["id", 14]]
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
[1m[35mBillingAddress Load (0.1ms)[0m SELECT "addresses".* FROM "addresses" WHERE "addresses"."type" IN ('BillingAddress') AND "addresses"."order_id" = ? LIMIT 1 [["order_id", 14]]
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.1ms)[0m begin transaction
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
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 (11.6ms)
Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/billing.html.haml within layouts/simple_cart/application (21.5ms)
Completed 200 OK in 60ms (Views: 38.9ms | ActiveRecord: 0.5ms)
Started PATCH "/simple_cart/orders/14/checkout/billing" for 127.0.0.1 at 2016-03-14 17:55:53 +0200
Processing by SimpleCart::CheckoutController#update as HTML
Parameters: {"utf8"=>"✓", "authenticity_token"=>"msUENNXweuUpwhEhlGpYsBsuraaF5zFchtCNyEqkRUVc1Tk4TiZ2EyC/uEqHLyHEWNjv4wnH4EKMXnapJ7Pr1A==", "order"=>{"billing_address_attributes"=>{"firstname"=>"bcvb", "lastname"=>"cvn", "address"=>"ncvnvcn", "zipcode"=>"ncvncv", "city"=>"ncvncvn", "phone"=>"cvncvn", "country"=>"Afghanistan"}}, "shipping"=>{"use_billing_address"=>"true"}, "commit"=>"Save and continue", "order_id"=>"14", "id"=>"billing"}
[1m[35mOrder Load (0.1ms)[0m SELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1 [["id", 14]]
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
[1m[35mBillingAddress Load (0.1ms)[0m SELECT "addresses".* FROM "addresses" WHERE "addresses"."type" IN ('BillingAddress') AND "addresses"."order_id" = ? LIMIT 1 [["order_id", 14]]
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "addresses" ("type", "firstname", "lastname", "address", "zipcode", "city", "phone", "country", "order_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["type", "BillingAddress"], ["firstname", "bcvb"], ["lastname", "cvn"], ["address", "ncvnvcn"], ["zipcode", "ncvncv"], ["city", "ncvncvn"], ["phone", "cvncvn"], ["country", "Afghanistan"], ["order_id", 14], ["created_at", "2016-03-14 15:55:53.987359"], ["updated_at", "2016-03-14 15:55:53.987359"]]
[1m[35m (76.4ms)[0m commit transaction
[1m[36mShippingAddress Load (0.1ms)[0m [1mSELECT "addresses".* FROM "addresses" WHERE "addresses"."type" IN ('ShippingAddress') AND "addresses"."order_id" = ? LIMIT 1[0m [["order_id", 14]]
[1m[35m (0.0ms)[0m begin transaction
[1m[36mSQL (0.7ms)[0m [1mINSERT INTO "addresses" ("type", "order_id", "address", "zipcode", "city", "phone", "country", "created_at", "updated_at", "firstname", "lastname") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["type", "ShippingAddress"], ["order_id", 14], ["address", "ncvnvcn"], ["zipcode", "ncvncv"], ["city", "ncvncvn"], ["phone", "cvncvn"], ["country", "Afghanistan"], ["created_at", "2016-03-14 15:55:53.987359"], ["updated_at", "2016-03-14 15:55:53.987359"], ["firstname", "bcvb"], ["lastname", "cvn"]]
[1m[35m (102.3ms)[0m commit transaction
Redirected to http://localhost:3000/simple_cart/orders/14/checkout/delivery
Completed 302 Found in 192ms (ActiveRecord: 180.1ms)
Started GET "/simple_cart/orders/14/checkout/delivery" for 127.0.0.1 at 2016-03-14 17:55:54 +0200
Processing by SimpleCart::CheckoutController#show as HTML
Parameters: {"order_id"=>"14", "id"=>"delivery"}
[1m[36mOrder Load (0.1ms)[0m [1mSELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1[0m [["id", 14]]
[1m[35mShippingAddress Load (0.1ms)[0m SELECT "addresses".* FROM "addresses" WHERE "addresses"."type" IN ('ShippingAddress') AND "addresses"."order_id" = ? LIMIT 1 [["order_id", 14]]
[1m[36mBillingAddress Load (0.8ms)[0m [1mSELECT "addresses".* FROM "addresses" WHERE "addresses"."type" IN ('BillingAddress') AND "addresses"."order_id" = ? LIMIT 1[0m [["order_id", 14]]
[1m[35mCreditCard Load (0.1ms)[0m SELECT "credit_cards".* FROM "credit_cards" WHERE "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.4ms)
[1m[36mDelivery Load (0.2ms)[0m [1mSELECT "deliveries".* FROM "deliveries"[0m
[1m[35mDelivery Load (0.2ms)[0m SELECT "deliveries".* FROM "deliveries" ORDER BY "deliveries"."id" ASC LIMIT 1
[1m[36mCACHE (0.0ms)[0m [1mSELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1[0m [["id", "14"]]
[1m[35mCACHE (0.0ms)[0m SELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1 [["id", "14"]]
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/delivery.html.haml within layouts/simple_cart/application (17.3ms)
Completed 200 OK in 36ms (Views: 30.2ms | ActiveRecord: 1.8ms)
Started PATCH "/simple_cart/orders/14/checkout/delivery" for 127.0.0.1 at 2016-03-14 17:55:55 +0200
Processing by SimpleCart::CheckoutController#update as HTML
Parameters: {"utf8"=>"✓", "authenticity_token"=>"JvnpobvVmDc3Pd7nBxJS8IA7nxep1+udVVudZrA2Ztvg6dStIAOUwT5Ad4wUVyuEw83dUiX3OoNf1WYH3SHISg==", "order"=>{"delivery_id"=>"1"}, "commit"=>"Continue", "order_id"=>"14", "id"=>"delivery"}
[1m[36mOrder Load (0.1ms)[0m [1mSELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1[0m [["id", 14]]
[1m[35mDelivery Load (0.9ms)[0m SELECT "deliveries".* FROM "deliveries" WHERE "deliveries"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
[1m[35mSQL (0.2ms)[0m UPDATE "orders" SET "delivery_id" = ?, "updated_at" = ? WHERE "orders"."id" = ? [["delivery_id", 1], ["updated_at", "2016-03-14 15:55:55.382434"], ["id", 14]]
[1m[36m (217.4ms)[0m [1mcommit transaction[0m
Redirected to http://localhost:3000/simple_cart/orders/14/checkout/payment
Completed 302 Found in 223ms (ActiveRecord: 218.8ms)
Started GET "/simple_cart/orders/14/checkout/payment" for 127.0.0.1 at 2016-03-14 17:55:55 +0200
Processing by SimpleCart::CheckoutController#show as HTML
Parameters: {"order_id"=>"14", "id"=>"payment"}
[1m[35mOrder Load (0.1ms)[0m SELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1 [["id", 14]]
[1m[36mDelivery Load (0.1ms)[0m [1mSELECT "deliveries".* FROM "deliveries" WHERE "deliveries"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mBillingAddress Load (0.1ms)[0m SELECT "addresses".* FROM "addresses" WHERE "addresses"."type" IN ('BillingAddress') AND "addresses"."order_id" = ? LIMIT 1 [["order_id", 14]]
[1m[36mShippingAddress Load (0.1ms)[0m [1mSELECT "addresses".* FROM "addresses" WHERE "addresses"."type" IN ('ShippingAddress') AND "addresses"."order_id" = ? LIMIT 1[0m [["order_id", 14]]
[1m[35mCreditCard Load (0.1ms)[0m SELECT "credit_cards".* FROM "credit_cards" WHERE "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 (2.5ms)
Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/payment.html.haml within layouts/simple_cart/application (13.4ms)
Completed 200 OK in 44ms (Views: 38.3ms | ActiveRecord: 0.5ms)
Started PATCH "/simple_cart/orders/14/checkout/payment" for 127.0.0.1 at 2016-03-14 17:56:01 +0200
Processing by SimpleCart::CheckoutController#update as HTML
Parameters: {"utf8"=>"✓", "authenticity_token"=>"FuYsxxE1BnCbUHbBt+LcfttXAJfF8dnmKbMr1QC3vOjQ9hHLiuMKhpIt36qkp6UKmKFC0knRCPgjPdC0baASeQ==", "order"=>{"credit_card_attributes"=>{"number"=>"1111111111111111", "expiration_month"=>"02", "expiration_year"=>"2017", "cvv"=>"252", "firstname"=>"125", "lastname"=>"215"}}, "commit"=>"Continue", "order_id"=>"14", "id"=>"payment"}
[1m[36mOrder Load (0.1ms)[0m [1mSELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1[0m [["id", 14]]
[1m[35m (0.1ms)[0m begin transaction
[1m[36mCreditCard Load (0.1ms)[0m [1mSELECT "credit_cards".* FROM "credit_cards" WHERE "credit_cards"."order_id" = ? LIMIT 1[0m [["order_id", 14]]
[1m[35mSQL (0.3ms)[0m INSERT INTO "credit_cards" ("number", "expiration_month", "expiration_year", "cvv", "firstname", "lastname", "order_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["number", "1111111111111111"], ["expiration_month", "02"], ["expiration_year", "2017"], ["cvv", "252"], ["firstname", "125"], ["lastname", "215"], ["order_id", 14], ["created_at", "2016-03-14 15:56:01.271094"], ["updated_at", "2016-03-14 15:56:01.271094"]]
[1m[36m (98.5ms)[0m [1mcommit transaction[0m
[1m[35m (0.1ms)[0m begin transaction
[1m[36m (0.1ms)[0m [1mcommit transaction[0m
Redirected to http://localhost:3000/simple_cart/orders/14/checkout/confirm
Completed 302 Found in 108ms (ActiveRecord: 99.3ms)
Started GET "/simple_cart/orders/14/checkout/confirm" for 127.0.0.1 at 2016-03-14 17:56:01 +0200
Processing by SimpleCart::CheckoutController#show as HTML
Parameters: {"order_id"=>"14", "id"=>"confirm"}
[1m[35mOrder Load (0.1ms)[0m SELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1 [["id", 14]]
[1m[36mCreditCard Load (0.1ms)[0m [1mSELECT "credit_cards".* FROM "credit_cards" WHERE "credit_cards"."order_id" = ? LIMIT 1[0m [["order_id", 14]]
[1m[35mBillingAddress Load (0.1ms)[0m SELECT "addresses".* FROM "addresses" WHERE "addresses"."type" IN ('BillingAddress') AND "addresses"."order_id" = ? LIMIT 1 [["order_id", 14]]
[1m[36mShippingAddress Load (0.1ms)[0m [1mSELECT "addresses".* FROM "addresses" WHERE "addresses"."type" IN ('ShippingAddress') AND "addresses"."order_id" = ? LIMIT 1[0m [["order_id", 14]]
Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/_progress.html.haml (1.1ms)
[1m[35mDelivery Load (0.2ms)[0m SELECT "deliveries".* FROM "deliveries" WHERE "deliveries"."id" = ? LIMIT 1 [["id", 1]]
Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/_overview.html.haml (3.4ms)
[1m[36mOrderItem Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "order_items" WHERE "order_items"."order_id" = ? LIMIT 1[0m [["order_id", "14"]]
[1m[35mOrderItem Load (0.1ms)[0m SELECT "order_items".* FROM "order_items" WHERE "order_items"."order_id" = ? [["order_id", "14"]]
[1m[36mItem Load (0.1ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", 2]]
[1m[35mItem Load (0.1ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 3]]
Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/confirm.html.haml within layouts/simple_cart/application (12.7ms)
Completed 200 OK in 26ms (Views: 23.2ms | ActiveRecord: 0.8ms)
Started GET "/simple_cart/orders/14" for 127.0.0.1 at 2016-03-14 17:56:03 +0200
Processing by SimpleCart::OrdersController#show as HTML
Parameters: {"id"=>"14"}
[1m[36mOrder Load (0.1ms)[0m [1mSELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1[0m [["id", 14]]
[1m[35mBillingAddress Load (0.1ms)[0m SELECT "addresses".* FROM "addresses" WHERE "addresses"."type" IN ('BillingAddress') AND "addresses"."order_id" = ? LIMIT 1 [["order_id", 14]]
[1m[36mShippingAddress Load (0.1ms)[0m [1mSELECT "addresses".* FROM "addresses" WHERE "addresses"."type" IN ('ShippingAddress') AND "addresses"."order_id" = ? LIMIT 1[0m [["order_id", 14]]
[1m[35mDelivery Load (0.1ms)[0m SELECT "deliveries".* FROM "deliveries" WHERE "deliveries"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mCreditCard Load (0.1ms)[0m [1mSELECT "credit_cards".* FROM "credit_cards" WHERE "credit_cards"."order_id" = ? LIMIT 1[0m [["order_id", 14]]
[1m[35mOrderItem Exists (0.1ms)[0m SELECT 1 AS one FROM "order_items" WHERE "order_items"."order_id" = ? LIMIT 1 [["order_id", "14"]]
[1m[36mOrderItem Load (0.1ms)[0m [1mSELECT "order_items".* FROM "order_items" WHERE "order_items"."order_id" = ?[0m [["order_id", "14"]]
[1m[35mItem Load (0.1ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 2]]
[1m[36mItem Load (0.1ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", 3]]
Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/orders/show.html.haml within layouts/simple_cart/application (11.6ms)
Completed 200 OK in 24ms (Views: 22.6ms | ActiveRecord: 0.9ms)
[1m[36mOrder Load (0.5ms)[0m [1mSELECT "orders".* FROM "orders"[0m
[1m[35mOrder Load (0.3ms)[0m SELECT "orders".* FROM "orders" ORDER BY "orders"."id" ASC LIMIT 1
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
[1m[35mSQL (0.4ms)[0m UPDATE "orders" SET "aasm_state" = ?, "updated_at" = ? WHERE "orders"."id" = ? [["aasm_state", "in_queue"], ["updated_at", "2016-03-14 15:57:44.803770"], ["id", 13]]
[1m[36m (62.3ms)[0m [1mcommit transaction[0m
Started GET "/simple_cart/orders" for 127.0.0.1 at 2016-03-14 17:58:56 +0200
Processing by SimpleCart::OrdersController#index as HTML
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "orders"
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "orders" WHERE "orders"."aasm_state" = ?[0m [["aasm_state", "in_progress"]]
[1m[35mOrder Load (0.1ms)[0m SELECT "orders".* FROM "orders" WHERE "orders"."aasm_state" = ? ORDER BY "orders"."id" DESC [["aasm_state", "in_progress"]]
[1m[36mOrderItem Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "order_items" WHERE "order_items"."order_id" = ? LIMIT 1[0m [["order_id", "14"]]
[1m[35mOrderItem Load (0.1ms)[0m SELECT "order_items".* FROM "order_items" WHERE "order_items"."order_id" = ? [["order_id", "14"]]
[1m[36mItem Load (0.1ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", 2]]
[1m[35mItem Load (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 3]]
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "orders" WHERE "orders"."aasm_state" = ?[0m [["aasm_state", "in_queue"]]
[1m[35mOrder Load (0.0ms)[0m SELECT "orders".* FROM "orders" WHERE "orders"."aasm_state" = ? ORDER BY "orders"."id" DESC [["aasm_state", "in_queue"]]
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "orders" WHERE "orders"."aasm_state" = ?[0m [["aasm_state", "delivered"]]
Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/orders/index.html.haml within layouts/simple_cart/application (6.7ms)
Completed 200 OK in 20ms (Views: 18.0ms | ActiveRecord: 0.7ms)
Started GET "/" for 127.0.0.1 at 2016-03-14 17:59:00 +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.0ms)
Completed 200 OK in 1ms (Views: 0.8ms | ActiveRecord: 0.0ms)
Started GET "/simple_cart/cart" for 127.0.0.1 at 2016-03-14 17:59:03 +0200
Processing by SimpleCart::CartsController#show as HTML
[1m[35mItem Load (0.1ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 2]]
[1m[36mItem Load (0.1ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", 3]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "2"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "3"]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "2"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "3"]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "2"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "3"]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "2"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "3"]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "2"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "3"]]
Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml within layouts/simple_cart/application (15.4ms)
Completed 200 OK in 26ms (Views: 25.4ms | ActiveRecord: 0.3ms)
Started GET "/simple_cart/cart/checkout" for 127.0.0.1 at 2016-03-14 17:59:05 +0200
Processing by SimpleCart::CartsController#checkout as HTML
[1m[35mItem Load (0.1ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 2]]
[1m[36mItem Load (0.1ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", 3]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "2"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "3"]]
[1m[35m (0.1ms)[0m begin transaction
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "orders" ("total_price", "completed_date", "aasm_state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["total_price", 127110.0], ["completed_date", "2016-03-14"], ["aasm_state", "in_progress"], ["created_at", "2016-03-14 15:59:05.091645"], ["updated_at", "2016-03-14 15:59:05.091645"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "order_items" ("price", "qty", "itemable_id", "itemable_type", "order_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["price", 25412.0], ["qty", 5], ["itemable_id", 2], ["itemable_type", "Item"], ["order_id", "15"], ["created_at", "2016-03-14 15:59:05.093769"], ["updated_at", "2016-03-14 15:59:05.093769"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "order_items" ("price", "qty", "itemable_id", "itemable_type", "order_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["price", 25.0], ["qty", 2], ["itemable_id", 3], ["itemable_type", "Item"], ["order_id", "15"], ["created_at", "2016-03-14 15:59:05.095519"], ["updated_at", "2016-03-14 15:59:05.095519"]]
[1m[35m (65.6ms)[0m commit transaction
Redirected to http://localhost:3000/simple_cart/orders/15/checkout
Completed 302 Found in 76ms (ActiveRecord: 66.5ms)
Started GET "/simple_cart/orders/15/checkout" for 127.0.0.1 at 2016-03-14 17:59:05 +0200
Processing by SimpleCart::CheckoutController#index as HTML
Parameters: {"order_id"=>"15"}
[1m[36mOrder Load (0.1ms)[0m [1mSELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1[0m [["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-14 17:59:05 +0200
Processing by SimpleCart::CheckoutController#show as HTML
Parameters: {"order_id"=>"15", "id"=>"billing"}
[1m[35mOrder Load (0.1ms)[0m SELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1 [["id", 15]]
[1m[36mBillingAddress Load (0.1ms)[0m [1mSELECT "addresses".* FROM "addresses" WHERE "addresses"."type" IN ('BillingAddress') AND "addresses"."order_id" = ? LIMIT 1[0m [["order_id", 15]]
[1m[35mShippingAddress Load (0.1ms)[0m SELECT "addresses".* FROM "addresses" WHERE "addresses"."type" IN ('ShippingAddress') AND "addresses"."order_id" = ? LIMIT 1 [["order_id", 15]]
[1m[36mCreditCard Load (0.1ms)[0m [1mSELECT "credit_cards".* FROM "credit_cards" WHERE "credit_cards"."order_id" = ? LIMIT 1[0m [["order_id", 15]]
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.6ms)
Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/billing.html.haml within layouts/simple_cart/application (12.6ms)
Completed 200 OK in 29ms (Views: 23.7ms | ActiveRecord: 0.4ms)
Started PATCH "/simple_cart/orders/15/checkout/billing" for 127.0.0.1 at 2016-03-14 17:59:09 +0200
Processing by SimpleCart::CheckoutController#update as HTML
Parameters: {"utf8"=>"✓", "authenticity_token"=>"i+syh8t9N0EAnM8qPAgnvDfbfo/Pf+NFT1czWuVFp55N+w+LUKs7twnhZkEvTV7IdC08ykNfMltF2cg7iFIJDw==", "order"=>{"billing_address_attributes"=>{"firstname"=>"vzxv", "lastname"=>"zxv", "address"=>"xzvzx", "zipcode"=>"vzxv", "city"=>"vxzv", "phone"=>"zxv", "country"=>"Afghanistan"}}, "shipping"=>{"use_billing_address"=>"true"}, "commit"=>"Save and continue", "order_id"=>"15", "id"=>"billing"}
[1m[35mOrder Load (0.1ms)[0m SELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1 [["id", 15]]
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
[1m[35mBillingAddress Load (0.1ms)[0m SELECT "addresses".* FROM "addresses" WHERE "addresses"."type" IN ('BillingAddress') AND "addresses"."order_id" = ? LIMIT 1 [["order_id", 15]]
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "addresses" ("type", "firstname", "lastname", "address", "zipcode", "city", "phone", "country", "order_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["type", "BillingAddress"], ["firstname", "vzxv"], ["lastname", "zxv"], ["address", "xzvzx"], ["zipcode", "vzxv"], ["city", "vxzv"], ["phone", "zxv"], ["country", "Afghanistan"], ["order_id", 15], ["created_at", "2016-03-14 15:59:09.812325"], ["updated_at", "2016-03-14 15:59:09.812325"]]
[1m[35m (58.1ms)[0m commit transaction
[1m[36mShippingAddress Load (0.1ms)[0m [1mSELECT "addresses".* FROM "addresses" WHERE "addresses"."type" IN ('ShippingAddress') AND "addresses"."order_id" = ? LIMIT 1[0m [["order_id", 15]]
[1m[35m (0.1ms)[0m begin transaction
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "addresses" ("type", "order_id", "address", "zipcode", "city", "phone", "country", "created_at", "updated_at", "firstname", "lastname") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["type", "ShippingAddress"], ["order_id", 15], ["address", "xzvzx"], ["zipcode", "vzxv"], ["city", "vxzv"], ["phone", "zxv"], ["country", "Afghanistan"], ["created_at", "2016-03-14 15:59:09.812325"], ["updated_at", "2016-03-14 15:59:09.812325"], ["firstname", "vzxv"], ["lastname", "zxv"]]
[1m[35m (249.9ms)[0m commit transaction
Redirected to http://localhost:3000/simple_cart/orders/15/checkout/delivery
Completed 302 Found in 318ms (ActiveRecord: 308.8ms)
Started GET "/simple_cart/orders/15/checkout/delivery" for 127.0.0.1 at 2016-03-14 17:59:10 +0200
Processing by SimpleCart::CheckoutController#show as HTML
Parameters: {"order_id"=>"15", "id"=>"delivery"}
[1m[36mOrder Load (0.1ms)[0m [1mSELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1[0m [["id", 15]]
[1m[35mShippingAddress Load (0.1ms)[0m SELECT "addresses".* FROM "addresses" WHERE "addresses"."type" IN ('ShippingAddress') AND "addresses"."order_id" = ? LIMIT 1 [["order_id", 15]]
[1m[36mBillingAddress Load (0.1ms)[0m [1mSELECT "addresses".* FROM "addresses" WHERE "addresses"."type" IN ('BillingAddress') AND "addresses"."order_id" = ? LIMIT 1[0m [["order_id", 15]]
[1m[35mCreditCard Load (0.0ms)[0m SELECT "credit_cards".* FROM "credit_cards" WHERE "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.0ms)
[1m[36mDelivery Load (0.1ms)[0m [1mSELECT "deliveries".* FROM "deliveries"[0m
[1m[35mDelivery Load (0.1ms)[0m SELECT "deliveries".* FROM "deliveries" ORDER BY "deliveries"."id" ASC LIMIT 1
[1m[36mCACHE (0.0ms)[0m [1mSELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1[0m [["id", "15"]]
[1m[35mCACHE (0.0ms)[0m SELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1 [["id", "15"]]
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 (6.6ms)
Completed 200 OK in 20ms (Views: 17.3ms | ActiveRecord: 0.6ms)
Started PATCH "/simple_cart/orders/15/checkout/delivery" for 127.0.0.1 at 2016-03-14 17:59:11 +0200
Processing by SimpleCart::CheckoutController#update as HTML
Parameters: {"utf8"=>"✓", "authenticity_token"=>"zP15qKODKzHoXTSd/hJPAnS+JG9FZF5M9gD9+Va/droK7USkOFUnx+EgnfbtVzZ2N0hmKslEj1L8jgaYO6jYKw==", "order"=>{"delivery_id"=>"1"}, "commit"=>"Continue", "order_id"=>"15", "id"=>"delivery"}
[1m[36mOrder Load (0.1ms)[0m [1mSELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1[0m [["id", 15]]
[1m[35mDelivery Load (0.0ms)[0m SELECT "deliveries".* FROM "deliveries" WHERE "deliveries"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
[1m[35mSQL (0.2ms)[0m UPDATE "orders" SET "delivery_id" = ?, "updated_at" = ? WHERE "orders"."id" = ? [["delivery_id", 1], ["updated_at", "2016-03-14 15:59:11.972911"], ["id", 15]]
[1m[36m (67.8ms)[0m [1mcommit transaction[0m
Redirected to http://localhost:3000/simple_cart/orders/15/checkout/payment
Completed 302 Found in 71ms (ActiveRecord: 68.2ms)
Started GET "/simple_cart/orders/15/checkout/payment" for 127.0.0.1 at 2016-03-14 17:59:12 +0200
Processing by SimpleCart::CheckoutController#show as HTML
Parameters: {"order_id"=>"15", "id"=>"payment"}
[1m[35mOrder Load (0.2ms)[0m SELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1 [["id", 15]]
[1m[36mDelivery Load (0.1ms)[0m [1mSELECT "deliveries".* FROM "deliveries" WHERE "deliveries"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mBillingAddress Load (0.1ms)[0m SELECT "addresses".* FROM "addresses" WHERE "addresses"."type" IN ('BillingAddress') AND "addresses"."order_id" = ? LIMIT 1 [["order_id", 15]]
[1m[36mShippingAddress Load (0.2ms)[0m [1mSELECT "addresses".* FROM "addresses" WHERE "addresses"."type" IN ('ShippingAddress') AND "addresses"."order_id" = ? LIMIT 1[0m [["order_id", 15]]
[1m[35mCreditCard Load (0.1ms)[0m SELECT "credit_cards".* FROM "credit_cards" WHERE "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.0ms)
Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/payment.html.haml within layouts/simple_cart/application (7.2ms)
Completed 200 OK in 27ms (Views: 20.2ms | ActiveRecord: 0.8ms)
Started PATCH "/simple_cart/orders/15/checkout/payment" for 127.0.0.1 at 2016-03-14 17:59:18 +0200
Processing by SimpleCart::CheckoutController#update as HTML
Parameters: {"utf8"=>"✓", "authenticity_token"=>"8aODkyzdq5u1vMaovUXJMux6QG/IRSM9+PFwpDD0P243s76ftwunbbzBb8OuALBGr4wCKkRl8iPyf4vFXeOR/w==", "order"=>{"credit_card_attributes"=>{"number"=>"1111111111111111", "expiration_month"=>"01", "expiration_year"=>"2017", "cvv"=>"123", "firstname"=>"5125", "lastname"=>"215"}}, "commit"=>"Continue", "order_id"=>"15", "id"=>"payment"}
[1m[36mOrder Load (0.1ms)[0m [1mSELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1[0m [["id", 15]]
[1m[35m (0.1ms)[0m begin transaction
[1m[36mCreditCard Load (0.1ms)[0m [1mSELECT "credit_cards".* FROM "credit_cards" WHERE "credit_cards"."order_id" = ? LIMIT 1[0m [["order_id", 15]]
[1m[35mSQL (0.2ms)[0m INSERT INTO "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", "5125"], ["lastname", "215"], ["order_id", 15], ["created_at", "2016-03-14 15:59:18.646402"], ["updated_at", "2016-03-14 15:59:18.646402"]]
[1m[36m (77.3ms)[0m [1mcommit transaction[0m
[1m[35m (0.1ms)[0m begin transaction
[1m[36m (0.1ms)[0m [1mcommit transaction[0m
Redirected to http://localhost:3000/simple_cart/orders/15/checkout/confirm
Completed 302 Found in 84ms (ActiveRecord: 77.9ms)
Started GET "/simple_cart/orders/15/checkout/confirm" for 127.0.0.1 at 2016-03-14 17:59:18 +0200
Processing by SimpleCart::CheckoutController#show as HTML
Parameters: {"order_id"=>"15", "id"=>"confirm"}
[1m[35mOrder Load (0.3ms)[0m SELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1 [["id", 15]]
[1m[36mCreditCard Load (0.1ms)[0m [1mSELECT "credit_cards".* FROM "credit_cards" WHERE "credit_cards"."order_id" = ? LIMIT 1[0m [["order_id", 15]]
[1m[35mBillingAddress Load (0.1ms)[0m SELECT "addresses".* FROM "addresses" WHERE "addresses"."type" IN ('BillingAddress') AND "addresses"."order_id" = ? LIMIT 1 [["order_id", 15]]
[1m[36mShippingAddress Load (0.1ms)[0m [1mSELECT "addresses".* FROM "addresses" WHERE "addresses"."type" IN ('ShippingAddress') AND "addresses"."order_id" = ? LIMIT 1[0m [["order_id", 15]]
Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/_progress.html.haml (1.0ms)
[1m[35mDelivery Load (0.1ms)[0m SELECT "deliveries".* FROM "deliveries" WHERE "deliveries"."id" = ? LIMIT 1 [["id", 1]]
Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/_overview.html.haml (1.8ms)
[1m[36mOrderItem Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "order_items" WHERE "order_items"."order_id" = ? LIMIT 1[0m [["order_id", "15"]]
[1m[35mOrderItem Load (0.1ms)[0m SELECT "order_items".* FROM "order_items" WHERE "order_items"."order_id" = ? [["order_id", "15"]]
[1m[36mItem Load (6.4ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", 2]]
[1m[35mItem Load (0.1ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 3]]
Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/confirm.html.haml within layouts/simple_cart/application (15.8ms)
Completed 200 OK in 30ms (Views: 19.8ms | ActiveRecord: 7.4ms)
Started GET "/simple_cart/orders/15" for 127.0.0.1 at 2016-03-14 17:59:26 +0200
Processing by SimpleCart::OrdersController#show as HTML
Parameters: {"id"=>"15"}
[1m[36mOrder Load (0.1ms)[0m [1mSELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1[0m [["id", 15]]
[1m[35mBillingAddress Load (0.1ms)[0m SELECT "addresses".* FROM "addresses" WHERE "addresses"."type" IN ('BillingAddress') AND "addresses"."order_id" = ? LIMIT 1 [["order_id", 15]]
[1m[36mShippingAddress Load (0.1ms)[0m [1mSELECT "addresses".* FROM "addresses" WHERE "addresses"."type" IN ('ShippingAddress') AND "addresses"."order_id" = ? LIMIT 1[0m [["order_id", 15]]
[1m[35mDelivery Load (0.1ms)[0m SELECT "deliveries".* FROM "deliveries" WHERE "deliveries"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mCreditCard Load (0.1ms)[0m [1mSELECT "credit_cards".* FROM "credit_cards" WHERE "credit_cards"."order_id" = ? LIMIT 1[0m [["order_id", 15]]
[1m[35mOrderItem Exists (0.5ms)[0m SELECT 1 AS one FROM "order_items" WHERE "order_items"."order_id" = ? LIMIT 1 [["order_id", "15"]]
[1m[36mOrderItem Load (0.2ms)[0m [1mSELECT "order_items".* FROM "order_items" WHERE "order_items"."order_id" = ?[0m [["order_id", "15"]]
[1m[35mItem Load (0.1ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 2]]
[1m[36mItem Load (0.2ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", 3]]
Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/orders/show.html.haml within layouts/simple_cart/application (12.5ms)
Completed 200 OK in 27ms (Views: 25.3ms | ActiveRecord: 1.4ms)
Started GET "/simple_cart/orders/15" for 127.0.0.1 at 2016-03-14 18:02:01 +0200
Processing by SimpleCart::OrdersController#show as HTML
Parameters: {"id"=>"15"}
[1m[35mOrder Load (0.1ms)[0m SELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1 [["id", 15]]
[1m[36mBillingAddress Load (0.1ms)[0m [1mSELECT "addresses".* FROM "addresses" WHERE "addresses"."type" IN ('BillingAddress') AND "addresses"."order_id" = ? LIMIT 1[0m [["order_id", 15]]
[1m[35mShippingAddress Load (0.1ms)[0m SELECT "addresses".* FROM "addresses" WHERE "addresses"."type" IN ('ShippingAddress') AND "addresses"."order_id" = ? LIMIT 1 [["order_id", 15]]
[1m[36mDelivery Load (0.1ms)[0m [1mSELECT "deliveries".* FROM "deliveries" WHERE "deliveries"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mCreditCard Load (0.1ms)[0m SELECT "credit_cards".* FROM "credit_cards" WHERE "credit_cards"."order_id" = ? LIMIT 1 [["order_id", 15]]
[1m[36mOrderItem Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "order_items" WHERE "order_items"."order_id" = ? LIMIT 1[0m [["order_id", "15"]]
[1m[35mOrderItem Load (0.1ms)[0m SELECT "order_items".* FROM "order_items" WHERE "order_items"."order_id" = ? [["order_id", "15"]]
[1m[36mItem Load (0.1ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", 2]]
[1m[35mItem Load (0.1ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 3]]
Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/orders/show.html.haml within layouts/simple_cart/application (8.9ms)
Completed 200 OK in 22ms (Views: 20.2ms | ActiveRecord: 0.8ms)
Started GET "/assets/simple_cart/application.self-2f12d59583468bdcee27c6046669f62a778d265fc91cf385e5d36e9189ac822e.css?body=1" for 127.0.0.1 at 2016-03-14 18:02:01 +0200
Started GET "/assets/simple_cart/application.self-8f06a73c35179188914ab50e057157639fce1401c1cdca640ac9cec33746fc5b.js?body=1" for 127.0.0.1 at 2016-03-14 18:02:01 +0200
Started GET "/simple_cart/orders" for 127.0.0.1 at 2016-03-14 18:02:02 +0200
Processing by SimpleCart::OrdersController#index as HTML
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "orders"[0m
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "orders" WHERE "orders"."aasm_state" = ? [["aasm_state", "in_progress"]]
[1m[36mOrder Load (0.2ms)[0m [1mSELECT "orders".* FROM "orders" WHERE "orders"."aasm_state" = ? ORDER BY "orders"."id" DESC[0m [["aasm_state", "in_progress"]]
[1m[35mOrderItem Exists (0.1ms)[0m SELECT 1 AS one FROM "order_items" WHERE "order_items"."order_id" = ? LIMIT 1 [["order_id", "15"]]
[1m[36mOrderItem Load (0.1ms)[0m [1mSELECT "order_items".* FROM "order_items" WHERE "order_items"."order_id" = ?[0m [["order_id", "15"]]
[1m[35mItem Load (0.1ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 2]]
[1m[36mItem Load (0.1ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", 3]]
[1m[35mOrderItem Exists (0.1ms)[0m SELECT 1 AS one FROM "order_items" WHERE "order_items"."order_id" = ? LIMIT 1 [["order_id", "14"]]
[1m[36mOrderItem Load (0.1ms)[0m [1mSELECT "order_items".* FROM "order_items" WHERE "order_items"."order_id" = ?[0m [["order_id", "14"]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 2]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", 3]]
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "orders" WHERE "orders"."aasm_state" = ? [["aasm_state", "in_queue"]]
[1m[36mOrder Load (0.0ms)[0m [1mSELECT "orders".* FROM "orders" WHERE "orders"."aasm_state" = ? ORDER BY "orders"."id" DESC[0m [["aasm_state", "in_queue"]]
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "orders" WHERE "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 (11.1ms)
Completed 200 OK in 23ms (Views: 21.4ms | ActiveRecord: 1.3ms)
Started GET "/simple_cart/orders/15/checkout" for 127.0.0.1 at 2016-03-14 18:02:05 +0200
Processing by SimpleCart::CheckoutController#index as HTML
Parameters: {"order_id"=>"15"}
[1m[36mOrder Load (0.1ms)[0m [1mSELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1[0m [["id", 15]]
Redirected to http://localhost:3000/simple_cart/orders/15/checkout/billing
Completed 302 Found in 2ms (ActiveRecord: 0.1ms)
Started GET "/simple_cart/orders/15/checkout/billing" for 127.0.0.1 at 2016-03-14 18:02:05 +0200
Processing by SimpleCart::CheckoutController#show as HTML
Parameters: {"order_id"=>"15", "id"=>"billing"}
[1m[35mOrder Load (0.1ms)[0m SELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1 [["id", 15]]
[1m[36mBillingAddress Load (0.1ms)[0m [1mSELECT "addresses".* FROM "addresses" WHERE "addresses"."type" IN ('BillingAddress') AND "addresses"."order_id" = ? LIMIT 1[0m [["order_id", 15]]
[1m[35mShippingAddress Load (0.1ms)[0m SELECT "addresses".* FROM "addresses" WHERE "addresses"."type" IN ('ShippingAddress') AND "addresses"."order_id" = ? LIMIT 1 [["order_id", 15]]
[1m[36mCreditCard Load (0.1ms)[0m [1mSELECT "credit_cards".* FROM "credit_cards" WHERE "credit_cards"."order_id" = ? LIMIT 1[0m [["order_id", 15]]
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.6ms)
Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/billing.html.haml within layouts/simple_cart/application (13.3ms)
Completed 200 OK in 27ms (Views: 24.3ms | ActiveRecord: 0.4ms)
Started PATCH "/simple_cart/orders/15/checkout/billing" for 127.0.0.1 at 2016-03-14 18:02:06 +0200
Processing by SimpleCart::CheckoutController#update as HTML
Parameters: {"utf8"=>"✓", "authenticity_token"=>"s7IBhnvCQa/TWArnGB+n5SzNuZz5L4AFMGhnspMD/TB1ojyK4BRNWdolo4wLWt6Rbzv72XUPURs65pzT/hRToQ==", "order"=>{"billing_address_attributes"=>{"firstname"=>"vzxv", "lastname"=>"zxv", "address"=>"xzvzx", "zipcode"=>"vzxv", "city"=>"vxzv", "phone"=>"zxv", "country"=>"Afghanistan", "id"=>"23"}}, "shipping"=>{"use_billing_address"=>"true"}, "commit"=>"Save and continue", "order_id"=>"15", "id"=>"billing"}
[1m[35mOrder Load (0.1ms)[0m SELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1 [["id", 15]]
Unpermitted parameter: id
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
[1m[35mBillingAddress Load (0.1ms)[0m SELECT "addresses".* FROM "addresses" WHERE "addresses"."type" IN ('BillingAddress') AND "addresses"."order_id" = ? LIMIT 1 [["order_id", 15]]
[1m[36mSQL (0.3ms)[0m [1mDELETE FROM "addresses" WHERE "addresses"."type" IN ('BillingAddress') AND "addresses"."id" = ?[0m [["id", 23]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "addresses" ("type", "firstname", "lastname", "address", "zipcode", "city", "phone", "country", "order_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["type", "BillingAddress"], ["firstname", "vzxv"], ["lastname", "zxv"], ["address", "xzvzx"], ["zipcode", "vzxv"], ["city", "vxzv"], ["phone", "zxv"], ["country", "Afghanistan"], ["order_id", 15], ["created_at", "2016-03-14 16:02:06.807818"], ["updated_at", "2016-03-14 16:02:06.807818"]]
[1m[36m (237.8ms)[0m [1mcommit transaction[0m
[1m[35mShippingAddress Load (0.1ms)[0m SELECT "addresses".* FROM "addresses" WHERE "addresses"."type" IN ('ShippingAddress') AND "addresses"."order_id" = ? LIMIT 1 [["order_id", 15]]
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
[1m[35mSQL (0.2ms)[0m DELETE FROM "addresses" WHERE "addresses"."type" IN ('ShippingAddress') AND "addresses"."id" = ? [["id", 24]]
[1m[36m (82.2ms)[0m [1mcommit transaction[0m
[1m[35m (0.1ms)[0m begin transaction
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "addresses" ("type", "order_id", "address", "zipcode", "city", "phone", "country", "created_at", "updated_at", "firstname", "lastname") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["type", "ShippingAddress"], ["order_id", 15], ["address", "xzvzx"], ["zipcode", "vzxv"], ["city", "vxzv"], ["phone", "zxv"], ["country", "Afghanistan"], ["created_at", "2016-03-14 16:02:06.807818"], ["updated_at", "2016-03-14 16:02:06.807818"], ["firstname", "vzxv"], ["lastname", "zxv"]]
[1m[35m (89.2ms)[0m commit transaction
Redirected to http://localhost:3000/simple_cart/orders/15/checkout/delivery
Completed 302 Found in 423ms (ActiveRecord: 410.6ms)
Started GET "/simple_cart/orders/15/checkout/delivery" for 127.0.0.1 at 2016-03-14 18:02:07 +0200
Processing by SimpleCart::CheckoutController#show as HTML
Parameters: {"order_id"=>"15", "id"=>"delivery"}
[1m[36mOrder Load (0.1ms)[0m [1mSELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1[0m [["id", 15]]
[1m[35mShippingAddress Load (0.2ms)[0m SELECT "addresses".* FROM "addresses" WHERE "addresses"."type" IN ('ShippingAddress') AND "addresses"."order_id" = ? LIMIT 1 [["order_id", 15]]
[1m[36mBillingAddress Load (0.1ms)[0m [1mSELECT "addresses".* FROM "addresses" WHERE "addresses"."type" IN ('BillingAddress') AND "addresses"."order_id" = ? LIMIT 1[0m [["order_id", 15]]
[1m[35mCreditCard Load (0.1ms)[0m SELECT "credit_cards".* FROM "credit_cards" WHERE "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.0ms)
[1m[36mDelivery Load (0.2ms)[0m [1mSELECT "deliveries".* FROM "deliveries"[0m
[1m[35mDelivery Load (0.1ms)[0m SELECT "deliveries".* FROM "deliveries" ORDER BY "deliveries"."id" ASC LIMIT 1
[1m[36mCACHE (0.0ms)[0m [1mSELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1[0m [["id", "15"]]
[1m[35mCACHE (0.0ms)[0m SELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1 [["id", "15"]]
[1m[36mDelivery Load (0.1ms)[0m [1mSELECT "deliveries".* FROM "deliveries" WHERE "deliveries"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mCACHE (0.0ms)[0m SELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1 [["id", "15"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "deliveries".* FROM "deliveries" WHERE "deliveries"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mCACHE (0.0ms)[0m SELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1 [["id", "15"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1[0m [["id", "15"]]
[1m[35mCACHE (0.0ms)[0m SELECT "deliveries".* FROM "deliveries" WHERE "deliveries"."id" = ? LIMIT 1 [["id", 1]]
Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/_summary.html.haml (4.5ms)
Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/delivery.html.haml within layouts/simple_cart/application (10.4ms)
Completed 200 OK in 27ms (Views: 23.0ms | ActiveRecord: 1.1ms)
Started GET "/simple_cart/orders/15/checkout/confirm" for 127.0.0.1 at 2016-03-14 18:02:08 +0200
Processing by SimpleCart::CheckoutController#show as HTML
Parameters: {"order_id"=>"15", "id"=>"confirm"}
[1m[36mOrder Load (0.2ms)[0m [1mSELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1[0m [["id", 15]]
[1m[35mCreditCard Load (0.2ms)[0m SELECT "credit_cards".* FROM "credit_cards" WHERE "credit_cards"."order_id" = ? LIMIT 1 [["order_id", 15]]
[1m[36mBillingAddress Load (0.1ms)[0m [1mSELECT "addresses".* FROM "addresses" WHERE "addresses"."type" IN ('BillingAddress') AND "addresses"."order_id" = ? LIMIT 1[0m [["order_id", 15]]
[1m[35mShippingAddress Load (0.1ms)[0m SELECT "addresses".* FROM "addresses" WHERE "addresses"."type" IN ('ShippingAddress') AND "addresses"."order_id" = ? LIMIT 1 [["order_id", 15]]
Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/_progress.html.haml (1.1ms)
[1m[36mDelivery Load (0.1ms)[0m [1mSELECT "deliveries".* FROM "deliveries" WHERE "deliveries"."id" = ? LIMIT 1[0m [["id", 1]]
Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/_overview.html.haml (2.5ms)
[1m[35mOrderItem Exists (0.1ms)[0m SELECT 1 AS one FROM "order_items" WHERE "order_items"."order_id" = ? LIMIT 1 [["order_id", "15"]]
[1m[36mOrderItem Load (0.1ms)[0m [1mSELECT "order_items".* FROM "order_items" WHERE "order_items"."order_id" = ?[0m [["order_id", "15"]]
[1m[35mItem Load (0.1ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 2]]
[1m[36mItem Load (0.1ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", 3]]
Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/confirm.html.haml within layouts/simple_cart/application (11.1ms)
Completed 200 OK in 27ms (Views: 21.7ms | ActiveRecord: 1.0ms)
Started GET "/simple_cart/orders/15" for 127.0.0.1 at 2016-03-14 18:02:09 +0200
Processing by SimpleCart::OrdersController#show as HTML
Parameters: {"id"=>"15"}
[1m[35mOrder Load (0.2ms)[0m SELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1 [["id", 15]]
[1m[36mBillingAddress Load (0.1ms)[0m [1mSELECT "addresses".* FROM "addresses" WHERE "addresses"."type" IN ('BillingAddress') AND "addresses"."order_id" = ? LIMIT 1[0m [["order_id", 15]]
[1m[35mShippingAddress Load (0.1ms)[0m SELECT "addresses".* FROM "addresses" WHERE "addresses"."type" IN ('ShippingAddress') AND "addresses"."order_id" = ? LIMIT 1 [["order_id", 15]]
[1m[36mDelivery Load (0.0ms)[0m [1mSELECT "deliveries".* FROM "deliveries" WHERE "deliveries"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mCreditCard Load (0.0ms)[0m SELECT "credit_cards".* FROM "credit_cards" WHERE "credit_cards"."order_id" = ? LIMIT 1 [["order_id", 15]]
[1m[36mOrderItem Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "order_items" WHERE "order_items"."order_id" = ? LIMIT 1[0m [["order_id", "15"]]
[1m[35mOrderItem Load (0.1ms)[0m SELECT "order_items".* FROM "order_items" WHERE "order_items"."order_id" = ? [["order_id", "15"]]
[1m[36mItem Load (0.1ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", 2]]
[1m[35mItem Load (0.1ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 3]]
Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/orders/show.html.haml within layouts/simple_cart/application (9.1ms)
Completed 200 OK in 21ms (Views: 19.4ms | ActiveRecord: 0.9ms)
Started GET "/simple_cart/orders/15/checkout" for 127.0.0.1 at 2016-03-14 18:02:17 +0200
[1m[36mActiveRecord::SchemaMigration Load (0.2ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
Processing by SimpleCart::CheckoutController#index as HTML
Parameters: {"order_id"=>"15"}
[1m[35mOrder Load (0.2ms)[0m SELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1 [["id", 15]]
Redirected to http://localhost:3000/simple_cart/orders/15/checkout/billing
Completed 302 Found in 32ms (ActiveRecord: 0.5ms)
Started GET "/simple_cart/orders/15/checkout/billing" for 127.0.0.1 at 2016-03-14 18:02:17 +0200
Processing by SimpleCart::CheckoutController#show as HTML
Parameters: {"order_id"=>"15", "id"=>"billing"}
[1m[36mOrder Load (0.1ms)[0m [1mSELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1[0m [["id", 15]]
[1m[35mBillingAddress Load (0.3ms)[0m SELECT "addresses".* FROM "addresses" WHERE "addresses"."type" IN ('BillingAddress') AND "addresses"."order_id" = ? LIMIT 1 [["order_id", 15]]
[1m[36mShippingAddress Load (0.2ms)[0m [1mSELECT "addresses".* FROM "addresses" WHERE "addresses"."type" IN ('ShippingAddress') AND "addresses"."order_id" = ? LIMIT 1[0m [["order_id", 15]]
[1m[35mCreditCard Load (0.1ms)[0m SELECT "credit_cards".* FROM "credit_cards" WHERE "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 (3.4ms)
Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/_address.html.haml (21.8ms)
Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/billing.html.haml within layouts/simple_cart/application (44.8ms)
Completed 200 OK in 270ms (Views: 230.0ms | ActiveRecord: 1.3ms)
Started GET "/simple_cart/orders/15/checkout/confirm" for 127.0.0.1 at 2016-03-14 18:02:19 +0200
Processing by SimpleCart::CheckoutController#show as HTML
Parameters: {"order_id"=>"15", "id"=>"confirm"}
[1m[36mOrder Load (0.1ms)[0m [1mSELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1[0m [["id", 15]]
[1m[35mCreditCard Load (0.1ms)[0m SELECT "credit_cards".* FROM "credit_cards" WHERE "credit_cards"."order_id" = ? LIMIT 1 [["order_id", 15]]
[1m[36mBillingAddress Load (0.1ms)[0m [1mSELECT "addresses".* FROM "addresses" WHERE "addresses"."type" IN ('BillingAddress') AND "addresses"."order_id" = ? LIMIT 1[0m [["order_id", 15]]
[1m[35mShippingAddress Load (0.1ms)[0m SELECT "addresses".* FROM "addresses" WHERE "addresses"."type" IN ('ShippingAddress') AND "addresses"."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)
[1m[36mDelivery Load (0.1ms)[0m [1mSELECT "deliveries".* FROM "deliveries" WHERE "deliveries"."id" = ? LIMIT 1[0m [["id", 1]]
Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/_overview.html.haml (12.7ms)
[1m[35mOrderItem Exists (0.2ms)[0m SELECT 1 AS one FROM "order_items" WHERE "order_items"."order_id" = ? LIMIT 1 [["order_id", "15"]]
[1m[36mOrderItem Load (0.2ms)[0m [1mSELECT "order_items".* FROM "order_items" WHERE "order_items"."order_id" = ?[0m [["order_id", "15"]]
[1m[35mItem Load (0.2ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 2]]
[1m[36mItem Load (0.1ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", 3]]
Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/confirm.html.haml within layouts/simple_cart/application (80.6ms)
Completed 200 OK in 99ms (Views: 94.3ms | ActiveRecord: 1.8ms)
Started GET "/simple_cart/orders/15" for 127.0.0.1 at 2016-03-14 18:02:20 +0200
Processing by SimpleCart::OrdersController#show as HTML
Parameters: {"id"=>"15"}
[1m[35mOrder Load (0.1ms)[0m SELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1 [["id", 15]]
[1m[36mBillingAddress Load (0.2ms)[0m [1mSELECT "addresses".* FROM "addresses" WHERE "addresses"."type" IN ('BillingAddress') AND "addresses"."order_id" = ? LIMIT 1[0m [["order_id", 15]]
[1m[35mShippingAddress Load (0.1ms)[0m SELECT "addresses".* FROM "addresses" WHERE "addresses"."type" IN ('ShippingAddress') AND "addresses"."order_id" = ? LIMIT 1 [["order_id", 15]]
[1m[36mDelivery Load (0.1ms)[0m [1mSELECT "deliveries".* FROM "deliveries" WHERE "deliveries"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mCreditCard Load (0.1ms)[0m SELECT "credit_cards".* FROM "credit_cards" WHERE "credit_cards"."order_id" = ? LIMIT 1 [["order_id", 15]]
[1m[36mOrderItem Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "order_items" WHERE "order_items"."order_id" = ? LIMIT 1[0m [["order_id", "15"]]
[1m[35mOrderItem Load (0.1ms)[0m SELECT "order_items".* FROM "order_items" WHERE "order_items"."order_id" = ? [["order_id", "15"]]
[1m[36mItem Load (0.1ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", 2]]
[1m[35mItem Load (0.1ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 3]]
Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/orders/show.html.haml within layouts/simple_cart/application (24.9ms)
Completed 200 OK in 48ms (Views: 46.2ms | ActiveRecord: 0.8ms)
Started GET "/simple_cart/orders/15" for 127.0.0.1 at 2016-03-14 18:04:59 +0200
Processing by SimpleCart::OrdersController#show as HTML
Parameters: {"id"=>"15"}
[1m[36mOrder Load (0.1ms)[0m [1mSELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1[0m [["id", 15]]
[1m[35mBillingAddress Load (0.1ms)[0m SELECT "addresses".* FROM "addresses" WHERE "addresses"."type" IN ('BillingAddress') AND "addresses"."order_id" = ? LIMIT 1 [["order_id", 15]]
[1m[36mShippingAddress Load (0.1ms)[0m [1mSELECT "addresses".* FROM "addresses" WHERE "addresses"."type" IN ('ShippingAddress') AND "addresses"."order_id" = ? LIMIT 1[0m [["order_id", 15]]
[1m[35mDelivery Load (0.1ms)[0m SELECT "deliveries".* FROM "deliveries" WHERE "deliveries"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mCreditCard Load (0.4ms)[0m [1mSELECT "credit_cards".* FROM "credit_cards" WHERE "credit_cards"."order_id" = ? LIMIT 1[0m [["order_id", 15]]
[1m[35mOrderItem Exists (0.1ms)[0m SELECT 1 AS one FROM "order_items" WHERE "order_items"."order_id" = ? LIMIT 1 [["order_id", "15"]]
[1m[36mOrderItem Load (0.1ms)[0m [1mSELECT "order_items".* FROM "order_items" WHERE "order_items"."order_id" = ?[0m [["order_id", "15"]]
[1m[35mItem Load (0.1ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 2]]
[1m[36mItem Load (0.1ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", 3]]
Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/orders/show.html.haml within layouts/simple_cart/application (15.6ms)
Completed 500 Internal Server Error in 48ms (ActiveRecord: 1.3ms)
ActionView::Template::Error (couldn't find file 'jquery' with type 'application/javascript'):
3: %head
4: %title Cart
5: = stylesheet_link_tag "simple_cart/application", media: "all"
6: = javascript_include_tag "simple_cart/application", "data-turbolinks-track" => true
7: = csrf_meta_tags
8: %body
9: = yield
/home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/assets/javascripts/simple_cart/application.js:13
sprockets (3.5.2) lib/sprockets/resolve.rb:64:in `resolve!'
sprockets (3.5.2) lib/sprockets/directive_processor.rb:399:in `resolve'
sprockets (3.5.2) lib/sprockets/directive_processor.rb:207:in `process_require_directive'
sprockets (3.5.2) lib/sprockets/directive_processor.rb:180:in `block in process_directives'
sprockets (3.5.2) lib/sprockets/directive_processor.rb:178:in `each'
sprockets (3.5.2) lib/sprockets/directive_processor.rb:178:in `process_directives'
sprockets (3.5.2) lib/sprockets/directive_processor.rb:83:in `_call'
sprockets (3.5.2) lib/sprockets/directive_processor.rb:68:in `call'
sprockets (3.5.2) lib/sprockets/processor_utils.rb:75:in `call_processor'
sprockets (3.5.2) lib/sprockets/processor_utils.rb:57:in `block in call_processors'
sprockets (3.5.2) lib/sprockets/processor_utils.rb:56:in `reverse_each'
sprockets (3.5.2) lib/sprockets/processor_utils.rb:56:in `call_processors'
sprockets (3.5.2) lib/sprockets/loader.rb:134:in `load_from_unloaded'
sprockets (3.5.2) lib/sprockets/loader.rb:60:in `block in load'
sprockets (3.5.2) lib/sprockets/loader.rb:318:in `fetch_asset_from_dependency_cache'
sprockets (3.5.2) lib/sprockets/loader.rb:44:in `load'
sprockets (3.5.2) lib/sprockets/cached_environment.rb:20:in `block in initialize'
sprockets (3.5.2) lib/sprockets/cached_environment.rb:47:in `yield'
sprockets (3.5.2) lib/sprockets/cached_environment.rb:47:in `load'
sprockets (3.5.2) lib/sprockets/bundle.rb:23:in `block in call'
sprockets (3.5.2) lib/sprockets/utils.rb:183:in `dfs'
sprockets (3.5.2) lib/sprockets/bundle.rb:24:in `call'
sprockets (3.5.2) lib/sprockets/processor_utils.rb:75:in `call_processor'
sprockets (3.5.2) lib/sprockets/processor_utils.rb:57:in `block in call_processors'
sprockets (3.5.2) lib/sprockets/processor_utils.rb:56:in `reverse_each'
sprockets (3.5.2) lib/sprockets/processor_utils.rb:56:in `call_processors'
sprockets (3.5.2) lib/sprockets/loader.rb:134:in `load_from_unloaded'
sprockets (3.5.2) lib/sprockets/loader.rb:60:in `block in load'
sprockets (3.5.2) lib/sprockets/loader.rb:318:in `fetch_asset_from_dependency_cache'
sprockets (3.5.2) lib/sprockets/loader.rb:44:in `load'
sprockets (3.5.2) lib/sprockets/cached_environment.rb:20:in `block in initialize'
sprockets (3.5.2) lib/sprockets/cached_environment.rb:47:in `yield'
sprockets (3.5.2) lib/sprockets/cached_environment.rb:47:in `load'
sprockets (3.5.2) lib/sprockets/base.rb:66:in `find_asset'
sprockets (3.5.2) lib/sprockets/base.rb:92:in `[]'
sprockets-rails (3.0.4) lib/sprockets/rails/helper.rb:341:in `find_asset'
sprockets-rails (3.0.4) lib/sprockets/rails/helper.rb:333:in `find_debug_asset'
sprockets-rails (3.0.4) lib/sprockets/rails/helper.rb:216:in `block in lookup_debug_asset'
sprockets-rails (3.0.4) lib/sprockets/rails/helper.rb:229:in `block in resolve_asset'
sprockets-rails (3.0.4) lib/sprockets/rails/helper.rb:228:in `each'
sprockets-rails (3.0.4) lib/sprockets/rails/helper.rb:228:in `detect'
sprockets-rails (3.0.4) lib/sprockets/rails/helper.rb:228:in `resolve_asset'
sprockets-rails (3.0.4) lib/sprockets/rails/helper.rb:215:in `lookup_debug_asset'
sprockets-rails (3.0.4) lib/sprockets/rails/helper.rb:128:in `block in javascript_include_tag'
sprockets-rails (3.0.4) lib/sprockets/rails/helper.rb:127:in `map'
sprockets-rails (3.0.4) lib/sprockets/rails/helper.rb:127:in `javascript_include_tag'
/home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/layouts/simple_cart/application.html.haml:6:in `__home_leksster__uby__uby_arage__mazon_simple_cart_app_views_layouts_simple_cart_application_html_haml__2887240584605523454_48738700'
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:66: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.3ms)
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 (1.1ms)
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 (21.0ms)
Started GET "/simple_cart/orders/15" for 127.0.0.1 at 2016-03-14 18:06:31 +0200
Processing by SimpleCart::OrdersController#show as HTML
Parameters: {"id"=>"15"}
[1m[35mOrder Load (0.1ms)[0m SELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1 [["id", 15]]
[1m[36mBillingAddress Load (0.1ms)[0m [1mSELECT "addresses".* FROM "addresses" WHERE "addresses"."type" IN ('BillingAddress') AND "addresses"."order_id" = ? LIMIT 1[0m [["order_id", 15]]
[1m[35mShippingAddress Load (0.2ms)[0m SELECT "addresses".* FROM "addresses" WHERE "addresses"."type" IN ('ShippingAddress') AND "addresses"."order_id" = ? LIMIT 1 [["order_id", 15]]
[1m[36mDelivery Load (0.1ms)[0m [1mSELECT "deliveries".* FROM "deliveries" WHERE "deliveries"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mCreditCard Load (0.1ms)[0m SELECT "credit_cards".* FROM "credit_cards" WHERE "credit_cards"."order_id" = ? LIMIT 1 [["order_id", 15]]
[1m[36mOrderItem Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "order_items" WHERE "order_items"."order_id" = ? LIMIT 1[0m [["order_id", "15"]]
[1m[35mOrderItem Load (0.1ms)[0m SELECT "order_items".* FROM "order_items" WHERE "order_items"."order_id" = ? [["order_id", "15"]]
[1m[36mItem Load (0.1ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", 2]]
[1m[35mItem Load (0.1ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 3]]
Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/orders/show.html.haml within layouts/simple_cart/application (9.7ms)
Completed 500 Internal Server Error in 23ms (ActiveRecord: 0.9ms)
ActionView::Template::Error (couldn't find file 'jquery' with type 'application/javascript'):
3: %head
4: %title Cart
5: = stylesheet_link_tag "simple_cart/application", media: "all"
6: = javascript_include_tag "simple_cart/application", "data-turbolinks-track" => true
7: = csrf_meta_tags
8: %body
9: = yield
/home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/assets/javascripts/simple_cart/application.js:13
sprockets (3.5.2) lib/sprockets/resolve.rb:64:in `resolve!'
sprockets (3.5.2) lib/sprockets/directive_processor.rb:399:in `resolve'
sprockets (3.5.2) lib/sprockets/directive_processor.rb:207:in `process_require_directive'
sprockets (3.5.2) lib/sprockets/directive_processor.rb:180:in `block in process_directives'
sprockets (3.5.2) lib/sprockets/directive_processor.rb:178:in `each'
sprockets (3.5.2) lib/sprockets/directive_processor.rb:178:in `process_directives'
sprockets (3.5.2) lib/sprockets/directive_processor.rb:83:in `_call'
sprockets (3.5.2) lib/sprockets/directive_processor.rb:68:in `call'
sprockets (3.5.2) lib/sprockets/processor_utils.rb:75:in `call_processor'
sprockets (3.5.2) lib/sprockets/processor_utils.rb:57:in `block in call_processors'
sprockets (3.5.2) lib/sprockets/processor_utils.rb:56:in `reverse_each'
sprockets (3.5.2) lib/sprockets/processor_utils.rb:56:in `call_processors'
sprockets (3.5.2) lib/sprockets/loader.rb:134:in `load_from_unloaded'
sprockets (3.5.2) lib/sprockets/loader.rb:60:in `block in load'
sprockets (3.5.2) lib/sprockets/loader.rb:318:in `fetch_asset_from_dependency_cache'
sprockets (3.5.2) lib/sprockets/loader.rb:44:in `load'
sprockets (3.5.2) lib/sprockets/cached_environment.rb:20:in `block in initialize'
sprockets (3.5.2) lib/sprockets/cached_environment.rb:47:in `yield'
sprockets (3.5.2) lib/sprockets/cached_environment.rb:47:in `load'
sprockets (3.5.2) lib/sprockets/bundle.rb:23:in `block in call'
sprockets (3.5.2) lib/sprockets/utils.rb:183:in `dfs'
sprockets (3.5.2) lib/sprockets/bundle.rb:24:in `call'
sprockets (3.5.2) lib/sprockets/processor_utils.rb:75:in `call_processor'
sprockets (3.5.2) lib/sprockets/processor_utils.rb:57:in `block in call_processors'
sprockets (3.5.2) lib/sprockets/processor_utils.rb:56:in `reverse_each'
sprockets (3.5.2) lib/sprockets/processor_utils.rb:56:in `call_processors'
sprockets (3.5.2) lib/sprockets/loader.rb:134:in `load_from_unloaded'
sprockets (3.5.2) lib/sprockets/loader.rb:60:in `block in load'
sprockets (3.5.2) lib/sprockets/loader.rb:318:in `fetch_asset_from_dependency_cache'
sprockets (3.5.2) lib/sprockets/loader.rb:44:in `load'
sprockets (3.5.2) lib/sprockets/cached_environment.rb:20:in `block in initialize'
sprockets (3.5.2) lib/sprockets/cached_environment.rb:47:in `yield'
sprockets (3.5.2) lib/sprockets/cached_environment.rb:47:in `load'
sprockets (3.5.2) lib/sprockets/base.rb:66:in `find_asset'
sprockets (3.5.2) lib/sprockets/base.rb:92:in `[]'
sprockets-rails (3.0.4) lib/sprockets/rails/helper.rb:341:in `find_asset'
sprockets-rails (3.0.4) lib/sprockets/rails/helper.rb:333:in `find_debug_asset'
sprockets-rails (3.0.4) lib/sprockets/rails/helper.rb:216:in `block in lookup_debug_asset'
sprockets-rails (3.0.4) lib/sprockets/rails/helper.rb:229:in `block in resolve_asset'
sprockets-rails (3.0.4) lib/sprockets/rails/helper.rb:228:in `each'
sprockets-rails (3.0.4) lib/sprockets/rails/helper.rb:228:in `detect'
sprockets-rails (3.0.4) lib/sprockets/rails/helper.rb:228:in `resolve_asset'
sprockets-rails (3.0.4) lib/sprockets/rails/helper.rb:215:in `lookup_debug_asset'
sprockets-rails (3.0.4) lib/sprockets/rails/helper.rb:128:in `block in javascript_include_tag'
sprockets-rails (3.0.4) lib/sprockets/rails/helper.rb:127:in `map'
sprockets-rails (3.0.4) lib/sprockets/rails/helper.rb:127:in `javascript_include_tag'
/home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/layouts/simple_cart/application.html.haml:6:in `__home_leksster__uby__uby_arage__mazon_simple_cart_app_views_layouts_simple_cart_application_html_haml__2887240584605523454_48738700'
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:66: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 (8.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.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.0ms)
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 (21.0ms)
Started GET "/simple_cart/orders/15" for 127.0.0.1 at 2016-03-14 18:06:41 +0200
[1m[36mActiveRecord::SchemaMigration Load (0.2ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
Processing by SimpleCart::OrdersController#show as HTML
Parameters: {"id"=>"15"}
[1m[35mOrder Load (0.2ms)[0m SELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1 [["id", 15]]
[1m[36mBillingAddress Load (0.3ms)[0m [1mSELECT "addresses".* FROM "addresses" WHERE "addresses"."type" IN ('BillingAddress') AND "addresses"."order_id" = ? LIMIT 1[0m [["order_id", 15]]
[1m[35mShippingAddress Load (0.2ms)[0m SELECT "addresses".* FROM "addresses" WHERE "addresses"."type" IN ('ShippingAddress') AND "addresses"."order_id" = ? LIMIT 1 [["order_id", 15]]
[1m[36mDelivery Load (0.1ms)[0m [1mSELECT "deliveries".* FROM "deliveries" WHERE "deliveries"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mCreditCard Load (0.2ms)[0m SELECT "credit_cards".* FROM "credit_cards" WHERE "credit_cards"."order_id" = ? LIMIT 1 [["order_id", 15]]
[1m[36mOrderItem Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "order_items" WHERE "order_items"."order_id" = ? LIMIT 1[0m [["order_id", "15"]]
[1m[35mOrderItem Load (0.1ms)[0m SELECT "order_items".* FROM "order_items" WHERE "order_items"."order_id" = ? [["order_id", "15"]]
[1m[36mItem Load (0.1ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", 2]]
[1m[35mItem Load (0.1ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 3]]
Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/orders/show.html.haml within layouts/simple_cart/application (85.6ms)
Completed 500 Internal Server Error in 263ms (ActiveRecord: 3.0ms)
ActionView::Template::Error (couldn't find file 'jquery' with type 'application/javascript'):
2: %html
3: %head
4: %title Cart
5: = stylesheet_link_tag "simple_cart/application", media: "all"
6: = javascript_include_tag "simple_cart/application", "data-turbolinks-track" => true
7: = csrf_meta_tags
8: %body
/home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/assets/javascripts/simple_cart/application.js:13
sprockets (3.5.2) lib/sprockets/resolve.rb:64:in `resolve!'
sprockets (3.5.2) lib/sprockets/directive_processor.rb:399:in `resolve'
sprockets (3.5.2) lib/sprockets/directive_processor.rb:207:in `process_require_directive'
sprockets (3.5.2) lib/sprockets/directive_processor.rb:180:in `block in process_directives'
sprockets (3.5.2) lib/sprockets/directive_processor.rb:178:in `each'
sprockets (3.5.2) lib/sprockets/directive_processor.rb:178:in `process_directives'
sprockets (3.5.2) lib/sprockets/directive_processor.rb:83:in `_call'
sprockets (3.5.2) lib/sprockets/directive_processor.rb:68:in `call'
sprockets (3.5.2) lib/sprockets/processor_utils.rb:75:in `call_processor'
sprockets (3.5.2) lib/sprockets/processor_utils.rb:57:in `block in call_processors'
sprockets (3.5.2) lib/sprockets/processor_utils.rb:56:in `reverse_each'
sprockets (3.5.2) lib/sprockets/processor_utils.rb:56:in `call_processors'
sprockets (3.5.2) lib/sprockets/loader.rb:134:in `load_from_unloaded'
sprockets (3.5.2) lib/sprockets/loader.rb:60:in `block in load'
sprockets (3.5.2) lib/sprockets/loader.rb:318:in `fetch_asset_from_dependency_cache'
sprockets (3.5.2) lib/sprockets/loader.rb:44:in `load'
sprockets (3.5.2) lib/sprockets/cached_environment.rb:20:in `block in initialize'
sprockets (3.5.2) lib/sprockets/cached_environment.rb:47:in `yield'
sprockets (3.5.2) lib/sprockets/cached_environment.rb:47:in `load'
sprockets (3.5.2) lib/sprockets/bundle.rb:23:in `block in call'
sprockets (3.5.2) lib/sprockets/utils.rb:183:in `dfs'
sprockets (3.5.2) lib/sprockets/bundle.rb:24:in `call'
sprockets (3.5.2) lib/sprockets/processor_utils.rb:75:in `call_processor'
sprockets (3.5.2) lib/sprockets/processor_utils.rb:57:in `block in call_processors'
sprockets (3.5.2) lib/sprockets/processor_utils.rb:56:in `reverse_each'
sprockets (3.5.2) lib/sprockets/processor_utils.rb:56:in `call_processors'
sprockets (3.5.2) lib/sprockets/loader.rb:134:in `load_from_unloaded'
sprockets (3.5.2) lib/sprockets/loader.rb:60:in `block in load'
sprockets (3.5.2) lib/sprockets/loader.rb:318:in `fetch_asset_from_dependency_cache'
sprockets (3.5.2) lib/sprockets/loader.rb:44:in `load'
sprockets (3.5.2) lib/sprockets/cached_environment.rb:20:in `block in initialize'
sprockets (3.5.2) lib/sprockets/cached_environment.rb:47:in `yield'
sprockets (3.5.2) lib/sprockets/cached_environment.rb:47:in `load'
sprockets (3.5.2) lib/sprockets/base.rb:66:in `find_asset'
sprockets (3.5.2) lib/sprockets/base.rb:73:in `find_all_linked_assets'
sprockets (3.5.2) lib/sprockets/manifest.rb:142:in `block in find'
sprockets (3.5.2) lib/sprockets/legacy.rb:114:in `block (2 levels) in logical_paths'
sprockets (3.5.2) lib/sprockets/path_utils.rb:225:in `block in stat_tree'
sprockets (3.5.2) lib/sprockets/path_utils.rb:209:in `block in stat_directory'
sprockets (3.5.2) lib/sprockets/path_utils.rb:206:in `each'
sprockets (3.5.2) lib/sprockets/path_utils.rb:206:in `stat_directory'
sprockets (3.5.2) lib/sprockets/path_utils.rb:224:in `stat_tree'
sprockets (3.5.2) lib/sprockets/path_utils.rb:228:in `block in stat_tree'
sprockets (3.5.2) lib/sprockets/path_utils.rb:209:in `block in stat_directory'
sprockets (3.5.2) lib/sprockets/path_utils.rb:206:in `each'
sprockets (3.5.2) lib/sprockets/path_utils.rb:206:in `stat_directory'
sprockets (3.5.2) lib/sprockets/path_utils.rb:224:in `stat_tree'
sprockets (3.5.2) lib/sprockets/legacy.rb:105:in `each'
sprockets (3.5.2) lib/sprockets/legacy.rb:105:in `block in logical_paths'
sprockets (3.5.2) lib/sprockets/legacy.rb:104:in `each'
sprockets (3.5.2) lib/sprockets/legacy.rb:104:in `logical_paths'
sprockets (3.5.2) lib/sprockets/manifest.rb:140:in `find'
sprockets-rails (3.0.4) lib/sprockets/railtie.rb:49:in `each'
sprockets-rails (3.0.4) lib/sprockets/railtie.rb:49:in `map'
sprockets-rails (3.0.4) lib/sprockets/railtie.rb:49:in `precompiled_assets'
sprockets-rails (3.0.4) lib/sprockets/railtie.rb:34:in `asset_precompiled?'
sprockets-rails (3.0.4) lib/sprockets/railtie.rb:214:in `block (3 levels) in '
sprockets-rails (3.0.4) lib/sprockets/rails/helper.rb:345:in `call'
sprockets-rails (3.0.4) lib/sprockets/rails/helper.rb:345:in `precompiled?'
sprockets-rails (3.0.4) lib/sprockets/rails/helper.rb:349:in `raise_unless_precompiled_asset'
sprockets-rails (3.0.4) lib/sprockets/rails/helper.rb:334:in `find_debug_asset'
sprockets-rails (3.0.4) lib/sprockets/rails/helper.rb:216:in `block in lookup_debug_asset'
sprockets-rails (3.0.4) lib/sprockets/rails/helper.rb:229:in `block in resolve_asset'
sprockets-rails (3.0.4) lib/sprockets/rails/helper.rb:228:in `each'
sprockets-rails (3.0.4) lib/sprockets/rails/helper.rb:228:in `detect'
sprockets-rails (3.0.4) lib/sprockets/rails/helper.rb:228:in `resolve_asset'
sprockets-rails (3.0.4) lib/sprockets/rails/helper.rb:215:in `lookup_debug_asset'
sprockets-rails (3.0.4) lib/sprockets/rails/helper.rb:157:in `block in stylesheet_link_tag'
sprockets-rails (3.0.4) lib/sprockets/rails/helper.rb:156:in `map'
sprockets-rails (3.0.4) lib/sprockets/rails/helper.rb:156:in `stylesheet_link_tag'
/home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/layouts/simple_cart/application.html.haml:5:in `__home_leksster__uby__uby_arage__mazon_simple_cart_app_views_layouts_simple_cart_application_html_haml___3461750464717674996_46216820'
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:66: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 (3.2ms)
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 (7.4ms)
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 (29.6ms)
Started GET "/simple_cart/orders/15" for 127.0.0.1 at 2016-03-14 18:07:53 +0200
Processing by SimpleCart::OrdersController#show as HTML
Parameters: {"id"=>"15"}
[1m[36mOrder Load (0.1ms)[0m [1mSELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1[0m [["id", 15]]
[1m[35mBillingAddress Load (0.1ms)[0m SELECT "addresses".* FROM "addresses" WHERE "addresses"."type" IN ('BillingAddress') AND "addresses"."order_id" = ? LIMIT 1 [["order_id", 15]]
[1m[36mShippingAddress Load (0.1ms)[0m [1mSELECT "addresses".* FROM "addresses" WHERE "addresses"."type" IN ('ShippingAddress') AND "addresses"."order_id" = ? LIMIT 1[0m [["order_id", 15]]
[1m[35mDelivery Load (0.1ms)[0m SELECT "deliveries".* FROM "deliveries" WHERE "deliveries"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mCreditCard Load (0.1ms)[0m [1mSELECT "credit_cards".* FROM "credit_cards" WHERE "credit_cards"."order_id" = ? LIMIT 1[0m [["order_id", 15]]
[1m[35mOrderItem Exists (0.1ms)[0m SELECT 1 AS one FROM "order_items" WHERE "order_items"."order_id" = ? LIMIT 1 [["order_id", "15"]]
[1m[36mOrderItem Load (0.1ms)[0m [1mSELECT "order_items".* FROM "order_items" WHERE "order_items"."order_id" = ?[0m [["order_id", "15"]]
[1m[35mItem Load (0.1ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 2]]
[1m[36mItem Load (0.1ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", 3]]
Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/orders/show.html.haml within layouts/simple_cart/application (10.3ms)
Completed 200 OK in 40ms (Views: 38.3ms | ActiveRecord: 0.9ms)
Started GET "/assets/simple_cart/application.self-2f12d59583468bdcee27c6046669f62a778d265fc91cf385e5d36e9189ac822e.css?body=1" for 127.0.0.1 at 2016-03-14 18:07:53 +0200
Started GET "/assets/simple_cart/application.self-8f06a73c35179188914ab50e057157639fce1401c1cdca640ac9cec33746fc5b.js?body=1" for 127.0.0.1 at 2016-03-14 18:07:53 +0200
Started GET "/simple_cart/orders/15/checkout" for 127.0.0.1 at 2016-03-14 18:07:55 +0200
Processing by SimpleCart::CheckoutController#index as HTML
Parameters: {"order_id"=>"15"}
[1m[35mOrder Load (0.1ms)[0m SELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1 [["id", 15]]
Redirected to http://localhost:3000/simple_cart/orders/15/checkout/billing
Completed 302 Found in 2ms (ActiveRecord: 0.1ms)
Started GET "/simple_cart/orders/15/checkout/billing" for 127.0.0.1 at 2016-03-14 18:07:55 +0200
Processing by SimpleCart::CheckoutController#show as HTML
Parameters: {"order_id"=>"15", "id"=>"billing"}
[1m[36mOrder Load (0.2ms)[0m [1mSELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1[0m [["id", 15]]
[1m[35mBillingAddress Load (0.2ms)[0m SELECT "addresses".* FROM "addresses" WHERE "addresses"."type" IN ('BillingAddress') AND "addresses"."order_id" = ? LIMIT 1 [["order_id", 15]]
[1m[36mShippingAddress Load (0.1ms)[0m [1mSELECT "addresses".* FROM "addresses" WHERE "addresses"."type" IN ('ShippingAddress') AND "addresses"."order_id" = ? LIMIT 1[0m [["order_id", 15]]
[1m[35mCreditCard Load (0.1ms)[0m SELECT "credit_cards".* FROM "credit_cards" WHERE "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 (3.0ms)
Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/_address.html.haml (13.9ms)
Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/billing.html.haml within layouts/simple_cart/application (32.0ms)
Completed 200 OK in 51ms (Views: 47.3ms | ActiveRecord: 0.6ms)
Started GET "/simple_cart/orders/15/checkout/confirm" for 127.0.0.1 at 2016-03-14 18:07:57 +0200
Processing by SimpleCart::CheckoutController#show as HTML
Parameters: {"order_id"=>"15", "id"=>"confirm"}
[1m[36mOrder Load (0.1ms)[0m [1mSELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1[0m [["id", 15]]
[1m[35mCreditCard Load (0.1ms)[0m SELECT "credit_cards".* FROM "credit_cards" WHERE "credit_cards"."order_id" = ? LIMIT 1 [["order_id", 15]]
[1m[36mBillingAddress Load (0.2ms)[0m [1mSELECT "addresses".* FROM "addresses" WHERE "addresses"."type" IN ('BillingAddress') AND "addresses"."order_id" = ? LIMIT 1[0m [["order_id", 15]]
[1m[35mShippingAddress Load (0.1ms)[0m SELECT "addresses".* FROM "addresses" WHERE "addresses"."type" IN ('ShippingAddress') AND "addresses"."order_id" = ? LIMIT 1 [["order_id", 15]]
Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/_progress.html.haml (1.0ms)
[1m[36mDelivery Load (0.2ms)[0m [1mSELECT "deliveries".* FROM "deliveries" WHERE "deliveries"."id" = ? LIMIT 1[0m [["id", 1]]
Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/_overview.html.haml (13.5ms)
[1m[35mOrderItem Exists (0.1ms)[0m SELECT 1 AS one FROM "order_items" WHERE "order_items"."order_id" = ? LIMIT 1 [["order_id", "15"]]
[1m[36mOrderItem Load (0.1ms)[0m [1mSELECT "order_items".* FROM "order_items" WHERE "order_items"."order_id" = ?[0m [["order_id", "15"]]
[1m[35mItem Load (0.1ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 2]]
[1m[36mItem Load (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", 3]]
Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/confirm.html.haml within layouts/simple_cart/application (29.3ms)
Completed 200 OK in 50ms (Views: 42.4ms | ActiveRecord: 1.1ms)
Started GET "/simple_cart/orders/15/checkout/confirm" for 127.0.0.1 at 2016-03-14 18:10:28 +0200
Processing by SimpleCart::CheckoutController#show as HTML
Parameters: {"order_id"=>"15", "id"=>"confirm"}
[1m[35mOrder Load (0.1ms)[0m SELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1 [["id", 15]]
[1m[36mCreditCard Load (0.2ms)[0m [1mSELECT "credit_cards".* FROM "credit_cards" WHERE "credit_cards"."order_id" = ? LIMIT 1[0m [["order_id", 15]]
[1m[35mBillingAddress Load (0.2ms)[0m SELECT "addresses".* FROM "addresses" WHERE "addresses"."type" IN ('BillingAddress') AND "addresses"."order_id" = ? LIMIT 1 [["order_id", 15]]
[1m[36mShippingAddress Load (0.2ms)[0m [1mSELECT "addresses".* FROM "addresses" WHERE "addresses"."type" IN ('ShippingAddress') AND "addresses"."order_id" = ? LIMIT 1[0m [["order_id", 15]]
Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/_progress.html.haml (1.6ms)
[1m[35mDelivery Load (0.1ms)[0m SELECT "deliveries".* FROM "deliveries" WHERE "deliveries"."id" = ? LIMIT 1 [["id", 1]]
Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/_overview.html.haml (2.4ms)
[1m[36mOrderItem Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "order_items" WHERE "order_items"."order_id" = ? LIMIT 1[0m [["order_id", "15"]]
[1m[35mOrderItem Load (0.1ms)[0m SELECT "order_items".* FROM "order_items" WHERE "order_items"."order_id" = ? [["order_id", "15"]]
[1m[36mItem Load (0.2ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", 2]]
[1m[35mItem Load (0.1ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 3]]
Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/confirm.html.haml within layouts/simple_cart/application (13.0ms)
Completed 200 OK in 33ms (Views: 27.6ms | ActiveRecord: 1.2ms)
Started GET "/assets/simple_cart/application.self-2f12d59583468bdcee27c6046669f62a778d265fc91cf385e5d36e9189ac822e.css?body=1" for 127.0.0.1 at 2016-03-14 18:10:28 +0200
Started GET "/assets/simple_cart/application.self-8f06a73c35179188914ab50e057157639fce1401c1cdca640ac9cec33746fc5b.js?body=1" for 127.0.0.1 at 2016-03-14 18:10:28 +0200
Started GET "/simple_cart/orders/15" for 127.0.0.1 at 2016-03-14 18:10:30 +0200
Processing by SimpleCart::OrdersController#show as HTML
Parameters: {"id"=>"15"}
[1m[36mOrder Load (0.1ms)[0m [1mSELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1[0m [["id", 15]]
[1m[35mBillingAddress Load (0.1ms)[0m SELECT "addresses".* FROM "addresses" WHERE "addresses"."type" IN ('BillingAddress') AND "addresses"."order_id" = ? LIMIT 1 [["order_id", 15]]
[1m[36mShippingAddress Load (0.1ms)[0m [1mSELECT "addresses".* FROM "addresses" WHERE "addresses"."type" IN ('ShippingAddress') AND "addresses"."order_id" = ? LIMIT 1[0m [["order_id", 15]]
[1m[35mDelivery Load (0.0ms)[0m SELECT "deliveries".* FROM "deliveries" WHERE "deliveries"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mCreditCard Load (0.1ms)[0m [1mSELECT "credit_cards".* FROM "credit_cards" WHERE "credit_cards"."order_id" = ? LIMIT 1[0m [["order_id", 15]]
[1m[35mOrderItem Exists (0.1ms)[0m SELECT 1 AS one FROM "order_items" WHERE "order_items"."order_id" = ? LIMIT 1 [["order_id", "15"]]
[1m[36mOrderItem Load (0.1ms)[0m [1mSELECT "order_items".* FROM "order_items" WHERE "order_items"."order_id" = ?[0m [["order_id", "15"]]
[1m[35mItem Load (0.1ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 2]]
[1m[36mItem Load (0.2ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", 3]]
Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/orders/show.html.haml within layouts/simple_cart/application (12.0ms)
Completed 200 OK in 26ms (Views: 24.5ms | ActiveRecord: 0.8ms)
Started GET "/simple_cart/orders/15/checkout" for 127.0.0.1 at 2016-03-14 18:10:32 +0200
Processing by SimpleCart::CheckoutController#index as HTML
Parameters: {"order_id"=>"15"}
[1m[35mOrder Load (0.1ms)[0m SELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1 [["id", 15]]
Redirected to http://localhost:3000/simple_cart/orders/15/checkout/billing
Completed 302 Found in 2ms (ActiveRecord: 0.1ms)
Started GET "/simple_cart/orders/15/checkout/billing" for 127.0.0.1 at 2016-03-14 18:10:32 +0200
Processing by SimpleCart::CheckoutController#show as HTML
Parameters: {"order_id"=>"15", "id"=>"billing"}
[1m[36mOrder Load (0.1ms)[0m [1mSELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1[0m [["id", 15]]
[1m[35mBillingAddress Load (0.3ms)[0m SELECT "addresses".* FROM "addresses" WHERE "addresses"."type" IN ('BillingAddress') AND "addresses"."order_id" = ? LIMIT 1 [["order_id", 15]]
[1m[36mShippingAddress Load (0.2ms)[0m [1mSELECT "addresses".* FROM "addresses" WHERE "addresses"."type" IN ('ShippingAddress') AND "addresses"."order_id" = ? LIMIT 1[0m [["order_id", 15]]
[1m[35mCreditCard Load (0.1ms)[0m SELECT "credit_cards".* FROM "credit_cards" WHERE "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.0ms)
Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/_address.html.haml (8.7ms)
Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/billing.html.haml within layouts/simple_cart/application (14.7ms)
Completed 200 OK in 31ms (Views: 26.6ms | ActiveRecord: 0.6ms)
Started GET "/simple_cart/orders/15/checkout/confirm" for 127.0.0.1 at 2016-03-14 18:10:35 +0200
Processing by SimpleCart::CheckoutController#show as HTML
Parameters: {"order_id"=>"15", "id"=>"confirm"}
[1m[36mOrder Load (0.2ms)[0m [1mSELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1[0m [["id", 15]]
[1m[35mCreditCard Load (0.1ms)[0m SELECT "credit_cards".* FROM "credit_cards" WHERE "credit_cards"."order_id" = ? LIMIT 1 [["order_id", 15]]
[1m[36mBillingAddress Load (0.2ms)[0m [1mSELECT "addresses".* FROM "addresses" WHERE "addresses"."type" IN ('BillingAddress') AND "addresses"."order_id" = ? LIMIT 1[0m [["order_id", 15]]
[1m[35mShippingAddress Load (0.2ms)[0m SELECT "addresses".* FROM "addresses" WHERE "addresses"."type" IN ('ShippingAddress') AND "addresses"."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)
[1m[36mDelivery Load (0.1ms)[0m [1mSELECT "deliveries".* FROM "deliveries" WHERE "deliveries"."id" = ? LIMIT 1[0m [["id", 1]]
Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/_overview.html.haml (2.1ms)
[1m[35mOrderItem Exists (0.1ms)[0m SELECT 1 AS one FROM "order_items" WHERE "order_items"."order_id" = ? LIMIT 1 [["order_id", "15"]]
[1m[36mOrderItem Load (0.1ms)[0m [1mSELECT "order_items".* FROM "order_items" WHERE "order_items"."order_id" = ?[0m [["order_id", "15"]]
[1m[35mItem Load (0.1ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 2]]
[1m[36mItem Load (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", 3]]
Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/confirm.html.haml within layouts/simple_cart/application (13.0ms)
Completed 200 OK in 31ms (Views: 25.4ms | ActiveRecord: 1.0ms)
Started GET "/simple_cart/orders/15" for 127.0.0.1 at 2016-03-14 18:10:44 +0200
[1m[36mActiveRecord::SchemaMigration Load (0.4ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
Processing by SimpleCart::OrdersController#show as HTML
Parameters: {"id"=>"15"}
[1m[35mOrder Load (0.2ms)[0m SELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1 [["id", 15]]
[1m[36mBillingAddress Load (0.2ms)[0m [1mSELECT "addresses".* FROM "addresses" WHERE "addresses"."type" IN ('BillingAddress') AND "addresses"."order_id" = ? LIMIT 1[0m [["order_id", 15]]
[1m[35mShippingAddress Load (0.2ms)[0m SELECT "addresses".* FROM "addresses" WHERE "addresses"."type" IN ('ShippingAddress') AND "addresses"."order_id" = ? LIMIT 1 [["order_id", 15]]
[1m[36mDelivery Load (0.2ms)[0m [1mSELECT "deliveries".* FROM "deliveries" WHERE "deliveries"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mCreditCard Load (0.1ms)[0m SELECT "credit_cards".* FROM "credit_cards" WHERE "credit_cards"."order_id" = ? LIMIT 1 [["order_id", 15]]
[1m[36mOrderItem Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "order_items" WHERE "order_items"."order_id" = ? LIMIT 1[0m [["order_id", "15"]]
[1m[35mOrderItem Load (0.1ms)[0m SELECT "order_items".* FROM "order_items" WHERE "order_items"."order_id" = ? [["order_id", "15"]]
[1m[36mItem Load (0.1ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", 2]]
[1m[35mItem Load (0.1ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 3]]
Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/orders/show.html.haml within layouts/simple_cart/application (91.7ms)
Completed 200 OK in 296ms (Views: 266.5ms | ActiveRecord: 3.0ms)
Started GET "/simple_cart/orders/15/checkout" for 127.0.0.1 at 2016-03-14 18:10:49 +0200
Processing by SimpleCart::CheckoutController#index as HTML
Parameters: {"order_id"=>"15"}
[1m[36mOrder Load (0.1ms)[0m [1mSELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1[0m [["id", 15]]
Redirected to http://localhost:3000/simple_cart/orders/15/checkout/billing
Completed 302 Found in 2ms (ActiveRecord: 0.1ms)
Started GET "/simple_cart/orders/15/checkout/billing" for 127.0.0.1 at 2016-03-14 18:10:49 +0200
Processing by SimpleCart::CheckoutController#show as HTML
Parameters: {"order_id"=>"15", "id"=>"billing"}
[1m[35mOrder Load (0.1ms)[0m SELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1 [["id", 15]]
[1m[36mBillingAddress Load (0.1ms)[0m [1mSELECT "addresses".* FROM "addresses" WHERE "addresses"."type" IN ('BillingAddress') AND "addresses"."order_id" = ? LIMIT 1[0m [["order_id", 15]]
[1m[35mShippingAddress Load (0.1ms)[0m SELECT "addresses".* FROM "addresses" WHERE "addresses"."type" IN ('ShippingAddress') AND "addresses"."order_id" = ? LIMIT 1 [["order_id", 15]]
[1m[36mCreditCard Load (0.1ms)[0m [1mSELECT "credit_cards".* FROM "credit_cards" WHERE "credit_cards"."order_id" = ? LIMIT 1[0m [["order_id", 15]]
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 (36.5ms)
Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/billing.html.haml within layouts/simple_cart/application (53.7ms)
Completed 200 OK in 72ms (Views: 68.8ms | ActiveRecord: 0.3ms)
Started GET "/simple_cart/orders/15/checkout/confirm" for 127.0.0.1 at 2016-03-14 18:10:50 +0200
Processing by SimpleCart::CheckoutController#show as HTML
Parameters: {"order_id"=>"15", "id"=>"confirm"}
[1m[35mOrder Load (0.1ms)[0m SELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1 [["id", 15]]
[1m[36mCreditCard Load (0.1ms)[0m [1mSELECT "credit_cards".* FROM "credit_cards" WHERE "credit_cards"."order_id" = ? LIMIT 1[0m [["order_id", 15]]
[1m[35mBillingAddress Load (0.2ms)[0m SELECT "addresses".* FROM "addresses" WHERE "addresses"."type" IN ('BillingAddress') AND "addresses"."order_id" = ? LIMIT 1 [["order_id", 15]]
[1m[36mShippingAddress Load (0.2ms)[0m [1mSELECT "addresses".* FROM "addresses" WHERE "addresses"."type" IN ('ShippingAddress') AND "addresses"."order_id" = ? LIMIT 1[0m [["order_id", 15]]
Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/_progress.html.haml (1.3ms)
[1m[35mDelivery Load (0.1ms)[0m SELECT "deliveries".* FROM "deliveries" WHERE "deliveries"."id" = ? LIMIT 1 [["id", 1]]
Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/_overview.html.haml (9.4ms)
[1m[36mOrderItem Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "order_items" WHERE "order_items"."order_id" = ? LIMIT 1[0m [["order_id", "15"]]
[1m[35mOrderItem Load (0.1ms)[0m SELECT "order_items".* FROM "order_items" WHERE "order_items"."order_id" = ? [["order_id", "15"]]
[1m[36mItem Load (0.1ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", 2]]
[1m[35mItem Load (0.1ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 3]]
Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/confirm.html.haml within layouts/simple_cart/application (29.3ms)
Completed 200 OK in 59ms (Views: 53.8ms | ActiveRecord: 1.0ms)
Started GET "/simple_cart/orders/15/checkout/confirm" for 127.0.0.1 at 2016-03-14 18:12:54 +0200
Processing by SimpleCart::CheckoutController#show as HTML
Parameters: {"order_id"=>"15", "id"=>"confirm"}
[1m[36mOrder Load (0.1ms)[0m [1mSELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1[0m [["id", 15]]
[1m[35mCreditCard Load (0.2ms)[0m SELECT "credit_cards".* FROM "credit_cards" WHERE "credit_cards"."order_id" = ? LIMIT 1 [["order_id", 15]]
[1m[36mBillingAddress Load (0.2ms)[0m [1mSELECT "addresses".* FROM "addresses" WHERE "addresses"."type" IN ('BillingAddress') AND "addresses"."order_id" = ? LIMIT 1[0m [["order_id", 15]]
[1m[35mShippingAddress Load (0.1ms)[0m SELECT "addresses".* FROM "addresses" WHERE "addresses"."type" IN ('ShippingAddress') AND "addresses"."order_id" = ? LIMIT 1 [["order_id", 15]]
Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/_progress.html.haml (2.4ms)
[1m[36mDelivery Load (0.1ms)[0m [1mSELECT "deliveries".* FROM "deliveries" WHERE "deliveries"."id" = ? LIMIT 1[0m [["id", 1]]
Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/_overview.html.haml (4.2ms)
[1m[35mOrderItem Exists (0.2ms)[0m SELECT 1 AS one FROM "order_items" WHERE "order_items"."order_id" = ? LIMIT 1 [["order_id", "15"]]
[1m[36mOrderItem Load (0.2ms)[0m [1mSELECT "order_items".* FROM "order_items" WHERE "order_items"."order_id" = ?[0m [["order_id", "15"]]
[1m[35mItem Load (0.2ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 2]]
[1m[36mItem Load (0.1ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", 3]]
Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/confirm.html.haml within layouts/simple_cart/application (24.6ms)
Completed 200 OK in 53ms (Views: 45.6ms | ActiveRecord: 1.4ms)
Started GET "/assets/simple_cart/application.self-2f12d59583468bdcee27c6046669f62a778d265fc91cf385e5d36e9189ac822e.css?body=1" for 127.0.0.1 at 2016-03-14 18:12:55 +0200
Started GET "/javascripts/all.js" for 127.0.0.1 at 2016-03-14 18:12:55 +0200
ActionController::RoutingError (No route matches [GET] "/javascripts/all.js"):
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.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/_trace.html.erb (3.4ms)
Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/routes/_route.html.erb (4.9ms)
Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/routes/_route.html.erb (2.3ms)
Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/routes/_table.html.erb (3.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 (1.2ms)
Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/rescues/routing_error.html.erb within rescues/layout (56.4ms)
Started GET "/simple_cart/orders/15" for 127.0.0.1 at 2016-03-14 18:12:56 +0200
Processing by SimpleCart::OrdersController#show as HTML
Parameters: {"id"=>"15"}
[1m[35mOrder Load (0.1ms)[0m SELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1 [["id", 15]]
[1m[36mBillingAddress Load (0.1ms)[0m [1mSELECT "addresses".* FROM "addresses" WHERE "addresses"."type" IN ('BillingAddress') AND "addresses"."order_id" = ? LIMIT 1[0m [["order_id", 15]]
[1m[35mShippingAddress Load (0.2ms)[0m SELECT "addresses".* FROM "addresses" WHERE "addresses"."type" IN ('ShippingAddress') AND "addresses"."order_id" = ? LIMIT 1 [["order_id", 15]]
[1m[36mDelivery Load (0.1ms)[0m [1mSELECT "deliveries".* FROM "deliveries" WHERE "deliveries"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mCreditCard Load (0.2ms)[0m SELECT "credit_cards".* FROM "credit_cards" WHERE "credit_cards"."order_id" = ? LIMIT 1 [["order_id", 15]]
[1m[36mOrderItem Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "order_items" WHERE "order_items"."order_id" = ? LIMIT 1[0m [["order_id", "15"]]
[1m[35mOrderItem Load (0.1ms)[0m SELECT "order_items".* FROM "order_items" WHERE "order_items"."order_id" = ? [["order_id", "15"]]
[1m[36mItem Load (0.1ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", 2]]
[1m[35mItem Load (0.2ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 3]]
Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/orders/show.html.haml within layouts/simple_cart/application (27.9ms)
Completed 200 OK in 42ms (Views: 39.5ms | ActiveRecord: 1.3ms)
Started GET "/javascripts/all.js" for 127.0.0.1 at 2016-03-14 18:12:56 +0200
ActionController::RoutingError (No route matches [GET] "/javascripts/all.js"):
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.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/_trace.html.erb (1.7ms)
Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/routes/_route.html.erb (2.1ms)
Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/routes/_route.html.erb (0.8ms)
Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/routes/_table.html.erb (1.6ms)
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.3ms)
Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/rescues/routing_error.html.erb within rescues/layout (38.5ms)
Started GET "/simple_cart/orders/15/checkout" for 127.0.0.1 at 2016-03-14 18:13:00 +0200
Processing by SimpleCart::CheckoutController#index as HTML
Parameters: {"order_id"=>"15"}
[1m[36mOrder Load (0.1ms)[0m [1mSELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1[0m [["id", 15]]
Redirected to http://localhost:3000/simple_cart/orders/15/checkout/billing
Completed 302 Found in 2ms (ActiveRecord: 0.1ms)
Started GET "/simple_cart/orders/15/checkout/billing" for 127.0.0.1 at 2016-03-14 18:13:00 +0200
Processing by SimpleCart::CheckoutController#show as HTML
Parameters: {"order_id"=>"15", "id"=>"billing"}
[1m[35mOrder Load (0.1ms)[0m SELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1 [["id", 15]]
[1m[36mBillingAddress Load (0.1ms)[0m [1mSELECT "addresses".* FROM "addresses" WHERE "addresses"."type" IN ('BillingAddress') AND "addresses"."order_id" = ? LIMIT 1[0m [["order_id", 15]]
[1m[35mShippingAddress Load (0.1ms)[0m SELECT "addresses".* FROM "addresses" WHERE "addresses"."type" IN ('ShippingAddress') AND "addresses"."order_id" = ? LIMIT 1 [["order_id", 15]]
[1m[36mCreditCard Load (0.1ms)[0m [1mSELECT "credit_cards".* FROM "credit_cards" WHERE "credit_cards"."order_id" = ? LIMIT 1[0m [["order_id", 15]]
Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/_progress.html.haml (1.9ms)
Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/_address.html.haml (8.6ms)
Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/billing.html.haml within layouts/simple_cart/application (15.2ms)
Completed 200 OK in 29ms (Views: 26.1ms | ActiveRecord: 0.4ms)
Started GET "/javascripts/all.js" for 127.0.0.1 at 2016-03-14 18:13:00 +0200
ActionController::RoutingError (No route matches [GET] "/javascripts/all.js"):
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.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/_trace.html.erb (2.2ms)
Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/routes/_route.html.erb (2.3ms)
Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/routes/_route.html.erb (1.4ms)
Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/routes/_table.html.erb (1.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 (2.1ms)
Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/rescues/routing_error.html.erb within rescues/layout (46.6ms)
Started GET "/simple_cart/orders/15/checkout/confirm" for 127.0.0.1 at 2016-03-14 18:13:02 +0200
Processing by SimpleCart::CheckoutController#show as HTML
Parameters: {"order_id"=>"15", "id"=>"confirm"}
[1m[35mOrder Load (0.1ms)[0m SELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1 [["id", 15]]
[1m[36mCreditCard Load (0.1ms)[0m [1mSELECT "credit_cards".* FROM "credit_cards" WHERE "credit_cards"."order_id" = ? LIMIT 1[0m [["order_id", 15]]
[1m[35mBillingAddress Load (0.1ms)[0m SELECT "addresses".* FROM "addresses" WHERE "addresses"."type" IN ('BillingAddress') AND "addresses"."order_id" = ? LIMIT 1 [["order_id", 15]]
[1m[36mShippingAddress Load (0.1ms)[0m [1mSELECT "addresses".* FROM "addresses" WHERE "addresses"."type" IN ('ShippingAddress') AND "addresses"."order_id" = ? LIMIT 1[0m [["order_id", 15]]
Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/_progress.html.haml (0.9ms)
[1m[35mDelivery Load (0.1ms)[0m SELECT "deliveries".* FROM "deliveries" WHERE "deliveries"."id" = ? LIMIT 1 [["id", 1]]
Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/_overview.html.haml (1.9ms)
[1m[36mOrderItem Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "order_items" WHERE "order_items"."order_id" = ? LIMIT 1[0m [["order_id", "15"]]
[1m[35mOrderItem Load (0.2ms)[0m SELECT "order_items".* FROM "order_items" WHERE "order_items"."order_id" = ? [["order_id", "15"]]
[1m[36mItem Load (0.1ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", 2]]
[1m[35mItem Load (0.1ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 3]]
Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/confirm.html.haml within layouts/simple_cart/application (13.9ms)
Completed 200 OK in 29ms (Views: 25.4ms | ActiveRecord: 1.0ms)
Started GET "/javascripts/all.js" for 127.0.0.1 at 2016-03-14 18:13:02 +0200
ActionController::RoutingError (No route matches [GET] "/javascripts/all.js"):
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.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/_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/routes/_route.html.erb (2.6ms)
Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/routes/_route.html.erb (1.4ms)
Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/routes/_table.html.erb (2.2ms)
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 (2.2ms)
Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/rescues/routing_error.html.erb within rescues/layout (45.3ms)
Started GET "/simple_cart/orders/15/checkout/confirm" for 127.0.0.1 at 2016-03-14 18:13:08 +0200
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
Processing by SimpleCart::CheckoutController#show as HTML
Parameters: {"order_id"=>"15", "id"=>"confirm"}
[1m[35mOrder Load (0.2ms)[0m SELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1 [["id", 15]]
[1m[36mCreditCard Load (0.1ms)[0m [1mSELECT "credit_cards".* FROM "credit_cards" WHERE "credit_cards"."order_id" = ? LIMIT 1[0m [["order_id", 15]]
[1m[35mBillingAddress Load (0.2ms)[0m SELECT "addresses".* FROM "addresses" WHERE "addresses"."type" IN ('BillingAddress') AND "addresses"."order_id" = ? LIMIT 1 [["order_id", 15]]
[1m[36mShippingAddress Load (0.2ms)[0m [1mSELECT "addresses".* FROM "addresses" WHERE "addresses"."type" IN ('ShippingAddress') AND "addresses"."order_id" = ? LIMIT 1[0m [["order_id", 15]]
Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/_progress.html.haml (2.9ms)
[1m[35mDelivery Load (0.1ms)[0m SELECT "deliveries".* FROM "deliveries" WHERE "deliveries"."id" = ? LIMIT 1 [["id", 1]]
Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/_overview.html.haml (12.6ms)
[1m[36mOrderItem Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "order_items" WHERE "order_items"."order_id" = ? LIMIT 1[0m [["order_id", "15"]]
[1m[35mOrderItem Load (0.1ms)[0m SELECT "order_items".* FROM "order_items" WHERE "order_items"."order_id" = ? [["order_id", "15"]]
[1m[36mItem Load (0.2ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", 2]]
[1m[35mItem Load (0.1ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 3]]
Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/confirm.html.haml within layouts/simple_cart/application (57.4ms)
Completed 200 OK in 295ms (Views: 228.0ms | ActiveRecord: 2.9ms)
Started GET "/assets/simple_cart/application.self-2f12d59583468bdcee27c6046669f62a778d265fc91cf385e5d36e9189ac822e.css?body=1" for 127.0.0.1 at 2016-03-14 18:13:09 +0200
Started GET "/javascripts/all.js" for 127.0.0.1 at 2016-03-14 18:13:09 +0200
ActionController::RoutingError (No route matches [GET] "/javascripts/all.js"):
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.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/_trace.html.erb (1.5ms)
Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/routes/_route.html.erb (1.4ms)
Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/routes/_route.html.erb (1.4ms)
Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/routes/_table.html.erb (3.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 (1.2ms)
Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/rescues/routing_error.html.erb within rescues/layout (38.0ms)
Started GET "/simple_cart/orders/15" for 127.0.0.1 at 2016-03-14 18:13:10 +0200
Processing by SimpleCart::OrdersController#show as HTML
Parameters: {"id"=>"15"}
[1m[36mOrder Load (0.1ms)[0m [1mSELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1[0m [["id", 15]]
[1m[35mBillingAddress Load (0.1ms)[0m SELECT "addresses".* FROM "addresses" WHERE "addresses"."type" IN ('BillingAddress') AND "addresses"."order_id" = ? LIMIT 1 [["order_id", 15]]
[1m[36mShippingAddress Load (0.2ms)[0m [1mSELECT "addresses".* FROM "addresses" WHERE "addresses"."type" IN ('ShippingAddress') AND "addresses"."order_id" = ? LIMIT 1[0m [["order_id", 15]]
[1m[35mDelivery Load (0.6ms)[0m SELECT "deliveries".* FROM "deliveries" WHERE "deliveries"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mCreditCard Load (0.1ms)[0m [1mSELECT "credit_cards".* FROM "credit_cards" WHERE "credit_cards"."order_id" = ? LIMIT 1[0m [["order_id", 15]]
[1m[35mOrderItem Exists (0.1ms)[0m SELECT 1 AS one FROM "order_items" WHERE "order_items"."order_id" = ? LIMIT 1 [["order_id", "15"]]
[1m[36mOrderItem Load (0.1ms)[0m [1mSELECT "order_items".* FROM "order_items" WHERE "order_items"."order_id" = ?[0m [["order_id", "15"]]
[1m[35mItem Load (0.1ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 2]]
[1m[36mItem Load (0.1ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", 3]]
Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/orders/show.html.haml within layouts/simple_cart/application (44.3ms)
Completed 200 OK in 74ms (Views: 70.8ms | ActiveRecord: 1.4ms)
Started GET "/javascripts/all.js" for 127.0.0.1 at 2016-03-14 18:13:10 +0200
ActionController::RoutingError (No route matches [GET] "/javascripts/all.js"):
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.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/_trace.html.erb (4.2ms)
Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/routes/_route.html.erb (6.8ms)
Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/routes/_route.html.erb (2.0ms)
Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/routes/_table.html.erb (1.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 (3.2ms)
Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/rescues/routing_error.html.erb within rescues/layout (63.9ms)
Started GET "/simple_cart/orders/15" for 127.0.0.1 at 2016-03-14 18:14:13 +0200
Processing by SimpleCart::OrdersController#show as HTML
Parameters: {"id"=>"15"}
[1m[35mOrder Load (0.1ms)[0m SELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1 [["id", 15]]
[1m[36mBillingAddress Load (0.2ms)[0m [1mSELECT "addresses".* FROM "addresses" WHERE "addresses"."type" IN ('BillingAddress') AND "addresses"."order_id" = ? LIMIT 1[0m [["order_id", 15]]
[1m[35mShippingAddress Load (0.1ms)[0m SELECT "addresses".* FROM "addresses" WHERE "addresses"."type" IN ('ShippingAddress') AND "addresses"."order_id" = ? LIMIT 1 [["order_id", 15]]
[1m[36mDelivery Load (0.2ms)[0m [1mSELECT "deliveries".* FROM "deliveries" WHERE "deliveries"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mCreditCard Load (0.1ms)[0m SELECT "credit_cards".* FROM "credit_cards" WHERE "credit_cards"."order_id" = ? LIMIT 1 [["order_id", 15]]
[1m[36mOrderItem Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "order_items" WHERE "order_items"."order_id" = ? LIMIT 1[0m [["order_id", "15"]]
[1m[35mOrderItem Load (0.1ms)[0m SELECT "order_items".* FROM "order_items" WHERE "order_items"."order_id" = ? [["order_id", "15"]]
[1m[36mItem Load (0.1ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", 2]]
[1m[35mItem Load (0.1ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 3]]
Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/orders/show.html.haml within layouts/simple_cart/application (16.7ms)
Completed 500 Internal Server Error in 44ms (ActiveRecord: 1.0ms)
ActionView::Template::Error (couldn't find file 'jquery' with type 'application/javascript'):
3: %head
4: %title Cart
5: = stylesheet_link_tag "simple_cart/application", media: "all"
6: = javascript_include_tag "simple_cart/application", "jquery" "data-turbolinks-track" => true
7: = csrf_meta_tags
8: %body
9: = yield
/home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/assets/javascripts/simple_cart/application.js:13
sprockets (3.5.2) lib/sprockets/resolve.rb:64:in `resolve!'
sprockets (3.5.2) lib/sprockets/directive_processor.rb:399:in `resolve'
sprockets (3.5.2) lib/sprockets/directive_processor.rb:207:in `process_require_directive'
sprockets (3.5.2) lib/sprockets/directive_processor.rb:180:in `block in process_directives'
sprockets (3.5.2) lib/sprockets/directive_processor.rb:178:in `each'
sprockets (3.5.2) lib/sprockets/directive_processor.rb:178:in `process_directives'
sprockets (3.5.2) lib/sprockets/directive_processor.rb:83:in `_call'
sprockets (3.5.2) lib/sprockets/directive_processor.rb:68:in `call'
sprockets (3.5.2) lib/sprockets/processor_utils.rb:75:in `call_processor'
sprockets (3.5.2) lib/sprockets/processor_utils.rb:57:in `block in call_processors'
sprockets (3.5.2) lib/sprockets/processor_utils.rb:56:in `reverse_each'
sprockets (3.5.2) lib/sprockets/processor_utils.rb:56:in `call_processors'
sprockets (3.5.2) lib/sprockets/loader.rb:134:in `load_from_unloaded'
sprockets (3.5.2) lib/sprockets/loader.rb:60:in `block in load'
sprockets (3.5.2) lib/sprockets/loader.rb:318:in `fetch_asset_from_dependency_cache'
sprockets (3.5.2) lib/sprockets/loader.rb:44:in `load'
sprockets (3.5.2) lib/sprockets/cached_environment.rb:20:in `block in initialize'
sprockets (3.5.2) lib/sprockets/cached_environment.rb:47:in `yield'
sprockets (3.5.2) lib/sprockets/cached_environment.rb:47:in `load'
sprockets (3.5.2) lib/sprockets/bundle.rb:23:in `block in call'
sprockets (3.5.2) lib/sprockets/utils.rb:183:in `dfs'
sprockets (3.5.2) lib/sprockets/bundle.rb:24:in `call'
sprockets (3.5.2) lib/sprockets/processor_utils.rb:75:in `call_processor'
sprockets (3.5.2) lib/sprockets/processor_utils.rb:57:in `block in call_processors'
sprockets (3.5.2) lib/sprockets/processor_utils.rb:56:in `reverse_each'
sprockets (3.5.2) lib/sprockets/processor_utils.rb:56:in `call_processors'
sprockets (3.5.2) lib/sprockets/loader.rb:134:in `load_from_unloaded'
sprockets (3.5.2) lib/sprockets/loader.rb:60:in `block in load'
sprockets (3.5.2) lib/sprockets/loader.rb:318:in `fetch_asset_from_dependency_cache'
sprockets (3.5.2) lib/sprockets/loader.rb:44:in `load'
sprockets (3.5.2) lib/sprockets/cached_environment.rb:20:in `block in initialize'
sprockets (3.5.2) lib/sprockets/cached_environment.rb:47:in `yield'
sprockets (3.5.2) lib/sprockets/cached_environment.rb:47:in `load'
sprockets (3.5.2) lib/sprockets/base.rb:66:in `find_asset'
sprockets (3.5.2) lib/sprockets/base.rb:92:in `[]'
sprockets-rails (3.0.4) lib/sprockets/rails/helper.rb:341:in `find_asset'
sprockets-rails (3.0.4) lib/sprockets/rails/helper.rb:333:in `find_debug_asset'
sprockets-rails (3.0.4) lib/sprockets/rails/helper.rb:216:in `block in lookup_debug_asset'
sprockets-rails (3.0.4) lib/sprockets/rails/helper.rb:229:in `block in resolve_asset'
sprockets-rails (3.0.4) lib/sprockets/rails/helper.rb:228:in `each'
sprockets-rails (3.0.4) lib/sprockets/rails/helper.rb:228:in `detect'
sprockets-rails (3.0.4) lib/sprockets/rails/helper.rb:228:in `resolve_asset'
sprockets-rails (3.0.4) lib/sprockets/rails/helper.rb:215:in `lookup_debug_asset'
sprockets-rails (3.0.4) lib/sprockets/rails/helper.rb:128:in `block in javascript_include_tag'
sprockets-rails (3.0.4) lib/sprockets/rails/helper.rb:127:in `map'
sprockets-rails (3.0.4) lib/sprockets/rails/helper.rb:127:in `javascript_include_tag'
/home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/layouts/simple_cart/application.html.haml:6:in `__home_leksster__uby__uby_arage__mazon_simple_cart_app_views_layouts_simple_cart_application_html_haml__1509779311771992327_69903363728420'
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:66: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.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.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 (1.5ms)
Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/rescues/template_error.html.erb within rescues/layout (22.5ms)
Started GET "/simple_cart/orders/15" for 127.0.0.1 at 2016-03-14 18:18:09 +0200
Processing by SimpleCart::OrdersController#show as HTML
Parameters: {"id"=>"15"}
[1m[36mOrder Load (0.1ms)[0m [1mSELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1[0m [["id", 15]]
[1m[35mBillingAddress Load (0.1ms)[0m SELECT "addresses".* FROM "addresses" WHERE "addresses"."type" IN ('BillingAddress') AND "addresses"."order_id" = ? LIMIT 1 [["order_id", 15]]
[1m[36mShippingAddress Load (0.1ms)[0m [1mSELECT "addresses".* FROM "addresses" WHERE "addresses"."type" IN ('ShippingAddress') AND "addresses"."order_id" = ? LIMIT 1[0m [["order_id", 15]]
[1m[35mDelivery Load (0.1ms)[0m SELECT "deliveries".* FROM "deliveries" WHERE "deliveries"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mCreditCard Load (0.1ms)[0m [1mSELECT "credit_cards".* FROM "credit_cards" WHERE "credit_cards"."order_id" = ? LIMIT 1[0m [["order_id", 15]]
[1m[35mOrderItem Exists (0.1ms)[0m SELECT 1 AS one FROM "order_items" WHERE "order_items"."order_id" = ? LIMIT 1 [["order_id", "15"]]
[1m[36mOrderItem Load (0.1ms)[0m [1mSELECT "order_items".* FROM "order_items" WHERE "order_items"."order_id" = ?[0m [["order_id", "15"]]
[1m[35mItem Load (0.2ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 2]]
[1m[36mItem Load (0.1ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", 3]]
Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/orders/show.html.haml within layouts/simple_cart/application (13.1ms)
Completed 500 Internal Server Error in 28ms (ActiveRecord: 1.0ms)
ActionView::Template::Error (couldn't find file 'jquery' with type 'application/javascript'):
3: %head
4: %title Cart
5: = stylesheet_link_tag "simple_cart/application", media: "all"
6: = javascript_include_tag "simple_cart/application", "jquery" "data-turbolinks-track" => true
7: = csrf_meta_tags
8: %body
9: = yield
/home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/assets/javascripts/simple_cart/application.js:13
sprockets (3.5.2) lib/sprockets/resolve.rb:64:in `resolve!'
sprockets (3.5.2) lib/sprockets/directive_processor.rb:399:in `resolve'
sprockets (3.5.2) lib/sprockets/directive_processor.rb:207:in `process_require_directive'
sprockets (3.5.2) lib/sprockets/directive_processor.rb:180:in `block in process_directives'
sprockets (3.5.2) lib/sprockets/directive_processor.rb:178:in `each'
sprockets (3.5.2) lib/sprockets/directive_processor.rb:178:in `process_directives'
sprockets (3.5.2) lib/sprockets/directive_processor.rb:83:in `_call'
sprockets (3.5.2) lib/sprockets/directive_processor.rb:68:in `call'
sprockets (3.5.2) lib/sprockets/processor_utils.rb:75:in `call_processor'
sprockets (3.5.2) lib/sprockets/processor_utils.rb:57:in `block in call_processors'
sprockets (3.5.2) lib/sprockets/processor_utils.rb:56:in `reverse_each'
sprockets (3.5.2) lib/sprockets/processor_utils.rb:56:in `call_processors'
sprockets (3.5.2) lib/sprockets/loader.rb:134:in `load_from_unloaded'
sprockets (3.5.2) lib/sprockets/loader.rb:60:in `block in load'
sprockets (3.5.2) lib/sprockets/loader.rb:318:in `fetch_asset_from_dependency_cache'
sprockets (3.5.2) lib/sprockets/loader.rb:44:in `load'
sprockets (3.5.2) lib/sprockets/cached_environment.rb:20:in `block in initialize'
sprockets (3.5.2) lib/sprockets/cached_environment.rb:47:in `yield'
sprockets (3.5.2) lib/sprockets/cached_environment.rb:47:in `load'
sprockets (3.5.2) lib/sprockets/bundle.rb:23:in `block in call'
sprockets (3.5.2) lib/sprockets/utils.rb:183:in `dfs'
sprockets (3.5.2) lib/sprockets/bundle.rb:24:in `call'
sprockets (3.5.2) lib/sprockets/processor_utils.rb:75:in `call_processor'
sprockets (3.5.2) lib/sprockets/processor_utils.rb:57:in `block in call_processors'
sprockets (3.5.2) lib/sprockets/processor_utils.rb:56:in `reverse_each'
sprockets (3.5.2) lib/sprockets/processor_utils.rb:56:in `call_processors'
sprockets (3.5.2) lib/sprockets/loader.rb:134:in `load_from_unloaded'
sprockets (3.5.2) lib/sprockets/loader.rb:60:in `block in load'
sprockets (3.5.2) lib/sprockets/loader.rb:318:in `fetch_asset_from_dependency_cache'
sprockets (3.5.2) lib/sprockets/loader.rb:44:in `load'
sprockets (3.5.2) lib/sprockets/cached_environment.rb:20:in `block in initialize'
sprockets (3.5.2) lib/sprockets/cached_environment.rb:47:in `yield'
sprockets (3.5.2) lib/sprockets/cached_environment.rb:47:in `load'
sprockets (3.5.2) lib/sprockets/base.rb:66:in `find_asset'
sprockets (3.5.2) lib/sprockets/base.rb:92:in `[]'
sprockets-rails (3.0.4) lib/sprockets/rails/helper.rb:341:in `find_asset'
sprockets-rails (3.0.4) lib/sprockets/rails/helper.rb:333:in `find_debug_asset'
sprockets-rails (3.0.4) lib/sprockets/rails/helper.rb:216:in `block in lookup_debug_asset'
sprockets-rails (3.0.4) lib/sprockets/rails/helper.rb:229:in `block in resolve_asset'
sprockets-rails (3.0.4) lib/sprockets/rails/helper.rb:228:in `each'
sprockets-rails (3.0.4) lib/sprockets/rails/helper.rb:228:in `detect'
sprockets-rails (3.0.4) lib/sprockets/rails/helper.rb:228:in `resolve_asset'
sprockets-rails (3.0.4) lib/sprockets/rails/helper.rb:215:in `lookup_debug_asset'
sprockets-rails (3.0.4) lib/sprockets/rails/helper.rb:128:in `block in javascript_include_tag'
sprockets-rails (3.0.4) lib/sprockets/rails/helper.rb:127:in `map'
sprockets-rails (3.0.4) lib/sprockets/rails/helper.rb:127:in `javascript_include_tag'
/home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/layouts/simple_cart/application.html.haml:6:in `__home_leksster__uby__uby_arage__mazon_simple_cart_app_views_layouts_simple_cart_application_html_haml__1509779311771992327_69903363728420'
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:66: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 (8.7ms)
Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (3.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 (1.3ms)
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 (24.8ms)
Started GET "/simple_cart/orders/15" for 127.0.0.1 at 2016-03-14 18:18:49 +0200
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
Processing by SimpleCart::OrdersController#show as HTML
Parameters: {"id"=>"15"}
[1m[35mOrder Load (0.3ms)[0m SELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1 [["id", 15]]
[1m[36mBillingAddress Load (0.2ms)[0m [1mSELECT "addresses".* FROM "addresses" WHERE "addresses"."type" IN ('BillingAddress') AND "addresses"."order_id" = ? LIMIT 1[0m [["order_id", 15]]
[1m[35mShippingAddress Load (0.2ms)[0m SELECT "addresses".* FROM "addresses" WHERE "addresses"."type" IN ('ShippingAddress') AND "addresses"."order_id" = ? LIMIT 1 [["order_id", 15]]
[1m[36mDelivery Load (0.1ms)[0m [1mSELECT "deliveries".* FROM "deliveries" WHERE "deliveries"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mCreditCard Load (0.2ms)[0m SELECT "credit_cards".* FROM "credit_cards" WHERE "credit_cards"."order_id" = ? LIMIT 1 [["order_id", 15]]
[1m[36mOrderItem Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "order_items" WHERE "order_items"."order_id" = ? LIMIT 1[0m [["order_id", "15"]]
[1m[35mOrderItem Load (0.1ms)[0m SELECT "order_items".* FROM "order_items" WHERE "order_items"."order_id" = ? [["order_id", "15"]]
[1m[36mItem Load (0.1ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", 2]]
[1m[35mItem Load (0.1ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 3]]
Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/orders/show.html.haml within layouts/simple_cart/application (88.6ms)
Completed 200 OK in 3346ms (Views: 3309.0ms | ActiveRecord: 3.0ms)
Started GET "/assets/simple_cart/application.self-89655ea40500a342dad2ac571974c28abab3e3897c63fef4c2d06d7564836879.js?body=1" for 127.0.0.1 at 2016-03-14 18:18:53 +0200
Started GET "/assets/jquery.self-660adc51e0224b731d29f575a6f1ec167ba08ad06ed5deca4f1e8654c135bf4c.js?body=1" for 127.0.0.1 at 2016-03-14 18:18:53 +0200
Started GET "/simple_cart/orders/15/checkout" for 127.0.0.1 at 2016-03-14 18:18:54 +0200
Processing by SimpleCart::CheckoutController#index as HTML
Parameters: {"order_id"=>"15"}
[1m[36mOrder Load (0.1ms)[0m [1mSELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1[0m [["id", 15]]
Redirected to http://localhost:3000/simple_cart/orders/15/checkout/billing
Completed 302 Found in 3ms (ActiveRecord: 0.1ms)
Started GET "/simple_cart/orders/15/checkout/billing" for 127.0.0.1 at 2016-03-14 18:18:55 +0200
Processing by SimpleCart::CheckoutController#show as HTML
Parameters: {"order_id"=>"15", "id"=>"billing"}
[1m[35mOrder Load (0.1ms)[0m SELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1 [["id", 15]]
[1m[36mBillingAddress Load (0.1ms)[0m [1mSELECT "addresses".* FROM "addresses" WHERE "addresses"."type" IN ('BillingAddress') AND "addresses"."order_id" = ? LIMIT 1[0m [["order_id", 15]]
[1m[35mShippingAddress Load (0.1ms)[0m SELECT "addresses".* FROM "addresses" WHERE "addresses"."type" IN ('ShippingAddress') AND "addresses"."order_id" = ? LIMIT 1 [["order_id", 15]]
[1m[36mCreditCard Load (0.1ms)[0m [1mSELECT "credit_cards".* FROM "credit_cards" WHERE "credit_cards"."order_id" = ? LIMIT 1[0m [["order_id", 15]]
Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/_progress.html.haml (5.9ms)
Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/_address.html.haml (27.5ms)
Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/billing.html.haml within layouts/simple_cart/application (56.6ms)
Completed 200 OK in 95ms (Views: 88.7ms | ActiveRecord: 0.5ms)
Started GET "/simple_cart/orders/15/checkout/confirm" for 127.0.0.1 at 2016-03-14 18:18:56 +0200
Processing by SimpleCart::CheckoutController#show as HTML
Parameters: {"order_id"=>"15", "id"=>"confirm"}
[1m[35mOrder Load (0.1ms)[0m SELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1 [["id", 15]]
[1m[36mCreditCard Load (0.2ms)[0m [1mSELECT "credit_cards".* FROM "credit_cards" WHERE "credit_cards"."order_id" = ? LIMIT 1[0m [["order_id", 15]]
[1m[35mBillingAddress Load (0.1ms)[0m SELECT "addresses".* FROM "addresses" WHERE "addresses"."type" IN ('BillingAddress') AND "addresses"."order_id" = ? LIMIT 1 [["order_id", 15]]
[1m[36mShippingAddress Load (0.1ms)[0m [1mSELECT "addresses".* FROM "addresses" WHERE "addresses"."type" IN ('ShippingAddress') AND "addresses"."order_id" = ? LIMIT 1[0m [["order_id", 15]]
Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/_progress.html.haml (1.0ms)
[1m[35mDelivery Load (0.1ms)[0m SELECT "deliveries".* FROM "deliveries" WHERE "deliveries"."id" = ? LIMIT 1 [["id", 1]]
Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/_overview.html.haml (9.9ms)
[1m[36mOrderItem Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "order_items" WHERE "order_items"."order_id" = ? LIMIT 1[0m [["order_id", "15"]]
[1m[35mOrderItem Load (0.1ms)[0m SELECT "order_items".* FROM "order_items" WHERE "order_items"."order_id" = ? [["order_id", "15"]]
[1m[36mItem Load (0.1ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", 2]]
[1m[35mItem Load (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 3]]
Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/confirm.html.haml within layouts/simple_cart/application (30.2ms)
Completed 200 OK in 56ms (Views: 51.1ms | ActiveRecord: 1.0ms)
Started GET "/simple_cart/orders/15" for 127.0.0.1 at 2016-03-14 18:18:58 +0200
Processing by SimpleCart::OrdersController#show as HTML
Parameters: {"id"=>"15"}
[1m[36mOrder Load (0.1ms)[0m [1mSELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1[0m [["id", 15]]
[1m[35mBillingAddress Load (0.1ms)[0m SELECT "addresses".* FROM "addresses" WHERE "addresses"."type" IN ('BillingAddress') AND "addresses"."order_id" = ? LIMIT 1 [["order_id", 15]]
[1m[36mShippingAddress Load (0.2ms)[0m [1mSELECT "addresses".* FROM "addresses" WHERE "addresses"."type" IN ('ShippingAddress') AND "addresses"."order_id" = ? LIMIT 1[0m [["order_id", 15]]
[1m[35mDelivery Load (0.1ms)[0m SELECT "deliveries".* FROM "deliveries" WHERE "deliveries"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mCreditCard Load (0.1ms)[0m [1mSELECT "credit_cards".* FROM "credit_cards" WHERE "credit_cards"."order_id" = ? LIMIT 1[0m [["order_id", 15]]
[1m[35mOrderItem Exists (0.1ms)[0m SELECT 1 AS one FROM "order_items" WHERE "order_items"."order_id" = ? LIMIT 1 [["order_id", "15"]]
[1m[36mOrderItem Load (0.1ms)[0m [1mSELECT "order_items".* FROM "order_items" WHERE "order_items"."order_id" = ?[0m [["order_id", "15"]]
[1m[35mItem Load (0.3ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 2]]
[1m[36mItem Load (0.1ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", 3]]
Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/orders/show.html.haml within layouts/simple_cart/application (17.3ms)
Completed 200 OK in 37ms (Views: 33.7ms | ActiveRecord: 1.3ms)
Started GET "/simple_cart/orders/15" for 127.0.0.1 at 2016-03-14 18:19:42 +0200
Processing by SimpleCart::OrdersController#show as HTML
Parameters: {"id"=>"15"}
[1m[35mOrder Load (0.2ms)[0m SELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1 [["id", 15]]
[1m[36mBillingAddress Load (0.2ms)[0m [1mSELECT "addresses".* FROM "addresses" WHERE "addresses"."type" IN ('BillingAddress') AND "addresses"."order_id" = ? LIMIT 1[0m [["order_id", 15]]
[1m[35mShippingAddress Load (0.1ms)[0m SELECT "addresses".* FROM "addresses" WHERE "addresses"."type" IN ('ShippingAddress') AND "addresses"."order_id" = ? LIMIT 1 [["order_id", 15]]
[1m[36mDelivery Load (0.1ms)[0m [1mSELECT "deliveries".* FROM "deliveries" WHERE "deliveries"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mCreditCard Load (0.1ms)[0m SELECT "credit_cards".* FROM "credit_cards" WHERE "credit_cards"."order_id" = ? LIMIT 1 [["order_id", 15]]
[1m[36mOrderItem Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "order_items" WHERE "order_items"."order_id" = ? LIMIT 1[0m [["order_id", "15"]]
[1m[35mOrderItem Load (0.1ms)[0m SELECT "order_items".* FROM "order_items" WHERE "order_items"."order_id" = ? [["order_id", "15"]]
[1m[36mItem Load (0.1ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", 2]]
[1m[35mItem Load (0.1ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 3]]
Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/orders/show.html.haml within layouts/simple_cart/application (13.8ms)
Completed 200 OK in 825ms (Views: 822.2ms | ActiveRecord: 1.0ms)
Started GET "/assets/simple_cart/application.self-2f12d59583468bdcee27c6046669f62a778d265fc91cf385e5d36e9189ac822e.css?body=1" for 127.0.0.1 at 2016-03-14 18:19:43 +0200
Started GET "/assets/jquery_ujs.self-e87806d0cf4489aeb1bb7288016024e8de67fd18db693fe026fe3907581e53cd.js?body=1" for 127.0.0.1 at 2016-03-14 18:19:43 +0200
Started GET "/assets/simple_cart/application.self-377610cd7c1509e934744c810e3b4cf672dfbcacac3274e7d039827e2ae0fcc7.js?body=1" for 127.0.0.1 at 2016-03-14 18:19:43 +0200
Started GET "/assets/turbolinks.self-c37727e9bd6b2735da5c311aa83fead54ed0be6cc8bd9a65309e9c5abe2cbfff.js?body=1" for 127.0.0.1 at 2016-03-14 18:19:43 +0200
Started GET "/simple_cart/orders/15/checkout" for 127.0.0.1 at 2016-03-14 18:19:44 +0200
Processing by SimpleCart::CheckoutController#index as HTML
Parameters: {"order_id"=>"15"}
[1m[36mOrder Load (0.1ms)[0m [1mSELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1[0m [["id", 15]]
Redirected to http://localhost:3000/simple_cart/orders/15/checkout/billing
Completed 302 Found in 2ms (ActiveRecord: 0.1ms)
Started GET "/simple_cart/orders/15/checkout/billing" for 127.0.0.1 at 2016-03-14 18:19:44 +0200
Processing by SimpleCart::CheckoutController#show as HTML
Parameters: {"order_id"=>"15", "id"=>"billing"}
[1m[35mOrder Load (0.1ms)[0m SELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1 [["id", 15]]
[1m[36mBillingAddress Load (0.2ms)[0m [1mSELECT "addresses".* FROM "addresses" WHERE "addresses"."type" IN ('BillingAddress') AND "addresses"."order_id" = ? LIMIT 1[0m [["order_id", 15]]
[1m[35mShippingAddress Load (0.2ms)[0m SELECT "addresses".* FROM "addresses" WHERE "addresses"."type" IN ('ShippingAddress') AND "addresses"."order_id" = ? LIMIT 1 [["order_id", 15]]
[1m[36mCreditCard Load (0.1ms)[0m [1mSELECT "credit_cards".* FROM "credit_cards" WHERE "credit_cards"."order_id" = ? LIMIT 1[0m [["order_id", 15]]
Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/_progress.html.haml (3.1ms)
Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/_address.html.haml (21.1ms)
Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/billing.html.haml within layouts/simple_cart/application (34.1ms)
Completed 200 OK in 59ms (Views: 53.7ms | ActiveRecord: 0.6ms)
Started GET "/simple_cart/orders/15/checkout/confirm" for 127.0.0.1 at 2016-03-14 18:19:45 +0200
Processing by SimpleCart::CheckoutController#show as HTML
Parameters: {"order_id"=>"15", "id"=>"confirm"}
[1m[35mOrder Load (0.1ms)[0m SELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1 [["id", 15]]
[1m[36mCreditCard Load (0.1ms)[0m [1mSELECT "credit_cards".* FROM "credit_cards" WHERE "credit_cards"."order_id" = ? LIMIT 1[0m [["order_id", 15]]
[1m[35mBillingAddress Load (0.2ms)[0m SELECT "addresses".* FROM "addresses" WHERE "addresses"."type" IN ('BillingAddress') AND "addresses"."order_id" = ? LIMIT 1 [["order_id", 15]]
[1m[36mShippingAddress Load (0.1ms)[0m [1mSELECT "addresses".* FROM "addresses" WHERE "addresses"."type" IN ('ShippingAddress') AND "addresses"."order_id" = ? LIMIT 1[0m [["order_id", 15]]
Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/_progress.html.haml (1.0ms)
[1m[35mDelivery Load (0.1ms)[0m SELECT "deliveries".* FROM "deliveries" WHERE "deliveries"."id" = ? LIMIT 1 [["id", 1]]
Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/_overview.html.haml (8.0ms)
[1m[36mOrderItem Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "order_items" WHERE "order_items"."order_id" = ? LIMIT 1[0m [["order_id", "15"]]
[1m[35mOrderItem Load (0.1ms)[0m SELECT "order_items".* FROM "order_items" WHERE "order_items"."order_id" = ? [["order_id", "15"]]
[1m[36mItem Load (0.1ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", 2]]
[1m[35mItem Load (0.1ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 3]]
Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/confirm.html.haml within layouts/simple_cart/application (25.3ms)
Completed 200 OK in 54ms (Views: 49.5ms | ActiveRecord: 0.9ms)
Started GET "/simple_cart/orders/15" for 127.0.0.1 at 2016-03-14 18:19:46 +0200
Processing by SimpleCart::OrdersController#show as HTML
Parameters: {"id"=>"15"}
[1m[36mOrder Load (0.1ms)[0m [1mSELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1[0m [["id", 15]]
[1m[35mBillingAddress Load (0.1ms)[0m SELECT "addresses".* FROM "addresses" WHERE "addresses"."type" IN ('BillingAddress') AND "addresses"."order_id" = ? LIMIT 1 [["order_id", 15]]
[1m[36mShippingAddress Load (0.1ms)[0m [1mSELECT "addresses".* FROM "addresses" WHERE "addresses"."type" IN ('ShippingAddress') AND "addresses"."order_id" = ? LIMIT 1[0m [["order_id", 15]]
[1m[35mDelivery Load (0.1ms)[0m SELECT "deliveries".* FROM "deliveries" WHERE "deliveries"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mCreditCard Load (0.1ms)[0m [1mSELECT "credit_cards".* FROM "credit_cards" WHERE "credit_cards"."order_id" = ? LIMIT 1[0m [["order_id", 15]]
[1m[35mOrderItem Exists (0.1ms)[0m SELECT 1 AS one FROM "order_items" WHERE "order_items"."order_id" = ? LIMIT 1 [["order_id", "15"]]
[1m[36mOrderItem Load (0.1ms)[0m [1mSELECT "order_items".* FROM "order_items" WHERE "order_items"."order_id" = ?[0m [["order_id", "15"]]
[1m[35mItem Load (0.1ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 2]]
[1m[36mItem Load (0.1ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", 3]]
Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/orders/show.html.haml within layouts/simple_cart/application (26.1ms)
Completed 200 OK in 48ms (Views: 45.9ms | ActiveRecord: 0.8ms)
Started GET "/simple_cart/orders/15/checkout" for 127.0.0.1 at 2016-03-14 18:19:48 +0200
Processing by SimpleCart::CheckoutController#index as HTML
Parameters: {"order_id"=>"15"}
[1m[35mOrder Load (0.1ms)[0m SELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1 [["id", 15]]
Redirected to http://localhost:3000/simple_cart/orders/15/checkout/billing
Completed 302 Found in 2ms (ActiveRecord: 0.1ms)
Started GET "/simple_cart/orders/15/checkout/billing" for 127.0.0.1 at 2016-03-14 18:19:48 +0200
Processing by SimpleCart::CheckoutController#show as HTML
Parameters: {"order_id"=>"15", "id"=>"billing"}
[1m[36mOrder Load (0.1ms)[0m [1mSELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1[0m [["id", 15]]
[1m[35mBillingAddress Load (0.1ms)[0m SELECT "addresses".* FROM "addresses" WHERE "addresses"."type" IN ('BillingAddress') AND "addresses"."order_id" = ? LIMIT 1 [["order_id", 15]]
[1m[36mShippingAddress Load (0.1ms)[0m [1mSELECT "addresses".* FROM "addresses" WHERE "addresses"."type" IN ('ShippingAddress') AND "addresses"."order_id" = ? LIMIT 1[0m [["order_id", 15]]
[1m[35mCreditCard Load (0.1ms)[0m SELECT "credit_cards".* FROM "credit_cards" WHERE "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.8ms)
Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/_address.html.haml (8.8ms)
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 40ms (Views: 36.3ms | ActiveRecord: 0.3ms)
Started GET "/simple_cart/orders/15/checkout/confirm" for 127.0.0.1 at 2016-03-14 18:19:54 +0200
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
Processing by SimpleCart::CheckoutController#show as HTML
Parameters: {"order_id"=>"15", "id"=>"confirm"}
[1m[35mOrder Load (0.2ms)[0m SELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1 [["id", 15]]
[1m[36mCreditCard Load (0.1ms)[0m [1mSELECT "credit_cards".* FROM "credit_cards" WHERE "credit_cards"."order_id" = ? LIMIT 1[0m [["order_id", 15]]
[1m[35mBillingAddress Load (0.2ms)[0m SELECT "addresses".* FROM "addresses" WHERE "addresses"."type" IN ('BillingAddress') AND "addresses"."order_id" = ? LIMIT 1 [["order_id", 15]]
[1m[36mShippingAddress Load (0.2ms)[0m [1mSELECT "addresses".* FROM "addresses" WHERE "addresses"."type" IN ('ShippingAddress') AND "addresses"."order_id" = ? LIMIT 1[0m [["order_id", 15]]
Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/_progress.html.haml (2.7ms)
[1m[35mDelivery Load (0.2ms)[0m SELECT "deliveries".* FROM "deliveries" WHERE "deliveries"."id" = ? LIMIT 1 [["id", 1]]
Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/_overview.html.haml (14.0ms)
[1m[36mOrderItem Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "order_items" WHERE "order_items"."order_id" = ? LIMIT 1[0m [["order_id", "15"]]
[1m[35mOrderItem Load (0.2ms)[0m SELECT "order_items".* FROM "order_items" WHERE "order_items"."order_id" = ? [["order_id", "15"]]
[1m[36mItem Load (0.2ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", 2]]
[1m[35mItem Load (0.1ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 3]]
Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/confirm.html.haml within layouts/simple_cart/application (69.7ms)
Completed 200 OK in 344ms (Views: 274.3ms | ActiveRecord: 3.1ms)
Started GET "/simple_cart/orders/15" for 127.0.0.1 at 2016-03-14 18:19:55 +0200
Processing by SimpleCart::OrdersController#show as HTML
Parameters: {"id"=>"15"}
[1m[36mOrder Load (0.1ms)[0m [1mSELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1[0m [["id", 15]]
[1m[35mBillingAddress Load (0.1ms)[0m SELECT "addresses".* FROM "addresses" WHERE "addresses"."type" IN ('BillingAddress') AND "addresses"."order_id" = ? LIMIT 1 [["order_id", 15]]
[1m[36mShippingAddress Load (0.1ms)[0m [1mSELECT "addresses".* FROM "addresses" WHERE "addresses"."type" IN ('ShippingAddress') AND "addresses"."order_id" = ? LIMIT 1[0m [["order_id", 15]]
[1m[35mDelivery Load (0.1ms)[0m SELECT "deliveries".* FROM "deliveries" WHERE "deliveries"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mCreditCard Load (0.0ms)[0m [1mSELECT "credit_cards".* FROM "credit_cards" WHERE "credit_cards"."order_id" = ? LIMIT 1[0m [["order_id", 15]]
[1m[35mOrderItem Exists (0.1ms)[0m SELECT 1 AS one FROM "order_items" WHERE "order_items"."order_id" = ? LIMIT 1 [["order_id", "15"]]
[1m[36mOrderItem Load (0.1ms)[0m [1mSELECT "order_items".* FROM "order_items" WHERE "order_items"."order_id" = ?[0m [["order_id", "15"]]
[1m[35mItem Load (0.1ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 2]]
[1m[36mItem Load (0.1ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", 3]]
Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/orders/show.html.haml within layouts/simple_cart/application (20.9ms)
Completed 200 OK in 57ms (Views: 54.8ms | ActiveRecord: 0.8ms)
Started GET "/simple_cart/orders/15/checkout" for 127.0.0.1 at 2016-03-14 18:19:57 +0200
Processing by SimpleCart::CheckoutController#index as HTML
Parameters: {"order_id"=>"15"}
[1m[35mOrder Load (0.1ms)[0m SELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1 [["id", 15]]
Redirected to http://localhost:3000/simple_cart/orders/15/checkout/billing
Completed 302 Found in 3ms (ActiveRecord: 0.1ms)
Started GET "/simple_cart/orders/15/checkout/billing" for 127.0.0.1 at 2016-03-14 18:19:57 +0200
Processing by SimpleCart::CheckoutController#show as HTML
Parameters: {"order_id"=>"15", "id"=>"billing"}
[1m[36mOrder Load (0.1ms)[0m [1mSELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1[0m [["id", 15]]
[1m[35mBillingAddress Load (0.5ms)[0m SELECT "addresses".* FROM "addresses" WHERE "addresses"."type" IN ('BillingAddress') AND "addresses"."order_id" = ? LIMIT 1 [["order_id", 15]]
[1m[36mShippingAddress Load (0.1ms)[0m [1mSELECT "addresses".* FROM "addresses" WHERE "addresses"."type" IN ('ShippingAddress') AND "addresses"."order_id" = ? LIMIT 1[0m [["order_id", 15]]
[1m[35mCreditCard Load (0.1ms)[0m SELECT "credit_cards".* FROM "credit_cards" WHERE "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.4ms)
Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/_address.html.haml (29.8ms)
Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/billing.html.haml within layouts/simple_cart/application (50.4ms)
Completed 200 OK in 86ms (Views: 80.1ms | ActiveRecord: 0.8ms)
Started GET "/simple_cart/orders/15/checkout/confirm" for 127.0.0.1 at 2016-03-14 18:19:59 +0200
Processing by SimpleCart::CheckoutController#show as HTML
Parameters: {"order_id"=>"15", "id"=>"confirm"}
[1m[36mOrder Load (0.1ms)[0m [1mSELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1[0m [["id", 15]]
[1m[35mCreditCard Load (0.1ms)[0m SELECT "credit_cards".* FROM "credit_cards" WHERE "credit_cards"."order_id" = ? LIMIT 1 [["order_id", 15]]
[1m[36mBillingAddress Load (0.1ms)[0m [1mSELECT "addresses".* FROM "addresses" WHERE "addresses"."type" IN ('BillingAddress') AND "addresses"."order_id" = ? LIMIT 1[0m [["order_id", 15]]
[1m[35mShippingAddress Load (0.1ms)[0m SELECT "addresses".* FROM "addresses" WHERE "addresses"."type" IN ('ShippingAddress') AND "addresses"."order_id" = ? LIMIT 1 [["order_id", 15]]
Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/_progress.html.haml (1.0ms)
[1m[36mDelivery Load (0.1ms)[0m [1mSELECT "deliveries".* FROM "deliveries" WHERE "deliveries"."id" = ? LIMIT 1[0m [["id", 1]]
Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/_overview.html.haml (2.3ms)
[1m[35mOrderItem Exists (0.1ms)[0m SELECT 1 AS one FROM "order_items" WHERE "order_items"."order_id" = ? LIMIT 1 [["order_id", "15"]]
[1m[36mOrderItem Load (0.1ms)[0m [1mSELECT "order_items".* FROM "order_items" WHERE "order_items"."order_id" = ?[0m [["order_id", "15"]]
[1m[35mItem Load (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 2]]
[1m[36mItem Load (0.1ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", 3]]
Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/confirm.html.haml within layouts/simple_cart/application (12.0ms)
Completed 200 OK in 29ms (Views: 26.1ms | ActiveRecord: 0.6ms)
Started GET "/simple_cart/orders/15" for 127.0.0.1 at 2016-03-14 18:20:00 +0200
Processing by SimpleCart::OrdersController#show as HTML
Parameters: {"id"=>"15"}
[1m[35mOrder Load (0.1ms)[0m SELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1 [["id", 15]]
[1m[36mBillingAddress Load (0.2ms)[0m [1mSELECT "addresses".* FROM "addresses" WHERE "addresses"."type" IN ('BillingAddress') AND "addresses"."order_id" = ? LIMIT 1[0m [["order_id", 15]]
[1m[35mShippingAddress Load (0.2ms)[0m SELECT "addresses".* FROM "addresses" WHERE "addresses"."type" IN ('ShippingAddress') AND "addresses"."order_id" = ? LIMIT 1 [["order_id", 15]]
[1m[36mDelivery Load (0.1ms)[0m [1mSELECT "deliveries".* FROM "deliveries" WHERE "deliveries"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mCreditCard Load (0.1ms)[0m SELECT "credit_cards".* FROM "credit_cards" WHERE "credit_cards"."order_id" = ? LIMIT 1 [["order_id", 15]]
[1m[36mOrderItem Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "order_items" WHERE "order_items"."order_id" = ? LIMIT 1[0m [["order_id", "15"]]
[1m[35mOrderItem Load (0.1ms)[0m SELECT "order_items".* FROM "order_items" WHERE "order_items"."order_id" = ? [["order_id", "15"]]
[1m[36mItem Load (0.1ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", 2]]
[1m[35mItem Load (0.1ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 3]]
Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/orders/show.html.haml within layouts/simple_cart/application (10.3ms)
Completed 200 OK in 26ms (Views: 24.7ms | ActiveRecord: 0.9ms)
Started GET "/simple_cart/orders/15/checkout" for 127.0.0.1 at 2016-03-14 18:20:25 +0200
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
Processing by SimpleCart::CheckoutController#index as HTML
Parameters: {"order_id"=>"15"}
[1m[35mOrder Load (0.2ms)[0m SELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1 [["id", 15]]
Redirected to http://localhost:3000/simple_cart/orders/15/checkout/billing
Completed 302 Found in 33ms (ActiveRecord: 0.5ms)
Started GET "/simple_cart/orders/15/checkout/billing" for 127.0.0.1 at 2016-03-14 18:20:25 +0200
Processing by SimpleCart::CheckoutController#show as HTML
Parameters: {"order_id"=>"15", "id"=>"billing"}
[1m[36mOrder Load (0.1ms)[0m [1mSELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1[0m [["id", 15]]
[1m[35mBillingAddress Load (0.2ms)[0m SELECT "addresses".* FROM "addresses" WHERE "addresses"."type" IN ('BillingAddress') AND "addresses"."order_id" = ? LIMIT 1 [["order_id", 15]]
[1m[36mShippingAddress Load (0.3ms)[0m [1mSELECT "addresses".* FROM "addresses" WHERE "addresses"."type" IN ('ShippingAddress') AND "addresses"."order_id" = ? LIMIT 1[0m [["order_id", 15]]
[1m[35mCreditCard Load (0.2ms)[0m SELECT "credit_cards".* FROM "credit_cards" WHERE "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 (2.8ms)
Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/_address.html.haml (17.3ms)
Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/billing.html.haml within layouts/simple_cart/application (31.9ms)
Completed 200 OK in 336ms (Views: 298.0ms | ActiveRecord: 1.2ms)
Started GET "/simple_cart/orders/15/checkout/confirm" for 127.0.0.1 at 2016-03-14 18:20:27 +0200
Processing by SimpleCart::CheckoutController#show as HTML
Parameters: {"order_id"=>"15", "id"=>"confirm"}
[1m[36mOrder Load (0.1ms)[0m [1mSELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1[0m [["id", 15]]
[1m[35mCreditCard Load (0.1ms)[0m SELECT "credit_cards".* FROM "credit_cards" WHERE "credit_cards"."order_id" = ? LIMIT 1 [["order_id", 15]]
[1m[36mBillingAddress Load (0.2ms)[0m [1mSELECT "addresses".* FROM "addresses" WHERE "addresses"."type" IN ('BillingAddress') AND "addresses"."order_id" = ? LIMIT 1[0m [["order_id", 15]]
[1m[35mShippingAddress Load (0.2ms)[0m SELECT "addresses".* FROM "addresses" WHERE "addresses"."type" IN ('ShippingAddress') AND "addresses"."order_id" = ? LIMIT 1 [["order_id", 15]]
Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/_progress.html.haml (1.1ms)
[1m[36mDelivery Load (0.2ms)[0m [1mSELECT "deliveries".* FROM "deliveries" WHERE "deliveries"."id" = ? LIMIT 1[0m [["id", 1]]
Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/_overview.html.haml (38.3ms)
[1m[35mOrderItem Exists (0.2ms)[0m SELECT 1 AS one FROM "order_items" WHERE "order_items"."order_id" = ? LIMIT 1 [["order_id", "15"]]
[1m[36mOrderItem Load (0.2ms)[0m [1mSELECT "order_items".* FROM "order_items" WHERE "order_items"."order_id" = ?[0m [["order_id", "15"]]
[1m[35mItem Load (0.1ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 2]]
[1m[36mItem Load (0.1ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", 3]]
Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/confirm.html.haml within layouts/simple_cart/application (109.9ms)
Completed 200 OK in 151ms (Views: 145.9ms | ActiveRecord: 2.3ms)
Started GET "/simple_cart/orders/15" for 127.0.0.1 at 2016-03-14 18:20:28 +0200
Processing by SimpleCart::OrdersController#show as HTML
Parameters: {"id"=>"15"}
[1m[35mOrder Load (0.3ms)[0m SELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1 [["id", 15]]
[1m[36mBillingAddress Load (0.3ms)[0m [1mSELECT "addresses".* FROM "addresses" WHERE "addresses"."type" IN ('BillingAddress') AND "addresses"."order_id" = ? LIMIT 1[0m [["order_id", 15]]
[1m[35mShippingAddress Load (0.1ms)[0m SELECT "addresses".* FROM "addresses" WHERE "addresses"."type" IN ('ShippingAddress') AND "addresses"."order_id" = ? LIMIT 1 [["order_id", 15]]
[1m[36mDelivery Load (0.1ms)[0m [1mSELECT "deliveries".* FROM "deliveries" WHERE "deliveries"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mCreditCard Load (0.1ms)[0m SELECT "credit_cards".* FROM "credit_cards" WHERE "credit_cards"."order_id" = ? LIMIT 1 [["order_id", 15]]
[1m[36mOrderItem Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "order_items" WHERE "order_items"."order_id" = ? LIMIT 1[0m [["order_id", "15"]]
[1m[35mOrderItem Load (0.1ms)[0m SELECT "order_items".* FROM "order_items" WHERE "order_items"."order_id" = ? [["order_id", "15"]]
[1m[36mItem Load (0.1ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", 2]]
[1m[35mItem Load (0.1ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 3]]
Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/orders/show.html.haml within layouts/simple_cart/application (33.0ms)
Completed 200 OK in 65ms (Views: 61.7ms | ActiveRecord: 1.3ms)
Started GET "/simple_cart/orders" for 127.0.0.1 at 2016-03-14 18:20:31 +0200
Processing by SimpleCart::OrdersController#index as HTML
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "orders"[0m
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "orders" WHERE "orders"."aasm_state" = ? [["aasm_state", "in_progress"]]
[1m[36mOrder Load (0.1ms)[0m [1mSELECT "orders".* FROM "orders" WHERE "orders"."aasm_state" = ? ORDER BY "orders"."id" DESC[0m [["aasm_state", "in_progress"]]
[1m[35mOrderItem Exists (0.1ms)[0m SELECT 1 AS one FROM "order_items" WHERE "order_items"."order_id" = ? LIMIT 1 [["order_id", "15"]]
[1m[36mOrderItem Load (0.1ms)[0m [1mSELECT "order_items".* FROM "order_items" WHERE "order_items"."order_id" = ?[0m [["order_id", "15"]]
[1m[35mItem Load (0.1ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 2]]
[1m[36mItem Load (0.1ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", 3]]
[1m[35mOrderItem Exists (0.1ms)[0m SELECT 1 AS one FROM "order_items" WHERE "order_items"."order_id" = ? LIMIT 1 [["order_id", "14"]]
[1m[36mOrderItem Load (0.1ms)[0m [1mSELECT "order_items".* FROM "order_items" WHERE "order_items"."order_id" = ?[0m [["order_id", "14"]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 2]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", 3]]
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "orders" WHERE "orders"."aasm_state" = ? [["aasm_state", "in_queue"]]
[1m[36mOrder Load (0.0ms)[0m [1mSELECT "orders".* FROM "orders" WHERE "orders"."aasm_state" = ? ORDER BY "orders"."id" DESC[0m [["aasm_state", "in_queue"]]
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "orders" WHERE "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 (18.6ms)
Completed 200 OK in 37ms (Views: 34.7ms | ActiveRecord: 1.1ms)
Started GET "/simple_cart/orders/14/checkout" for 127.0.0.1 at 2016-03-14 18:20:32 +0200
Processing by SimpleCart::CheckoutController#index as HTML
Parameters: {"order_id"=>"14"}
[1m[36mOrder Load (0.1ms)[0m [1mSELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1[0m [["id", 14]]
Redirected to http://localhost:3000/simple_cart/orders/14/checkout/billing
Completed 302 Found in 2ms (ActiveRecord: 0.1ms)
Started GET "/simple_cart/orders/14/checkout/billing" for 127.0.0.1 at 2016-03-14 18:20:32 +0200
Processing by SimpleCart::CheckoutController#show as HTML
Parameters: {"order_id"=>"14", "id"=>"billing"}
[1m[35mOrder Load (0.1ms)[0m SELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1 [["id", 14]]
[1m[36mBillingAddress Load (0.1ms)[0m [1mSELECT "addresses".* FROM "addresses" WHERE "addresses"."type" IN ('BillingAddress') AND "addresses"."order_id" = ? LIMIT 1[0m [["order_id", 14]]
[1m[35mShippingAddress Load (0.1ms)[0m SELECT "addresses".* FROM "addresses" WHERE "addresses"."type" IN ('ShippingAddress') AND "addresses"."order_id" = ? LIMIT 1 [["order_id", 14]]
[1m[36mCreditCard Load (0.1ms)[0m [1mSELECT "credit_cards".* FROM "credit_cards" WHERE "credit_cards"."order_id" = ? LIMIT 1[0m [["order_id", 14]]
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 (7.0ms)
Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/billing.html.haml within layouts/simple_cart/application (12.6ms)
Completed 200 OK in 42ms (Views: 39.0ms | ActiveRecord: 0.3ms)
Started GET "/simple_cart/orders/14/checkout/confirm" for 127.0.0.1 at 2016-03-14 18:20:33 +0200
Processing by SimpleCart::CheckoutController#show as HTML
Parameters: {"order_id"=>"14", "id"=>"confirm"}
[1m[35mOrder Load (0.1ms)[0m SELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1 [["id", 14]]
[1m[36mCreditCard Load (0.1ms)[0m [1mSELECT "credit_cards".* FROM "credit_cards" WHERE "credit_cards"."order_id" = ? LIMIT 1[0m [["order_id", 14]]
[1m[35mBillingAddress Load (0.2ms)[0m SELECT "addresses".* FROM "addresses" WHERE "addresses"."type" IN ('BillingAddress') AND "addresses"."order_id" = ? LIMIT 1 [["order_id", 14]]
[1m[36mShippingAddress Load (0.2ms)[0m [1mSELECT "addresses".* FROM "addresses" WHERE "addresses"."type" IN ('ShippingAddress') AND "addresses"."order_id" = ? LIMIT 1[0m [["order_id", 14]]
Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/_progress.html.haml (1.0ms)
[1m[35mDelivery Load (0.1ms)[0m SELECT "deliveries".* FROM "deliveries" WHERE "deliveries"."id" = ? LIMIT 1 [["id", 1]]
Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/_overview.html.haml (1.6ms)
[1m[36mOrderItem Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "order_items" WHERE "order_items"."order_id" = ? LIMIT 1[0m [["order_id", "14"]]
[1m[35mOrderItem Load (0.1ms)[0m SELECT "order_items".* FROM "order_items" WHERE "order_items"."order_id" = ? [["order_id", "14"]]
[1m[36mItem Load (0.1ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", 2]]
[1m[35mItem Load (0.1ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 3]]
Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/confirm.html.haml within layouts/simple_cart/application (10.5ms)
Completed 200 OK in 31ms (Views: 26.1ms | ActiveRecord: 1.0ms)
Started GET "/simple_cart/orders/14/checkout/confirm" for 127.0.0.1 at 2016-03-14 18:21:25 +0200
Processing by SimpleCart::CheckoutController#show as HTML
Parameters: {"order_id"=>"14", "id"=>"confirm"}
[1m[36mOrder Load (0.1ms)[0m [1mSELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1[0m [["id", 14]]
[1m[35mCreditCard Load (0.2ms)[0m SELECT "credit_cards".* FROM "credit_cards" WHERE "credit_cards"."order_id" = ? LIMIT 1 [["order_id", 14]]
[1m[36mBillingAddress Load (0.2ms)[0m [1mSELECT "addresses".* FROM "addresses" WHERE "addresses"."type" IN ('BillingAddress') AND "addresses"."order_id" = ? LIMIT 1[0m [["order_id", 14]]
[1m[35mShippingAddress Load (0.1ms)[0m SELECT "addresses".* FROM "addresses" WHERE "addresses"."type" IN ('ShippingAddress') AND "addresses"."order_id" = ? LIMIT 1 [["order_id", 14]]
Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/_progress.html.haml (3.4ms)
[1m[36mDelivery Load (0.1ms)[0m [1mSELECT "deliveries".* FROM "deliveries" WHERE "deliveries"."id" = ? LIMIT 1[0m [["id", 1]]
Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/_overview.html.haml (7.2ms)
[1m[35mOrderItem Exists (0.1ms)[0m SELECT 1 AS one FROM "order_items" WHERE "order_items"."order_id" = ? LIMIT 1 [["order_id", "14"]]
[1m[36mOrderItem Load (0.1ms)[0m [1mSELECT "order_items".* FROM "order_items" WHERE "order_items"."order_id" = ?[0m [["order_id", "14"]]
[1m[35mItem Load (0.1ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 2]]
[1m[36mItem Load (0.1ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", 3]]
Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/confirm.html.haml within layouts/simple_cart/application (24.8ms)
Completed 200 OK in 46ms (Views: 40.9ms | ActiveRecord: 1.0ms)
Started GET "/assets/simple_cart/application.self-2f12d59583468bdcee27c6046669f62a778d265fc91cf385e5d36e9189ac822e.css?body=1" for 127.0.0.1 at 2016-03-14 18:21:26 +0200
Started GET "/assets/simple_cart/application.self-3b8dabdc891efe46b9a144b400ad69e37d7e5876bdc39dee783419a69d7ca819.js?body=1" for 127.0.0.1 at 2016-03-14 18:21:26 +0200
Started GET "/assets/jquery.self-660adc51e0224b731d29f575a6f1ec167ba08ad06ed5deca4f1e8654c135bf4c.js?body=1" for 127.0.0.1 at 2016-03-14 18:21:26 +0200
Started GET "/assets/jquery_ujs.self-e87806d0cf4489aeb1bb7288016024e8de67fd18db693fe026fe3907581e53cd.js?body=1" for 127.0.0.1 at 2016-03-14 18:21:26 +0200
Started GET "/assets/turbolinks.self-c37727e9bd6b2735da5c311aa83fead54ed0be6cc8bd9a65309e9c5abe2cbfff.js?body=1" for 127.0.0.1 at 2016-03-14 18:21:26 +0200
Started PATCH "/simple_cart/orders/14" for 127.0.0.1 at 2016-03-14 18:21:28 +0200
Processing by SimpleCart::OrdersController#update as HTML
Parameters: {"authenticity_token"=>"dFB7zd2KpFezvgFUIU17Ey+DQQpqXmbrBgxifdftDJ6yQEbBRlyoobrDqD8yCAJnbHUDT+Z+t/UMgpkcuvqiDw==", "id"=>"14"}
[1m[35mOrder Load (0.1ms)[0m SELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1 [["id", 14]]
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
[1m[35mSQL (2.1ms)[0m UPDATE "orders" SET "aasm_state" = ?, "updated_at" = ? WHERE "orders"."id" = ? [["aasm_state", "in_queue"], ["updated_at", "2016-03-14 16:21:28.754036"], ["id", 14]]
[1m[36m (48.1ms)[0m [1mcommit transaction[0m
Completed 500 Internal Server Error in 58ms (ActiveRecord: 50.5ms)
NoMethodError (undefined method `shipping' for #):
activemodel (4.2.5.2) lib/active_model/attribute_methods.rb:433:in `method_missing'
/home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/controllers/simple_cart/orders_controller.rb:17:in `update'
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 (5.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 (2.2ms)
Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (1.2ms)
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 GET "/simple_cart/orders/14/checkout/confirm" for 127.0.0.1 at 2016-03-14 18:21:35 +0200
Processing by SimpleCart::CheckoutController#show as HTML
Parameters: {"order_id"=>"14", "id"=>"confirm"}
[1m[35mOrder Load (0.1ms)[0m SELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1 [["id", 14]]
[1m[36mCreditCard Load (0.1ms)[0m [1mSELECT "credit_cards".* FROM "credit_cards" WHERE "credit_cards"."order_id" = ? LIMIT 1[0m [["order_id", 14]]
[1m[35mBillingAddress Load (0.2ms)[0m SELECT "addresses".* FROM "addresses" WHERE "addresses"."type" IN ('BillingAddress') AND "addresses"."order_id" = ? LIMIT 1 [["order_id", 14]]
[1m[36mShippingAddress Load (0.1ms)[0m [1mSELECT "addresses".* FROM "addresses" WHERE "addresses"."type" IN ('ShippingAddress') AND "addresses"."order_id" = ? LIMIT 1[0m [["order_id", 14]]
Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/_progress.html.haml (1.0ms)
[1m[35mDelivery Load (0.1ms)[0m SELECT "deliveries".* FROM "deliveries" WHERE "deliveries"."id" = ? LIMIT 1 [["id", 1]]
Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/_overview.html.haml (1.8ms)
[1m[36mOrderItem Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "order_items" WHERE "order_items"."order_id" = ? LIMIT 1[0m [["order_id", "14"]]
[1m[35mOrderItem Load (0.1ms)[0m SELECT "order_items".* FROM "order_items" WHERE "order_items"."order_id" = ? [["order_id", "14"]]
[1m[36mItem Load (0.1ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", 2]]
[1m[35mItem Load (0.1ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 3]]
Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/confirm.html.haml within layouts/simple_cart/application (13.4ms)
Completed 200 OK in 39ms (Views: 32.5ms | ActiveRecord: 1.1ms)
Started GET "/assets/simple_cart/application.self-2f12d59583468bdcee27c6046669f62a778d265fc91cf385e5d36e9189ac822e.css?body=1" for 127.0.0.1 at 2016-03-14 18:21:35 +0200
Started GET "/assets/jquery.self-660adc51e0224b731d29f575a6f1ec167ba08ad06ed5deca4f1e8654c135bf4c.js?body=1" for 127.0.0.1 at 2016-03-14 18:21:35 +0200
Started GET "/assets/jquery_ujs.self-e87806d0cf4489aeb1bb7288016024e8de67fd18db693fe026fe3907581e53cd.js?body=1" for 127.0.0.1 at 2016-03-14 18:21:35 +0200
Started GET "/assets/turbolinks.self-c37727e9bd6b2735da5c311aa83fead54ed0be6cc8bd9a65309e9c5abe2cbfff.js?body=1" for 127.0.0.1 at 2016-03-14 18:21:35 +0200
Started GET "/assets/simple_cart/application.self-3b8dabdc891efe46b9a144b400ad69e37d7e5876bdc39dee783419a69d7ca819.js?body=1" for 127.0.0.1 at 2016-03-14 18:21:35 +0200
Started PATCH "/simple_cart/orders/14" for 127.0.0.1 at 2016-03-14 18:21:38 +0200
Processing by SimpleCart::OrdersController#update as HTML
Parameters: {"authenticity_token"=>"upq9tPdfblawX+QA+iW8DXYzWkKKpzsFEv62XMqusAx8ioC4bIlioLkiTWvpYMV5NcUYBwaH6hsYcE09p7kenQ==", "id"=>"14"}
[1m[36mOrder Load (0.1ms)[0m [1mSELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1[0m [["id", 14]]
[1m[35m (0.1ms)[0m begin transaction
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
Completed 500 Internal Server Error in 3ms (ActiveRecord: 0.3ms)
AASM::InvalidTransition (Event 'queued' cannot transition from 'in_queue'. ):
aasm (4.8.0) lib/aasm/aasm.rb:181:in `aasm_failed'
aasm (4.8.0) lib/aasm/aasm.rb:116:in `aasm_fire_event'
aasm (4.8.0) lib/aasm/persistence/active_record_persistence.rb:168:in `block in aasm_fire_event'
activerecord (4.2.5.2) lib/active_record/connection_adapters/abstract/database_statements.rb:213:in `block in transaction'
activerecord (4.2.5.2) lib/active_record/connection_adapters/abstract/transaction.rb:184:in `within_new_transaction'
activerecord (4.2.5.2) lib/active_record/connection_adapters/abstract/database_statements.rb:213:in `transaction'
activerecord (4.2.5.2) lib/active_record/transactions.rb:220:in `transaction'
aasm (4.8.0) lib/aasm/persistence/active_record_persistence.rb:168:in `aasm_fire_event'
aasm (4.8.0) lib/aasm/base.rb:101:in `block in event'
/home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/controllers/simple_cart/orders_controller.rb:16:in `update'
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 (6.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 (3.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 (1.0ms)
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.5ms)
Started GET "/simple_cart/orders/14/checkout/billing" for 127.0.0.1 at 2016-03-14 18:21:54 +0200
Processing by SimpleCart::CheckoutController#show as HTML
Parameters: {"order_id"=>"14", "id"=>"billing"}
[1m[35mOrder Load (0.1ms)[0m SELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1 [["id", 14]]
[1m[36mBillingAddress Load (0.3ms)[0m [1mSELECT "addresses".* FROM "addresses" WHERE "addresses"."type" IN ('BillingAddress') AND "addresses"."order_id" = ? LIMIT 1[0m [["order_id", 14]]
[1m[35mShippingAddress Load (0.1ms)[0m SELECT "addresses".* FROM "addresses" WHERE "addresses"."type" IN ('ShippingAddress') AND "addresses"."order_id" = ? LIMIT 1 [["order_id", 14]]
[1m[36mCreditCard Load (0.1ms)[0m [1mSELECT "credit_cards".* FROM "credit_cards" WHERE "credit_cards"."order_id" = ? LIMIT 1[0m [["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 (9.6ms)
Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/billing.html.haml within layouts/simple_cart/application (15.6ms)
Completed 200 OK in 38ms (Views: 34.6ms | ActiveRecord: 0.6ms)
Started GET "/simple_cart/orders/14/checkout/billing" for 127.0.0.1 at 2016-03-14 18:21:58 +0200
Processing by SimpleCart::CheckoutController#show as HTML
Parameters: {"order_id"=>"14", "id"=>"billing"}
[1m[35mOrder Load (0.2ms)[0m SELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1 [["id", 14]]
[1m[36mBillingAddress Load (0.2ms)[0m [1mSELECT "addresses".* FROM "addresses" WHERE "addresses"."type" IN ('BillingAddress') AND "addresses"."order_id" = ? LIMIT 1[0m [["order_id", 14]]
[1m[35mShippingAddress Load (0.2ms)[0m SELECT "addresses".* FROM "addresses" WHERE "addresses"."type" IN ('ShippingAddress') AND "addresses"."order_id" = ? LIMIT 1 [["order_id", 14]]
[1m[36mCreditCard Load (0.2ms)[0m [1mSELECT "credit_cards".* FROM "credit_cards" WHERE "credit_cards"."order_id" = ? LIMIT 1[0m [["order_id", 14]]
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 (10.8ms)
Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/billing.html.haml within layouts/simple_cart/application (21.8ms)
Completed 200 OK in 50ms (Views: 41.7ms | ActiveRecord: 0.9ms)
Started GET "/simple_cart" for 127.0.0.1 at 2016-03-14 18:22:01 +0200
Processing by SimpleCart::CartsController#show as HTML
[1m[35mItem Load (0.1ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 2]]
[1m[36mItem Load (0.1ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", 3]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "2"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "3"]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "2"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "3"]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "2"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "3"]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "2"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "3"]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "2"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "3"]]
Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml within layouts/simple_cart/application (29.7ms)
Completed 200 OK in 53ms (Views: 50.5ms | ActiveRecord: 0.4ms)
Started GET "/simple_cart" for 127.0.0.1 at 2016-03-14 18:22:01 +0200
Processing by SimpleCart::CartsController#show as HTML
[1m[35mItem Load (0.1ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 2]]
[1m[36mItem Load (0.1ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", 3]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "2"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "3"]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "2"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "3"]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "2"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "3"]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "2"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "3"]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "2"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "3"]]
Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml within layouts/simple_cart/application (22.7ms)
Completed 200 OK in 42ms (Views: 40.7ms | ActiveRecord: 0.5ms)
Started POST "/simple_cart/cart/checkout" for 127.0.0.1 at 2016-03-14 18:22:02 +0200
Processing by SimpleCart::CartsController#add as HTML
Parameters: {"authenticity_token"=>"PeQp1sVPjqivro+QdLdVbdmnGu8TboMT+X9PPtHgQLn79BTaXpmCXqbTJvtn8iwZmlFYqp9OUg3z8bRfvPfuKA==", "item_id"=>"checkout"}
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-14 18:22:02 +0200
Processing by SimpleCart::CartsController#show as HTML
[1m[35mItem Load (0.1ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 2]]
[1m[36mItem Load (0.1ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", 3]]
Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml within layouts/simple_cart/application (1.8ms)
Completed 500 Internal Server Error in 4ms (ActiveRecord: 0.2ms)
ActionView::Template::Error (wrong constant name ):
4: - if flash[:alert]
5: .alert
6: = flash[:alert]
7: = @cart.order_items
8: = @cart.build_order
9: .thumbnail
10: .caption-full
activesupport (4.2.5.2) lib/active_support/inflector/methods.rb:254:in `const_get'
activesupport (4.2.5.2) lib/active_support/inflector/methods.rb:254:in `constantize'
activesupport (4.2.5.2) lib/active_support/core_ext/string/inflections.rb:66:in `constantize'
/home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/models/cart.rb:24:in `block in items'
/home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/models/cart.rb:23:in `each'
/home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/models/cart.rb:23:in `items'
/home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/models/cart.rb:32:in `order_items'
/home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml:7:in `__home_leksster__uby__uby_arage__mazon_simple_cart_app_views_simple_cart_carts_show_html_haml___3136034979324359045_69819941591580'
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.5ms)
Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (2.8ms)
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/template_error.html.erb within rescues/layout (20.9ms)
Started GET "/simple_cart/cart" for 127.0.0.1 at 2016-03-14 18:23:22 +0200
Processing by SimpleCart::CartsController#show as HTML
[1m[35mItem Load (0.1ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 2]]
[1m[36mItem Load (0.1ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", 3]]
Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml within layouts/simple_cart/application (1.9ms)
Completed 500 Internal Server Error in 5ms (ActiveRecord: 0.2ms)
ActionView::Template::Error (wrong constant name ):
4: - if flash[:alert]
5: .alert
6: = flash[:alert]
7: = @cart.order_items
8: = @cart.build_order
9: .thumbnail
10: .caption-full
activesupport (4.2.5.2) lib/active_support/inflector/methods.rb:254:in `const_get'
activesupport (4.2.5.2) lib/active_support/inflector/methods.rb:254:in `constantize'
activesupport (4.2.5.2) lib/active_support/core_ext/string/inflections.rb:66:in `constantize'
/home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/models/cart.rb:24:in `block in items'
/home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/models/cart.rb:23:in `each'
/home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/models/cart.rb:23:in `items'
/home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/models/cart.rb:32:in `order_items'
/home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml:7:in `__home_leksster__uby__uby_arage__mazon_simple_cart_app_views_simple_cart_carts_show_html_haml___3136034979324359045_69819941591580'
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 (6.7ms)
Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (2.8ms)
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 (20.9ms)
Started GET "/simple_cart/" for 127.0.0.1 at 2016-03-14 18:23:25 +0200
Processing by SimpleCart::CartsController#show as HTML
[1m[35mItem Load (0.1ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 2]]
[1m[36mItem Load (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", 3]]
Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml within layouts/simple_cart/application (1.4ms)
Completed 500 Internal Server Error in 3ms (ActiveRecord: 0.1ms)
ActionView::Template::Error (wrong constant name ):
4: - if flash[:alert]
5: .alert
6: = flash[:alert]
7: = @cart.order_items
8: = @cart.build_order
9: .thumbnail
10: .caption-full
activesupport (4.2.5.2) lib/active_support/inflector/methods.rb:254:in `const_get'
activesupport (4.2.5.2) lib/active_support/inflector/methods.rb:254:in `constantize'
activesupport (4.2.5.2) lib/active_support/core_ext/string/inflections.rb:66:in `constantize'
/home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/models/cart.rb:24:in `block in items'
/home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/models/cart.rb:23:in `each'
/home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/models/cart.rb:23:in `items'
/home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/models/cart.rb:32:in `order_items'
/home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml:7:in `__home_leksster__uby__uby_arage__mazon_simple_cart_app_views_simple_cart_carts_show_html_haml___3136034979324359045_69819941591580'
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 (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 (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.8ms)
Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/rescues/template_error.html.erb within rescues/layout (19.0ms)
Started GET "/simple_cart/" for 127.0.0.1 at 2016-03-14 18:23:25 +0200
Processing by SimpleCart::CartsController#show as HTML
[1m[35mItem Load (0.1ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 2]]
[1m[36mItem Load (0.1ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", 3]]
Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml within layouts/simple_cart/application (1.6ms)
Completed 500 Internal Server Error in 5ms (ActiveRecord: 0.2ms)
ActionView::Template::Error (wrong constant name ):
4: - if flash[:alert]
5: .alert
6: = flash[:alert]
7: = @cart.order_items
8: = @cart.build_order
9: .thumbnail
10: .caption-full
activesupport (4.2.5.2) lib/active_support/inflector/methods.rb:254:in `const_get'
activesupport (4.2.5.2) lib/active_support/inflector/methods.rb:254:in `constantize'
activesupport (4.2.5.2) lib/active_support/core_ext/string/inflections.rb:66:in `constantize'
/home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/models/cart.rb:24:in `block in items'
/home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/models/cart.rb:23:in `each'
/home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/models/cart.rb:23:in `items'
/home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/models/cart.rb:32:in `order_items'
/home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml:7:in `__home_leksster__uby__uby_arage__mazon_simple_cart_app_views_simple_cart_carts_show_html_haml___3136034979324359045_69819941591580'
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 (6.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.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.7ms)
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 (18.6ms)
Started GET "/simple_cart/" for 127.0.0.1 at 2016-03-14 18:23:29 +0200
Processing by SimpleCart::CartsController#show as HTML
[1m[35mItem Load (0.2ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 2]]
[1m[36mItem Load (0.1ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", 3]]
Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml within layouts/simple_cart/application (2.4ms)
Completed 500 Internal Server Error in 6ms (ActiveRecord: 0.3ms)
ActionView::Template::Error (wrong constant name ):
4: - if flash[:alert]
5: .alert
6: = flash[:alert]
7: = @cart.order_items
8: = @cart.build_order
9: .thumbnail
10: .caption-full
activesupport (4.2.5.2) lib/active_support/inflector/methods.rb:254:in `const_get'
activesupport (4.2.5.2) lib/active_support/inflector/methods.rb:254:in `constantize'
activesupport (4.2.5.2) lib/active_support/core_ext/string/inflections.rb:66:in `constantize'
/home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/models/cart.rb:24:in `block in items'
/home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/models/cart.rb:23:in `each'
/home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/models/cart.rb:23:in `items'
/home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/models/cart.rb:32:in `order_items'
/home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml:7:in `__home_leksster__uby__uby_arage__mazon_simple_cart_app_views_simple_cart_carts_show_html_haml___3136034979324359045_69819941591580'
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.7ms)
Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (2.8ms)
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 (21.0ms)
Started GET "/bicycles/1" for 127.0.0.1 at 2016-03-14 18:23:46 +0200
Processing by BicyclesController#show as HTML
Parameters: {"id"=>"1"}
[1m[35mBicycle Load (0.2ms)[0m SELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1 [["id", 1]]
Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/carts/_buy.html.haml (10.8ms)
Rendered bicycles/show.html.erb (13.1ms)
Completed 200 OK in 93ms (Views: 51.5ms | ActiveRecord: 0.5ms)
Started POST "/simple_cart/cart/1" for 127.0.0.1 at 2016-03-14 18:23:48 +0200
Processing by SimpleCart::CartsController#add as HTML
Parameters: {"utf8"=>"✓", "authenticity_token"=>"SWDefLQrDSUSlkk/wdYhP3Ud8/fZfq0Tx6pEybdpb4a4ZWi7/WED9vum2BEtGa3gbgM9JYz6Q1cwtDpjDbNb2g==", "qty"=>"1", "klass"=>"Bicycle", "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-14 18:23:48 +0200
Processing by SimpleCart::CartsController#show as HTML
[1m[36mBicycle Load (0.2ms)[0m [1mSELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mCACHE (0.0ms)[0m SELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1 [["id", "1"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1[0m [["id", "1"]]
[1m[35mCACHE (0.0ms)[0m SELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1 [["id", "1"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1[0m [["id", "1"]]
[1m[35mCACHE (0.0ms)[0m SELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."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.7ms)
Completed 200 OK in 31ms (Views: 30.4ms | ActiveRecord: 0.3ms)
Started POST "/simple_cart/cart/checkout" for 127.0.0.1 at 2016-03-14 18:23:49 +0200
Processing by SimpleCart::CartsController#add as HTML
Parameters: {"authenticity_token"=>"22Ng2e8ugeF6O3kSwnESoYPyPle73avl3gRHt5DM6AkqZtYepmSPMpML6Dwuvp5+mOzwhe5ZRaEpGjkdKhbcVQ==", "item_id"=>"checkout"}
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-14 18:23:49 +0200
Processing by SimpleCart::CartsController#show as HTML
[1m[36mBicycle Load (0.1ms)[0m [1mSELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1[0m [["id", 1]]
Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml within layouts/simple_cart/application (1.8ms)
Completed 500 Internal Server Error in 4ms (ActiveRecord: 0.1ms)
ActionView::Template::Error (wrong constant name ):
4: - if flash[:alert]
5: .alert
6: = flash[:alert]
7: = @cart.order_items
8: = @cart.build_order
9: .thumbnail
10: .caption-full
activesupport (4.2.5.2) lib/active_support/inflector/methods.rb:254:in `const_get'
activesupport (4.2.5.2) lib/active_support/inflector/methods.rb:254:in `constantize'
activesupport (4.2.5.2) lib/active_support/core_ext/string/inflections.rb:66:in `constantize'
/home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/models/cart.rb:24:in `block in items'
/home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/models/cart.rb:23:in `each'
/home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/models/cart.rb:23:in `items'
/home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/models/cart.rb:32:in `order_items'
/home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml:7:in `__home_leksster__uby__uby_arage__mazon_simple_cart_app_views_simple_cart_carts_show_html_haml___3136034979324359045_69819941591580'
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 (6.7ms)
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/template_error.html.erb within rescues/layout (19.9ms)
Started GET "/simple_cart/cart" for 127.0.0.1 at 2016-03-14 18:24:56 +0200
Processing by SimpleCart::CartsController#show as HTML
[1m[35mBicycle Load (0.1ms)[0m SELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."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.4ms)
Completed 500 Internal Server Error in 13ms (ActiveRecord: 0.1ms)
ActionView::Template::Error (wrong constant name ):
9: .thumbnail
10: .caption-full
11: = form_tag url_for(:controller => 'carts', :action => 'update'), method: :put do
12: - if @cart.items.nil?
13: empty
14: - else
15: %table.table.table-hover
activesupport (4.2.5.2) lib/active_support/inflector/methods.rb:254:in `const_get'
activesupport (4.2.5.2) lib/active_support/inflector/methods.rb:254:in `constantize'
activesupport (4.2.5.2) lib/active_support/core_ext/string/inflections.rb:66:in `constantize'
/home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/models/cart.rb:24:in `block in items'
/home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/models/cart.rb:23:in `each'
/home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/models/cart.rb:23:in `items'
/home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml:12:in `block in __home_leksster__uby__uby_arage__mazon_simple_cart_app_views_simple_cart_carts_show_html_haml___3136034979324359045_47089500'
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___3136034979324359045_47089500'
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.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 (3.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/template_error.html.erb within rescues/layout (21.4ms)
Started GET "/simple_cart/" for 127.0.0.1 at 2016-03-14 18:24:59 +0200
Processing by SimpleCart::CartsController#show as HTML
[1m[36mBicycle Load (0.1ms)[0m [1mSELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1[0m [["id", 1]]
Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml within layouts/simple_cart/application (1.6ms)
Completed 500 Internal Server Error in 4ms (ActiveRecord: 0.1ms)
ActionView::Template::Error (wrong constant name ):
9: .thumbnail
10: .caption-full
11: = form_tag url_for(:controller => 'carts', :action => 'update'), method: :put do
12: - if @cart.items.nil?
13: empty
14: - else
15: %table.table.table-hover
activesupport (4.2.5.2) lib/active_support/inflector/methods.rb:254:in `const_get'
activesupport (4.2.5.2) lib/active_support/inflector/methods.rb:254:in `constantize'
activesupport (4.2.5.2) lib/active_support/core_ext/string/inflections.rb:66:in `constantize'
/home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/models/cart.rb:24:in `block in items'
/home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/models/cart.rb:23:in `each'
/home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/models/cart.rb:23:in `items'
/home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml:12:in `block in __home_leksster__uby__uby_arage__mazon_simple_cart_app_views_simple_cart_carts_show_html_haml___3136034979324359045_47089500'
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___3136034979324359045_47089500'
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.1ms)
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.8ms)
Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/rescues/template_error.html.erb within rescues/layout (20.5ms)
Started GET "/simple_cart/" for 127.0.0.1 at 2016-03-14 18:24:59 +0200
Processing by SimpleCart::CartsController#show as HTML
[1m[35mBicycle Load (0.1ms)[0m SELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."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 (1.4ms)
Completed 500 Internal Server Error in 3ms (ActiveRecord: 0.1ms)
ActionView::Template::Error (wrong constant name ):
9: .thumbnail
10: .caption-full
11: = form_tag url_for(:controller => 'carts', :action => 'update'), method: :put do
12: - if @cart.items.nil?
13: empty
14: - else
15: %table.table.table-hover
activesupport (4.2.5.2) lib/active_support/inflector/methods.rb:254:in `const_get'
activesupport (4.2.5.2) lib/active_support/inflector/methods.rb:254:in `constantize'
activesupport (4.2.5.2) lib/active_support/core_ext/string/inflections.rb:66:in `constantize'
/home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/models/cart.rb:24:in `block in items'
/home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/models/cart.rb:23:in `each'
/home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/models/cart.rb:23:in `items'
/home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml:12:in `block in __home_leksster__uby__uby_arage__mazon_simple_cart_app_views_simple_cart_carts_show_html_haml___3136034979324359045_47089500'
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___3136034979324359045_47089500'
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.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 (3.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/template_error.html.erb within rescues/layout (21.7ms)
Started GET "/simple_cart/" for 127.0.0.1 at 2016-03-14 18:25:07 +0200
[1m[36mActiveRecord::SchemaMigration Load (0.2ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
Processing by SimpleCart::CartsController#show as HTML
[1m[35mBicycle Load (0.2ms)[0m SELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."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 (19.2ms)
Completed 500 Internal Server Error in 33ms (ActiveRecord: 0.6ms)
ActionView::Template::Error (wrong constant name ):
9: .thumbnail
10: .caption-full
11: = form_tag url_for(:controller => 'carts', :action => 'update'), method: :put do
12: - if @cart.items.nil?
13: empty
14: - else
15: %table.table.table-hover
activesupport (4.2.5.2) lib/active_support/inflector/methods.rb:254:in `const_get'
activesupport (4.2.5.2) lib/active_support/inflector/methods.rb:254:in `constantize'
activesupport (4.2.5.2) lib/active_support/core_ext/string/inflections.rb:66:in `constantize'
/home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/models/cart.rb:24:in `block in items'
/home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/models/cart.rb:23:in `each'
/home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/models/cart.rb:23:in `items'
/home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml:12:in `block in __home_leksster__uby__uby_arage__mazon_simple_cart_app_views_simple_cart_carts_show_html_haml__850199001867258782_48159200'
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__850199001867258782_48159200'
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.1ms)
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.8ms)
Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/rescues/template_error.html.erb within rescues/layout (19.6ms)
Started GET "/simple_cart/" for 127.0.0.1 at 2016-03-14 18:26:00 +0200
Processing by SimpleCart::CartsController#show as HTML
[1m[36mBicycle Load (0.2ms)[0m [1mSELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1[0m [["id", 1]]
Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml within layouts/simple_cart/application (11.7ms)
Completed 500 Internal Server Error in 16ms (ActiveRecord: 0.2ms)
ActionView::Template::Error (wrong constant name ):
9: .thumbnail
10: .caption-full
11: = form_tag url_for(:controller => 'carts', :action => 'update'), method: :put do
12: - if @cart.items.nil?
13: empty
14: - else
15: %table.table.table-hover
activesupport (4.2.5.2) lib/active_support/inflector/methods.rb:254:in `const_get'
activesupport (4.2.5.2) lib/active_support/inflector/methods.rb:254:in `constantize'
activesupport (4.2.5.2) lib/active_support/core_ext/string/inflections.rb:66:in `constantize'
/home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/models/cart.rb:24:in `block in items'
/home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/models/cart.rb:23:in `each'
/home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/models/cart.rb:23:in `items'
/home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml:12:in `block in __home_leksster__uby__uby_arage__mazon_simple_cart_app_views_simple_cart_carts_show_html_haml__850199001867258782_42355520'
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__850199001867258782_42355520'
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 (6.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.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 (19.6ms)
Started GET "/bicycles/1" for 127.0.0.1 at 2016-03-14 18:26:06 +0200
Processing by BicyclesController#show as HTML
Parameters: {"id"=>"1"}
[1m[35mBicycle Load (0.1ms)[0m SELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1 [["id", 1]]
Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/carts/_buy.html.haml (15.0ms)
Rendered bicycles/show.html.erb (18.6ms)
Completed 200 OK in 24ms (Views: 22.6ms | ActiveRecord: 0.1ms)
Started POST "/simple_cart/cart/1" for 127.0.0.1 at 2016-03-14 18:26:09 +0200
Processing by SimpleCart::CartsController#add as HTML
Parameters: {"utf8"=>"✓", "authenticity_token"=>"/A++Q9hzahHZRhr+j0IWfg+hyxKTTJf+RqucTnRGjCkNCgiEkTlkwjB2i9BjjZqhFL8FwMbIebqxteLkzpy4dQ==", "qty"=>"3", "klass"=>"Bicycle", "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-14 18:26:09 +0200
Processing by SimpleCart::CartsController#show as HTML
[1m[36mBicycle Load (0.1ms)[0m [1mSELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1[0m [["id", 1]]
Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml within layouts/simple_cart/application (2.1ms)
Completed 500 Internal Server Error in 5ms (ActiveRecord: 0.1ms)
ActionView::Template::Error (wrong constant name ):
9: .thumbnail
10: .caption-full
11: = form_tag url_for(:controller => 'carts', :action => 'update'), method: :put do
12: - if @cart.items.nil?
13: empty
14: - else
15: %table.table.table-hover
activesupport (4.2.5.2) lib/active_support/inflector/methods.rb:254:in `const_get'
activesupport (4.2.5.2) lib/active_support/inflector/methods.rb:254:in `constantize'
activesupport (4.2.5.2) lib/active_support/core_ext/string/inflections.rb:66:in `constantize'
/home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/models/cart.rb:24:in `block in items'
/home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/models/cart.rb:23:in `each'
/home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/models/cart.rb:23:in `items'
/home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml:12:in `block in __home_leksster__uby__uby_arage__mazon_simple_cart_app_views_simple_cart_carts_show_html_haml__850199001867258782_42355520'
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__850199001867258782_42355520'
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.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 (4.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 (1.0ms)
Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/rescues/template_error.html.erb within rescues/layout (23.6ms)
Started POST "/simple_cart/cart/1" for 127.0.0.1 at 2016-03-14 18:26:15 +0200
Processing by SimpleCart::CartsController#add as HTML
Parameters: {"utf8"=>"✓", "authenticity_token"=>"/A++Q9hzahHZRhr+j0IWfg+hyxKTTJf+RqucTnRGjCkNCgiEkTlkwjB2i9BjjZqhFL8FwMbIebqxteLkzpy4dQ==", "qty"=>"3", "klass"=>"Bicycle", "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-14 18:26:15 +0200
Processing by SimpleCart::CartsController#show as HTML
[1m[35mBicycle Load (0.2ms)[0m SELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1[0m [["id", "1"]]
[1m[35mCACHE (0.0ms)[0m SELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."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.5ms)
Completed 200 OK in 276ms (Views: 275.6ms | ActiveRecord: 0.2ms)
Started PUT "/simple_cart/cart" for 127.0.0.1 at 2016-03-14 18:26:20 +0200
Processing by SimpleCart::CartsController#update as HTML
Parameters: {"utf8"=>"✓", "authenticity_token"=>"miJDIIj2hdvdJD78TJ6bmFcIAYzP2gJJCK6SYninVQiuiPQBx+aRh8JvJhKLqRUrOlXisd9ckN1BzXEOssF0Gw==", "Bicycle_1"=>"2", "coupon"=>"", "commit"=>"Update"}
[1m[36mCoupon Load (0.1ms)[0m [1mSELECT "coupons".* FROM "coupons" WHERE "coupons"."code" = ? LIMIT 1[0m [["code", ""]]
[1m[35mBicycle Load (0.1ms)[0m SELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1[0m [["id", "1"]]
[1m[35mCACHE (0.0ms)[0m SELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."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.5ms)
Completed 200 OK in 52ms (Views: 24.7ms | ActiveRecord: 0.4ms)
Started GET "/simple_cart/cart/checkout?coupon=" for 127.0.0.1 at 2016-03-14 18:26:23 +0200
Processing by SimpleCart::CartsController#checkout as HTML
Parameters: {"coupon"=>""}
[1m[36mBicycle Load (0.1ms)[0m [1mSELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mCACHE (0.0ms)[0m SELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1 [["id", "1"]]
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO "orders" ("total_price", "completed_date", "aasm_state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["total_price", 44.0], ["completed_date", "2016-03-14"], ["aasm_state", "in_progress"], ["created_at", "2016-03-14 16:26:23.107704"], ["updated_at", "2016-03-14 16:26:23.107704"]]
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "order_items" ("price", "qty", "itemable_id", "itemable_type", "order_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["price", 22.0], ["qty", 2], ["itemable_id", 1], ["itemable_type", "Bicycle"], ["order_id", "16"], ["created_at", "2016-03-14 16:26:23.110095"], ["updated_at", "2016-03-14 16:26:23.110095"]]
[1m[35m (77.5ms)[0m commit transaction
Redirected to http://localhost:3000/simple_cart/orders/16/checkout
Completed 302 Found in 171ms (ActiveRecord: 80.4ms)
Started GET "/simple_cart/orders/16/checkout" for 127.0.0.1 at 2016-03-14 18:26:23 +0200
Processing by SimpleCart::CheckoutController#index as HTML
Parameters: {"order_id"=>"16"}
[1m[36mOrder Load (0.2ms)[0m [1mSELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1[0m [["id", 16]]
Redirected to http://localhost:3000/simple_cart/orders/16/checkout/billing
Completed 302 Found in 3ms (ActiveRecord: 0.2ms)
Started GET "/simple_cart/orders/16/checkout/billing" for 127.0.0.1 at 2016-03-14 18:26:23 +0200
Processing by SimpleCart::CheckoutController#show as HTML
Parameters: {"order_id"=>"16", "id"=>"billing"}
[1m[35mOrder Load (0.1ms)[0m SELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1 [["id", 16]]
[1m[36mBillingAddress Load (0.2ms)[0m [1mSELECT "addresses".* FROM "addresses" WHERE "addresses"."type" IN ('BillingAddress') AND "addresses"."order_id" = ? LIMIT 1[0m [["order_id", 16]]
[1m[35mShippingAddress Load (0.2ms)[0m SELECT "addresses".* FROM "addresses" WHERE "addresses"."type" IN ('ShippingAddress') AND "addresses"."order_id" = ? LIMIT 1 [["order_id", 16]]
[1m[36mCreditCard Load (0.1ms)[0m [1mSELECT "credit_cards".* FROM "credit_cards" WHERE "credit_cards"."order_id" = ? LIMIT 1[0m [["order_id", 16]]
Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/_progress.html.haml (2.8ms)
Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/_address.html.haml (11.8ms)
Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/billing.html.haml within layouts/simple_cart/application (22.6ms)
Completed 200 OK in 98ms (Views: 39.2ms | ActiveRecord: 1.2ms)
Started GET "/simple_cart/cart" for 127.0.0.1 at 2016-03-14 18:27:03 +0200
Processing by SimpleCart::CartsController#show as HTML
[1m[35mBicycle Load (0.2ms)[0m SELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1[0m [["id", "1"]]
[1m[35mCACHE (0.0ms)[0m SELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."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.9ms)
Completed 200 OK in 35ms (Views: 32.9ms | ActiveRecord: 0.8ms)
Started GET "/assets/simple_cart/application.self-2f12d59583468bdcee27c6046669f62a778d265fc91cf385e5d36e9189ac822e.css?body=1" for 127.0.0.1 at 2016-03-14 18:27:03 +0200
Started GET "/assets/jquery.self-660adc51e0224b731d29f575a6f1ec167ba08ad06ed5deca4f1e8654c135bf4c.js?body=1" for 127.0.0.1 at 2016-03-14 18:27:03 +0200
Started GET "/assets/jquery_ujs.self-e87806d0cf4489aeb1bb7288016024e8de67fd18db693fe026fe3907581e53cd.js?body=1" for 127.0.0.1 at 2016-03-14 18:27:03 +0200
Started GET "/assets/turbolinks.self-c37727e9bd6b2735da5c311aa83fead54ed0be6cc8bd9a65309e9c5abe2cbfff.js?body=1" for 127.0.0.1 at 2016-03-14 18:27:03 +0200
Started GET "/assets/simple_cart/application.self-3b8dabdc891efe46b9a144b400ad69e37d7e5876bdc39dee783419a69d7ca819.js?body=1" for 127.0.0.1 at 2016-03-14 18:27:03 +0200
Started POST "/simple_cart/cart/checkout" for 127.0.0.1 at 2016-03-14 18:27:06 +0200
Processing by SimpleCart::CartsController#checkout as HTML
Parameters: {"authenticity_token"=>"b/rVEOHWfp3G/aIZr8TY2NNeSLdQjWmKMEhlVEJsF8FbUGIxrsZqwdm2uvdo81ZrvgOrikAL+x55K4Y4iAo20g=="}
[1m[36mBicycle Load (0.1ms)[0m [1mSELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mCACHE (0.0ms)[0m SELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1 [["id", "1"]]
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "orders" ("total_price", "completed_date", "aasm_state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["total_price", 44.0], ["completed_date", "2016-03-14"], ["aasm_state", "in_progress"], ["created_at", "2016-03-14 16:27:06.072058"], ["updated_at", "2016-03-14 16:27:06.072058"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "order_items" ("price", "qty", "itemable_id", "itemable_type", "order_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["price", 22.0], ["qty", 2], ["itemable_id", 1], ["itemable_type", "Bicycle"], ["order_id", "17"], ["created_at", "2016-03-14 16:27:06.073369"], ["updated_at", "2016-03-14 16:27:06.073369"]]
[1m[35m (209.8ms)[0m commit transaction
Redirected to http://localhost:3000/simple_cart/orders/17/checkout
Completed 302 Found in 246ms (ActiveRecord: 210.7ms)
Started GET "/simple_cart/orders/17/checkout" for 127.0.0.1 at 2016-03-14 18:27:06 +0200
Processing by SimpleCart::CheckoutController#index as HTML
Parameters: {"order_id"=>"17"}
[1m[36mOrder Load (0.2ms)[0m [1mSELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1[0m [["id", 17]]
Redirected to http://localhost:3000/simple_cart/orders/17/checkout/billing
Completed 302 Found in 2ms (ActiveRecord: 0.2ms)
Started GET "/simple_cart/orders/17/checkout/billing" for 127.0.0.1 at 2016-03-14 18:27:06 +0200
Processing by SimpleCart::CheckoutController#show as HTML
Parameters: {"order_id"=>"17", "id"=>"billing"}
[1m[35mOrder Load (0.1ms)[0m SELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1 [["id", 17]]
[1m[36mBillingAddress Load (0.2ms)[0m [1mSELECT "addresses".* FROM "addresses" WHERE "addresses"."type" IN ('BillingAddress') AND "addresses"."order_id" = ? LIMIT 1[0m [["order_id", 17]]
[1m[35mShippingAddress Load (0.2ms)[0m SELECT "addresses".* FROM "addresses" WHERE "addresses"."type" IN ('ShippingAddress') AND "addresses"."order_id" = ? LIMIT 1 [["order_id", 17]]
[1m[36mCreditCard Load (0.2ms)[0m [1mSELECT "credit_cards".* FROM "credit_cards" WHERE "credit_cards"."order_id" = ? LIMIT 1[0m [["order_id", 17]]
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.2ms)
Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/billing.html.haml within layouts/simple_cart/application (11.7ms)
Completed 200 OK in 79ms (Views: 29.7ms | ActiveRecord: 1.3ms)
Started GET "/simple_cart/orders/17/checkout/billing" for 127.0.0.1 at 2016-03-14 18:27:23 +0200
Processing by SimpleCart::CheckoutController#show as HTML
Parameters: {"order_id"=>"17", "id"=>"billing"}
[1m[35mOrder Load (0.1ms)[0m SELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1 [["id", 17]]
[1m[36mBillingAddress Load (0.1ms)[0m [1mSELECT "addresses".* FROM "addresses" WHERE "addresses"."type" IN ('BillingAddress') AND "addresses"."order_id" = ? LIMIT 1[0m [["order_id", 17]]
[1m[35mShippingAddress Load (0.1ms)[0m SELECT "addresses".* FROM "addresses" WHERE "addresses"."type" IN ('ShippingAddress') AND "addresses"."order_id" = ? LIMIT 1 [["order_id", 17]]
[1m[36mCreditCard Load (0.1ms)[0m [1mSELECT "credit_cards".* FROM "credit_cards" WHERE "credit_cards"."order_id" = ? LIMIT 1[0m [["order_id", 17]]
Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/_progress.html.haml (1.4ms)
Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/_address.html.haml (7.0ms)
Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/billing.html.haml within layouts/simple_cart/application (12.9ms)
Completed 200 OK in 35ms (Views: 30.6ms | ActiveRecord: 0.3ms)
Started GET "/assets/simple_cart/application.self-2f12d59583468bdcee27c6046669f62a778d265fc91cf385e5d36e9189ac822e.css?body=1" for 127.0.0.1 at 2016-03-14 18:27:23 +0200
Started GET "/assets/jquery.self-660adc51e0224b731d29f575a6f1ec167ba08ad06ed5deca4f1e8654c135bf4c.js?body=1" for 127.0.0.1 at 2016-03-14 18:27:24 +0200
Started GET "/assets/jquery_ujs.self-e87806d0cf4489aeb1bb7288016024e8de67fd18db693fe026fe3907581e53cd.js?body=1" for 127.0.0.1 at 2016-03-14 18:27:24 +0200
Started GET "/assets/simple_cart/application.self-3b8dabdc891efe46b9a144b400ad69e37d7e5876bdc39dee783419a69d7ca819.js?body=1" for 127.0.0.1 at 2016-03-14 18:27:24 +0200
Started GET "/assets/turbolinks.self-c37727e9bd6b2735da5c311aa83fead54ed0be6cc8bd9a65309e9c5abe2cbfff.js?body=1" for 127.0.0.1 at 2016-03-14 18:27:24 +0200
Started GET "/simple_cart/cart" for 127.0.0.1 at 2016-03-14 18:27:27 +0200
Processing by SimpleCart::CartsController#show as HTML
[1m[35mBicycle Load (0.1ms)[0m SELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1[0m [["id", "1"]]
[1m[35mCACHE (0.0ms)[0m SELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."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.1ms)
Completed 200 OK in 30ms (Views: 27.2ms | ActiveRecord: 0.1ms)
Started GET "/assets/simple_cart/application.self-2f12d59583468bdcee27c6046669f62a778d265fc91cf385e5d36e9189ac822e.css?body=1" for 127.0.0.1 at 2016-03-14 18:27:27 +0200
Started GET "/assets/jquery.self-660adc51e0224b731d29f575a6f1ec167ba08ad06ed5deca4f1e8654c135bf4c.js?body=1" for 127.0.0.1 at 2016-03-14 18:27:27 +0200
Started GET "/assets/turbolinks.self-c37727e9bd6b2735da5c311aa83fead54ed0be6cc8bd9a65309e9c5abe2cbfff.js?body=1" for 127.0.0.1 at 2016-03-14 18:27:27 +0200
Started GET "/assets/jquery_ujs.self-e87806d0cf4489aeb1bb7288016024e8de67fd18db693fe026fe3907581e53cd.js?body=1" for 127.0.0.1 at 2016-03-14 18:27:27 +0200
Started GET "/assets/simple_cart/application.self-3b8dabdc891efe46b9a144b400ad69e37d7e5876bdc39dee783419a69d7ca819.js?body=1" for 127.0.0.1 at 2016-03-14 18:27:27 +0200
Started PUT "/simple_cart/cart" for 127.0.0.1 at 2016-03-14 18:27:29 +0200
Processing by SimpleCart::CartsController#update as HTML
Parameters: {"utf8"=>"✓", "authenticity_token"=>"AC+0bpLf6oQcY1SaQ10sQZc934W4Fa/qJX4j1lKuCms0hQNP3c/+2AMoTHSEaqLy+mA8uKiTPX5sHcC6mMgreA==", "Bicycle_1"=>"2", "coupon"=>"", "commit"=>"Update"}
[1m[36mCoupon Load (0.3ms)[0m [1mSELECT "coupons".* FROM "coupons" WHERE "coupons"."code" = ? LIMIT 1[0m [["code", ""]]
[1m[35mBicycle Load (0.2ms)[0m SELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1[0m [["id", "1"]]
[1m[35mCACHE (0.0ms)[0m SELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."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.8ms)
Completed 200 OK in 43ms (Views: 37.1ms | ActiveRecord: 0.8ms)
Started POST "/simple_cart/cart/checkout?coupon=" for 127.0.0.1 at 2016-03-14 18:27:31 +0200
Processing by SimpleCart::CartsController#checkout as HTML
Parameters: {"authenticity_token"=>"E6yzFIlwh9hri2ziQy6XO3Fwpsn0d3DbQW+aCzEjH3AnBgQ1xmCThHTAdAyEGRmIHC1F9OTx4k8IDHln+0U+Yw==", "coupon"=>""}
[1m[36mBicycle Load (0.2ms)[0m [1mSELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mCACHE (0.0ms)[0m SELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1 [["id", "1"]]
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "orders" ("total_price", "completed_date", "aasm_state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["total_price", 44.0], ["completed_date", "2016-03-14"], ["aasm_state", "in_progress"], ["created_at", "2016-03-14 16:27:31.303689"], ["updated_at", "2016-03-14 16:27:31.303689"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "order_items" ("price", "qty", "itemable_id", "itemable_type", "order_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["price", 22.0], ["qty", 2], ["itemable_id", 1], ["itemable_type", "Bicycle"], ["order_id", "18"], ["created_at", "2016-03-14 16:27:31.305556"], ["updated_at", "2016-03-14 16:27:31.305556"]]
[1m[35m (103.7ms)[0m commit transaction
Redirected to http://localhost:3000/simple_cart/orders/18/checkout
Completed 302 Found in 118ms (ActiveRecord: 104.5ms)
Started GET "/simple_cart/orders/18/checkout" for 127.0.0.1 at 2016-03-14 18:27:31 +0200
Processing by SimpleCart::CheckoutController#index as HTML
Parameters: {"order_id"=>"18"}
[1m[36mOrder Load (0.1ms)[0m [1mSELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1[0m [["id", 18]]
Redirected to http://localhost:3000/simple_cart/orders/18/checkout/billing
Completed 302 Found in 2ms (ActiveRecord: 0.1ms)
Started GET "/simple_cart/orders/18/checkout/billing" for 127.0.0.1 at 2016-03-14 18:27:31 +0200
Processing by SimpleCart::CheckoutController#show as HTML
Parameters: {"order_id"=>"18", "id"=>"billing"}
[1m[35mOrder Load (0.1ms)[0m SELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1 [["id", 18]]
[1m[36mBillingAddress Load (0.1ms)[0m [1mSELECT "addresses".* FROM "addresses" WHERE "addresses"."type" IN ('BillingAddress') AND "addresses"."order_id" = ? LIMIT 1[0m [["order_id", 18]]
[1m[35mShippingAddress Load (0.1ms)[0m SELECT "addresses".* FROM "addresses" WHERE "addresses"."type" IN ('ShippingAddress') AND "addresses"."order_id" = ? LIMIT 1 [["order_id", 18]]
[1m[36mCreditCard Load (0.1ms)[0m [1mSELECT "credit_cards".* FROM "credit_cards" WHERE "credit_cards"."order_id" = ? LIMIT 1[0m [["order_id", 18]]
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 (14.6ms)
Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/billing.html.haml within layouts/simple_cart/application (19.7ms)
Completed 200 OK in 44ms (Views: 38.3ms | ActiveRecord: 0.3ms)
Started PATCH "/simple_cart/orders/18/checkout/billing" for 127.0.0.1 at 2016-03-14 18:43:10 +0200
Processing by SimpleCart::CheckoutController#update as HTML
Parameters: {"utf8"=>"✓", "authenticity_token"=>"LDFJOEoPBKH4h7nmmKFDP+jtu25N2WoDC/zERfSxQGcYm/4ZBR8Q/efMoQhfls2MhbBYU11f+JdCnycpPtdhdA==", "order"=>{"billing_address_attributes"=>{"firstname"=>"", "lastname"=>"", "address"=>"", "zipcode"=>"", "city"=>"", "phone"=>"", "country"=>"Afghanistan"}}, "shipping"=>{"use_billing_address"=>"true"}, "commit"=>"Save and continue", "order_id"=>"18", "id"=>"billing"}
[1m[35mOrder Load (0.1ms)[0m SELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1 [["id", 18]]
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
[1m[35mBillingAddress Load (0.1ms)[0m SELECT "addresses".* FROM "addresses" WHERE "addresses"."type" IN ('BillingAddress') AND "addresses"."order_id" = ? LIMIT 1 [["order_id", 18]]
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.1ms)[0m begin transaction
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
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 (9.4ms)
Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/billing.html.haml within layouts/simple_cart/application (18.8ms)
Completed 200 OK in 52ms (Views: 36.7ms | ActiveRecord: 0.5ms)
Started PATCH "/simple_cart/orders/18/checkout/billing" for 127.0.0.1 at 2016-03-14 18:43:17 +0200
Processing by SimpleCart::CheckoutController#update as HTML
Parameters: {"utf8"=>"✓", "authenticity_token"=>"U3MJFRWOLEQtlmHapkuzterxxmE9GIknQo4ZETs/sExn2b40Wp44GDLdeTRhfD0Gh6wlXC2eG7ML7fp98VmRXw==", "order"=>{"billing_address_attributes"=>{"firstname"=>"fas", "lastname"=>"gasg", "address"=>"asgasg", "zipcode"=>"421", "city"=>"512", "phone"=>"gsdg", "country"=>"Afghanistan"}}, "shipping"=>{"use_billing_address"=>"true"}, "commit"=>"Save and continue", "order_id"=>"18", "id"=>"billing"}
[1m[35mOrder Load (0.2ms)[0m SELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1 [["id", 18]]
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
[1m[35mBillingAddress Load (0.1ms)[0m SELECT "addresses".* FROM "addresses" WHERE "addresses"."type" IN ('BillingAddress') AND "addresses"."order_id" = ? LIMIT 1 [["order_id", 18]]
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "addresses" ("type", "firstname", "lastname", "address", "zipcode", "city", "phone", "country", "order_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["type", "BillingAddress"], ["firstname", "fas"], ["lastname", "gasg"], ["address", "asgasg"], ["zipcode", "421"], ["city", "512"], ["phone", "gsdg"], ["country", "Afghanistan"], ["order_id", 18], ["created_at", "2016-03-14 16:43:17.961022"], ["updated_at", "2016-03-14 16:43:17.961022"]]
[1m[35m (76.8ms)[0m commit transaction
[1m[36mShippingAddress Load (0.2ms)[0m [1mSELECT "addresses".* FROM "addresses" WHERE "addresses"."type" IN ('ShippingAddress') AND "addresses"."order_id" = ? LIMIT 1[0m [["order_id", 18]]
[1m[35m (0.1ms)[0m begin transaction
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "addresses" ("type", "order_id", "address", "zipcode", "city", "phone", "country", "created_at", "updated_at", "firstname", "lastname") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["type", "ShippingAddress"], ["order_id", 18], ["address", "asgasg"], ["zipcode", "421"], ["city", "512"], ["phone", "gsdg"], ["country", "Afghanistan"], ["created_at", "2016-03-14 16:43:17.961022"], ["updated_at", "2016-03-14 16:43:17.961022"], ["firstname", "fas"], ["lastname", "gasg"]]
[1m[35m (99.3ms)[0m commit transaction
Redirected to http://localhost:3000/simple_cart/orders/18/checkout/delivery
Completed 302 Found in 192ms (ActiveRecord: 177.2ms)
Started GET "/simple_cart/orders/18/checkout/delivery" for 127.0.0.1 at 2016-03-14 18:43:18 +0200
Processing by SimpleCart::CheckoutController#show as HTML
Parameters: {"order_id"=>"18", "id"=>"delivery"}
[1m[36mOrder Load (0.1ms)[0m [1mSELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1[0m [["id", 18]]
[1m[35mShippingAddress Load (0.2ms)[0m SELECT "addresses".* FROM "addresses" WHERE "addresses"."type" IN ('ShippingAddress') AND "addresses"."order_id" = ? LIMIT 1 [["order_id", 18]]
[1m[36mBillingAddress Load (0.2ms)[0m [1mSELECT "addresses".* FROM "addresses" WHERE "addresses"."type" IN ('BillingAddress') AND "addresses"."order_id" = ? LIMIT 1[0m [["order_id", 18]]
[1m[35mCreditCard Load (0.1ms)[0m SELECT "credit_cards".* FROM "credit_cards" WHERE "credit_cards"."order_id" = ? LIMIT 1 [["order_id", 18]]
Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/_progress.html.haml (1.2ms)
[1m[36mDelivery Load (0.2ms)[0m [1mSELECT "deliveries".* FROM "deliveries"[0m
[1m[35mDelivery Load (0.2ms)[0m SELECT "deliveries".* FROM "deliveries" ORDER BY "deliveries"."id" ASC LIMIT 1
[1m[36mCACHE (0.0ms)[0m [1mSELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1[0m [["id", "18"]]
[1m[35mCACHE (0.0ms)[0m SELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1 [["id", "18"]]
Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/_summary.html.haml (5.2ms)
Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/delivery.html.haml within layouts/simple_cart/application (27.1ms)
Completed 200 OK in 51ms (Views: 45.8ms | ActiveRecord: 1.1ms)
Started PATCH "/simple_cart/orders/18/checkout/delivery" for 127.0.0.1 at 2016-03-14 18:43:19 +0200
Processing by SimpleCart::CheckoutController#update as HTML
Parameters: {"utf8"=>"✓", "authenticity_token"=>"4bSdJ3J35FtiNW5+7uyp3M5/KbeI4p208AGCMxHFwVXVHioGPWfwB31+dpAp2ydvoyLKiphkDyC5YmFf26PgRg==", "order"=>{"delivery_id"=>"1"}, "commit"=>"Continue", "order_id"=>"18", "id"=>"delivery"}
[1m[36mOrder Load (0.2ms)[0m [1mSELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1[0m [["id", 18]]
[1m[35mDelivery Load (0.2ms)[0m SELECT "deliveries".* FROM "deliveries" WHERE "deliveries"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
[1m[35mSQL (0.2ms)[0m UPDATE "orders" SET "delivery_id" = ?, "updated_at" = ? WHERE "orders"."id" = ? [["delivery_id", 1], ["updated_at", "2016-03-14 16:43:19.430106"], ["id", 18]]
[1m[36m (209.8ms)[0m [1mcommit transaction[0m
Redirected to http://localhost:3000/simple_cart/orders/18/checkout/payment
Completed 302 Found in 216ms (ActiveRecord: 210.5ms)
Started GET "/simple_cart/orders/18/checkout/payment" for 127.0.0.1 at 2016-03-14 18:43:19 +0200
Processing by SimpleCart::CheckoutController#show as HTML
Parameters: {"order_id"=>"18", "id"=>"payment"}
[1m[35mOrder Load (0.1ms)[0m SELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1 [["id", 18]]
[1m[36mDelivery Load (0.1ms)[0m [1mSELECT "deliveries".* FROM "deliveries" WHERE "deliveries"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mBillingAddress Load (0.1ms)[0m SELECT "addresses".* FROM "addresses" WHERE "addresses"."type" IN ('BillingAddress') AND "addresses"."order_id" = ? LIMIT 1 [["order_id", 18]]
[1m[36mShippingAddress Load (0.1ms)[0m [1mSELECT "addresses".* FROM "addresses" WHERE "addresses"."type" IN ('ShippingAddress') AND "addresses"."order_id" = ? LIMIT 1[0m [["order_id", 18]]
[1m[35mCreditCard Load (0.1ms)[0m SELECT "credit_cards".* FROM "credit_cards" WHERE "credit_cards"."order_id" = ? LIMIT 1 [["order_id", 18]]
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 37ms (Views: 31.1ms | ActiveRecord: 0.6ms)
Started PATCH "/simple_cart/orders/18/checkout/payment" for 127.0.0.1 at 2016-03-14 18:43:24 +0200
Processing by SimpleCart::CheckoutController#update as HTML
Parameters: {"utf8"=>"✓", "authenticity_token"=>"+yg5YYuKXQdWRBiudaKMbPmWETuCwBKNsDPOX0h1xTvPgo5AxJpJW0kPAECylQLflMvyBpJGgBn5UC0zghPkKA==", "order"=>{"credit_card_attributes"=>{"number"=>"1111111111111111", "expiration_month"=>"01", "expiration_year"=>"2017", "cvv"=>"123", "firstname"=>"5215", "lastname"=>"5215"}}, "commit"=>"Continue", "order_id"=>"18", "id"=>"payment"}
[1m[36mOrder Load (0.1ms)[0m [1mSELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1[0m [["id", 18]]
[1m[35m (0.1ms)[0m begin transaction
[1m[36mCreditCard Load (0.1ms)[0m [1mSELECT "credit_cards".* FROM "credit_cards" WHERE "credit_cards"."order_id" = ? LIMIT 1[0m [["order_id", 18]]
[1m[35mSQL (0.4ms)[0m INSERT INTO "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", "5215"], ["lastname", "5215"], ["order_id", 18], ["created_at", "2016-03-14 16:43:24.629619"], ["updated_at", "2016-03-14 16:43:24.629619"]]
[1m[36m (97.1ms)[0m [1mcommit transaction[0m
[1m[35m (0.1ms)[0m begin transaction
[1m[36m (0.1ms)[0m [1mcommit transaction[0m
Redirected to http://localhost:3000/simple_cart/orders/18/checkout/confirm
Completed 302 Found in 106ms (ActiveRecord: 97.9ms)
Started GET "/simple_cart/orders/18/checkout/confirm" for 127.0.0.1 at 2016-03-14 18:43:24 +0200
Processing by SimpleCart::CheckoutController#show as HTML
Parameters: {"order_id"=>"18", "id"=>"confirm"}
[1m[35mOrder Load (0.1ms)[0m SELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1 [["id", 18]]
[1m[36mCreditCard Load (0.1ms)[0m [1mSELECT "credit_cards".* FROM "credit_cards" WHERE "credit_cards"."order_id" = ? LIMIT 1[0m [["order_id", 18]]
[1m[35mBillingAddress Load (0.1ms)[0m SELECT "addresses".* FROM "addresses" WHERE "addresses"."type" IN ('BillingAddress') AND "addresses"."order_id" = ? LIMIT 1 [["order_id", 18]]
[1m[36mShippingAddress Load (0.1ms)[0m [1mSELECT "addresses".* FROM "addresses" WHERE "addresses"."type" IN ('ShippingAddress') AND "addresses"."order_id" = ? LIMIT 1[0m [["order_id", 18]]
Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/_progress.html.haml (1.2ms)
[1m[35mDelivery Load (0.1ms)[0m SELECT "deliveries".* FROM "deliveries" WHERE "deliveries"."id" = ? LIMIT 1 [["id", 1]]
Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/_overview.html.haml (14.6ms)
[1m[36mOrderItem Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "order_items" WHERE "order_items"."order_id" = ? LIMIT 1[0m [["order_id", "18"]]
[1m[35mOrderItem Load (0.1ms)[0m SELECT "order_items".* FROM "order_items" WHERE "order_items"."order_id" = ? [["order_id", "18"]]
[1m[36mBicycle Load (0.1ms)[0m [1mSELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1[0m [["id", 1]]
Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/confirm.html.haml within layouts/simple_cart/application (33.7ms)
Completed 200 OK in 52ms (Views: 48.4ms | ActiveRecord: 0.8ms)
Started PATCH "/simple_cart/orders/18" for 127.0.0.1 at 2016-03-14 18:43:25 +0200
Processing by SimpleCart::OrdersController#update as HTML
Parameters: {"authenticity_token"=>"bI1Vr9sgI0ACS+PeLNT63rt+4GBgEuYnCjGZwJft+GtYJ+KOlDA3HB0A+zDr43Rt1iMDXXCUdLNDUnqsXYvZeA==", "id"=>"18"}
[1m[35mOrder Load (0.1ms)[0m SELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1 [["id", 18]]
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
[1m[35mSQL (0.3ms)[0m UPDATE "orders" SET "aasm_state" = ?, "updated_at" = ? WHERE "orders"."id" = ? [["aasm_state", "in_queue"], ["updated_at", "2016-03-14 16:43:25.882775"], ["id", 18]]
[1m[36m (221.0ms)[0m [1mcommit transaction[0m
Completed 500 Internal Server Error in 228ms (ActiveRecord: 221.5ms)
NoMethodError (undefined method `shipping' for #):
activemodel (4.2.5.2) lib/active_model/attribute_methods.rb:433:in `method_missing'
/home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/controllers/simple_cart/orders_controller.rb:17:in `update'
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.4ms)
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 (16.5ms)
Started GET "/simple_cart/orders/18/checkout/confirm" for 127.0.0.1 at 2016-03-14 18:44:33 +0200
Processing by SimpleCart::CheckoutController#show as HTML
Parameters: {"order_id"=>"18", "id"=>"confirm"}
[1m[35mOrder Load (0.2ms)[0m SELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1 [["id", 18]]
[1m[36mCreditCard Load (0.2ms)[0m [1mSELECT "credit_cards".* FROM "credit_cards" WHERE "credit_cards"."order_id" = ? LIMIT 1[0m [["order_id", 18]]
[1m[35mBillingAddress Load (0.2ms)[0m SELECT "addresses".* FROM "addresses" WHERE "addresses"."type" IN ('BillingAddress') AND "addresses"."order_id" = ? LIMIT 1 [["order_id", 18]]
[1m[36mShippingAddress Load (0.2ms)[0m [1mSELECT "addresses".* FROM "addresses" WHERE "addresses"."type" IN ('ShippingAddress') AND "addresses"."order_id" = ? LIMIT 1[0m [["order_id", 18]]
Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/_progress.html.haml (1.1ms)
[1m[35mDelivery Load (0.1ms)[0m SELECT "deliveries".* FROM "deliveries" WHERE "deliveries"."id" = ? LIMIT 1 [["id", 1]]
Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/_overview.html.haml (6.5ms)
[1m[36mOrderItem Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "order_items" WHERE "order_items"."order_id" = ? LIMIT 1[0m [["order_id", "18"]]
[1m[35mOrderItem Load (0.1ms)[0m SELECT "order_items".* FROM "order_items" WHERE "order_items"."order_id" = ? [["order_id", "18"]]
[1m[36mBicycle Load (0.1ms)[0m [1mSELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1[0m [["id", 1]]
Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/confirm.html.haml within layouts/simple_cart/application (27.6ms)
Completed 200 OK in 109ms (Views: 43.3ms | ActiveRecord: 3.0ms)
Started GET "/assets/simple_cart/application.self-2f12d59583468bdcee27c6046669f62a778d265fc91cf385e5d36e9189ac822e.css?body=1" for 127.0.0.1 at 2016-03-14 18:44:33 +0200
Started GET "/assets/jquery.self-660adc51e0224b731d29f575a6f1ec167ba08ad06ed5deca4f1e8654c135bf4c.js?body=1" for 127.0.0.1 at 2016-03-14 18:44:33 +0200
Started GET "/assets/jquery_ujs.self-e87806d0cf4489aeb1bb7288016024e8de67fd18db693fe026fe3907581e53cd.js?body=1" for 127.0.0.1 at 2016-03-14 18:44:33 +0200
Started GET "/assets/simple_cart/application.self-3b8dabdc891efe46b9a144b400ad69e37d7e5876bdc39dee783419a69d7ca819.js?body=1" for 127.0.0.1 at 2016-03-14 18:44:33 +0200
Started GET "/assets/turbolinks.self-c37727e9bd6b2735da5c311aa83fead54ed0be6cc8bd9a65309e9c5abe2cbfff.js?body=1" for 127.0.0.1 at 2016-03-14 18:44:33 +0200
Started PATCH "/simple_cart/orders/18" for 127.0.0.1 at 2016-03-14 18:44:34 +0200
Processing by SimpleCart::OrdersController#update as HTML
Parameters: {"authenticity_token"=>"10Ubaadt67/+X/H14bsu1Nufe5NmIHjGCV/irgyXIkHj76xI6H3/4+EU6RsmjKBntsKYrnam6lJAPAHCxvEDUg==", "id"=>"18"}
[1m[35mOrder Load (0.1ms)[0m SELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1 [["id", 18]]
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
[1m[35m (0.0ms)[0m rollback transaction
Completed 500 Internal Server Error in 2ms (ActiveRecord: 0.2ms)
AASM::InvalidTransition (Event 'queued' cannot transition from 'in_queue'. ):
aasm (4.8.0) lib/aasm/aasm.rb:181:in `aasm_failed'
aasm (4.8.0) lib/aasm/aasm.rb:116:in `aasm_fire_event'
aasm (4.8.0) lib/aasm/persistence/active_record_persistence.rb:168:in `block in aasm_fire_event'
activerecord (4.2.5.2) lib/active_record/connection_adapters/abstract/database_statements.rb:213:in `block in transaction'
activerecord (4.2.5.2) lib/active_record/connection_adapters/abstract/transaction.rb:184:in `within_new_transaction'
activerecord (4.2.5.2) lib/active_record/connection_adapters/abstract/database_statements.rb:213:in `transaction'
activerecord (4.2.5.2) lib/active_record/transactions.rb:220:in `transaction'
aasm (4.8.0) lib/aasm/persistence/active_record_persistence.rb:168:in `aasm_fire_event'
aasm (4.8.0) lib/aasm/base.rb:101:in `block in event'
/home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/controllers/simple_cart/orders_controller.rb:16:in `update'
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 (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 (10.2ms)
Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (1.0ms)
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 (26.9ms)
Started PATCH "/simple_cart/orders/18" for 127.0.0.1 at 2016-03-14 18:44:47 +0200
Processing by SimpleCart::OrdersController#update as HTML
Parameters: {"authenticity_token"=>"10Ubaadt67/+X/H14bsu1Nufe5NmIHjGCV/irgyXIkHj76xI6H3/4+EU6RsmjKBntsKYrnam6lJAPAHCxvEDUg==", "id"=>"18"}
[1m[36mOrder Load (0.1ms)[0m [1mSELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1[0m [["id", 18]]
[1m[35m (0.1ms)[0m begin transaction
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
Completed 500 Internal Server Error in 21ms (ActiveRecord: 0.7ms)
AASM::InvalidTransition (Event 'queued' cannot transition from 'in_queue'. ):
aasm (4.8.0) lib/aasm/aasm.rb:181:in `aasm_failed'
aasm (4.8.0) lib/aasm/aasm.rb:116:in `aasm_fire_event'
aasm (4.8.0) lib/aasm/persistence/active_record_persistence.rb:168:in `block in aasm_fire_event'
activerecord (4.2.5.2) lib/active_record/connection_adapters/abstract/database_statements.rb:213:in `block in transaction'
activerecord (4.2.5.2) lib/active_record/connection_adapters/abstract/transaction.rb:184:in `within_new_transaction'
activerecord (4.2.5.2) lib/active_record/connection_adapters/abstract/database_statements.rb:213:in `transaction'
activerecord (4.2.5.2) lib/active_record/transactions.rb:220:in `transaction'
aasm (4.8.0) lib/aasm/persistence/active_record_persistence.rb:168:in `aasm_fire_event'
aasm (4.8.0) lib/aasm/base.rb:101:in `block in event'
/home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/controllers/simple_cart/orders_controller.rb:16:in `update'
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 (6.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 (4.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 (1.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 (23.6ms)
Started GET "/simple_cart/orders" for 127.0.0.1 at 2016-03-14 18:44:53 +0200
Processing by SimpleCart::OrdersController#index as HTML
[1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "orders"
[1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "orders" WHERE "orders"."aasm_state" = ?[0m [["aasm_state", "in_progress"]]
[1m[35mOrder Load (0.2ms)[0m SELECT "orders".* FROM "orders" WHERE "orders"."aasm_state" = ? ORDER BY "orders"."id" DESC [["aasm_state", "in_progress"]]
[1m[36mOrderItem Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "order_items" WHERE "order_items"."order_id" = ? LIMIT 1[0m [["order_id", "17"]]
[1m[35mOrderItem Load (0.1ms)[0m SELECT "order_items".* FROM "order_items" WHERE "order_items"."order_id" = ? [["order_id", "17"]]
[1m[36mBicycle Load (0.2ms)[0m [1mSELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mOrderItem Exists (0.1ms)[0m SELECT 1 AS one FROM "order_items" WHERE "order_items"."order_id" = ? LIMIT 1 [["order_id", "16"]]
[1m[36mOrderItem Load (0.1ms)[0m [1mSELECT "order_items".* FROM "order_items" WHERE "order_items"."order_id" = ?[0m [["order_id", "16"]]
[1m[35mCACHE (0.0ms)[0m SELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOrderItem Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "order_items" WHERE "order_items"."order_id" = ? LIMIT 1[0m [["order_id", "15"]]
[1m[35mOrderItem Load (0.1ms)[0m SELECT "order_items".* FROM "order_items" WHERE "order_items"."order_id" = ? [["order_id", "15"]]
[1m[36mItem Load (0.1ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", 2]]
[1m[35mItem Load (0.1ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 3]]
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "orders" WHERE "orders"."aasm_state" = ?[0m [["aasm_state", "in_queue"]]
[1m[35mOrder Load (0.1ms)[0m SELECT "orders".* FROM "orders" WHERE "orders"."aasm_state" = ? ORDER BY "orders"."id" DESC [["aasm_state", "in_queue"]]
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "orders" WHERE "orders"."aasm_state" = ?[0m [["aasm_state", "delivered"]]
Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/orders/index.html.haml within layouts/simple_cart/application (72.6ms)
Completed 200 OK in 94ms (Views: 90.0ms | ActiveRecord: 2.5ms)
Started GET "/simple_cart/orders/17/checkout" for 127.0.0.1 at 2016-03-14 18:44:55 +0200
Processing by SimpleCart::CheckoutController#index as HTML
Parameters: {"order_id"=>"17"}
[1m[35mOrder Load (0.1ms)[0m SELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1 [["id", 17]]
Redirected to http://localhost:3000/simple_cart/orders/17/checkout/billing
Completed 302 Found in 2ms (ActiveRecord: 0.1ms)
Started GET "/simple_cart/orders/17/checkout/billing" for 127.0.0.1 at 2016-03-14 18:44:55 +0200
Processing by SimpleCart::CheckoutController#show as HTML
Parameters: {"order_id"=>"17", "id"=>"billing"}
[1m[36mOrder Load (0.1ms)[0m [1mSELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1[0m [["id", 17]]
[1m[35mBillingAddress Load (0.1ms)[0m SELECT "addresses".* FROM "addresses" WHERE "addresses"."type" IN ('BillingAddress') AND "addresses"."order_id" = ? LIMIT 1 [["order_id", 17]]
[1m[36mShippingAddress Load (0.2ms)[0m [1mSELECT "addresses".* FROM "addresses" WHERE "addresses"."type" IN ('ShippingAddress') AND "addresses"."order_id" = ? LIMIT 1[0m [["order_id", 17]]
[1m[35mCreditCard Load (0.1ms)[0m SELECT "credit_cards".* FROM "credit_cards" WHERE "credit_cards"."order_id" = ? LIMIT 1 [["order_id", 17]]
Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/_progress.html.haml (2.4ms)
Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/_address.html.haml (9.1ms)
Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/billing.html.haml within layouts/simple_cart/application (18.1ms)
Completed 200 OK in 68ms (Views: 34.6ms | ActiveRecord: 1.0ms)
Started PATCH "/simple_cart/orders/17/checkout/billing" for 127.0.0.1 at 2016-03-14 18:45:00 +0200
Processing by SimpleCart::CheckoutController#update as HTML
Parameters: {"utf8"=>"✓", "authenticity_token"=>"AUsYjpTYCMpa+PgnSj3GmrblQjzUCFSltNZ9f0bUSJY14a+v28gclkWz4MmNCkgp27ihAcSOxjH9tZ4TjLJphQ==", "order"=>{"billing_address_attributes"=>{"firstname"=>"121", "lastname"=>"421421", "address"=>"4214", "zipcode"=>"124214", "city"=>"214", "phone"=>"214", "country"=>"Afghanistan"}}, "shipping"=>{"use_billing_address"=>"true"}, "commit"=>"Save and continue", "order_id"=>"17", "id"=>"billing"}
[1m[36mOrder Load (0.2ms)[0m [1mSELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1[0m [["id", 17]]
[1m[35m (0.2ms)[0m begin transaction
[1m[36mBillingAddress Load (0.1ms)[0m [1mSELECT "addresses".* FROM "addresses" WHERE "addresses"."type" IN ('BillingAddress') AND "addresses"."order_id" = ? LIMIT 1[0m [["order_id", 17]]
[1m[35mSQL (0.3ms)[0m INSERT INTO "addresses" ("type", "firstname", "lastname", "address", "zipcode", "city", "phone", "country", "order_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["type", "BillingAddress"], ["firstname", "121"], ["lastname", "421421"], ["address", "4214"], ["zipcode", "124214"], ["city", "214"], ["phone", "214"], ["country", "Afghanistan"], ["order_id", 17], ["created_at", "2016-03-14 16:45:00.775239"], ["updated_at", "2016-03-14 16:45:00.775239"]]
[1m[36m (235.5ms)[0m [1mcommit transaction[0m
[1m[35mShippingAddress Load (0.1ms)[0m SELECT "addresses".* FROM "addresses" WHERE "addresses"."type" IN ('ShippingAddress') AND "addresses"."order_id" = ? LIMIT 1 [["order_id", 17]]
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "addresses" ("type", "order_id", "address", "zipcode", "city", "phone", "country", "created_at", "updated_at", "firstname", "lastname") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["type", "ShippingAddress"], ["order_id", 17], ["address", "4214"], ["zipcode", "124214"], ["city", "214"], ["phone", "214"], ["country", "Afghanistan"], ["created_at", "2016-03-14 16:45:00.775239"], ["updated_at", "2016-03-14 16:45:00.775239"], ["firstname", "121"], ["lastname", "421421"]]
[1m[36m (98.7ms)[0m [1mcommit transaction[0m
Redirected to http://localhost:3000/simple_cart/orders/17/checkout/delivery
Completed 302 Found in 349ms (ActiveRecord: 335.5ms)
Started GET "/simple_cart/orders/17/checkout/delivery" for 127.0.0.1 at 2016-03-14 18:45:01 +0200
Processing by SimpleCart::CheckoutController#show as HTML
Parameters: {"order_id"=>"17", "id"=>"delivery"}
[1m[35mOrder Load (0.1ms)[0m SELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1 [["id", 17]]
[1m[36mShippingAddress Load (0.1ms)[0m [1mSELECT "addresses".* FROM "addresses" WHERE "addresses"."type" IN ('ShippingAddress') AND "addresses"."order_id" = ? LIMIT 1[0m [["order_id", 17]]
[1m[35mBillingAddress Load (0.2ms)[0m SELECT "addresses".* FROM "addresses" WHERE "addresses"."type" IN ('BillingAddress') AND "addresses"."order_id" = ? LIMIT 1 [["order_id", 17]]
[1m[36mCreditCard Load (0.1ms)[0m [1mSELECT "credit_cards".* FROM "credit_cards" WHERE "credit_cards"."order_id" = ? LIMIT 1[0m [["order_id", 17]]
Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/_progress.html.haml (1.3ms)
[1m[35mDelivery Load (0.2ms)[0m SELECT "deliveries".* FROM "deliveries"
[1m[36mDelivery Load (0.2ms)[0m [1mSELECT "deliveries".* FROM "deliveries" ORDER BY "deliveries"."id" ASC LIMIT 1[0m
[1m[35mCACHE (0.0ms)[0m SELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1 [["id", "17"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1[0m [["id", "17"]]
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/delivery.html.haml within layouts/simple_cart/application (15.7ms)
Completed 200 OK in 41ms (Views: 35.2ms | ActiveRecord: 1.2ms)
Started PATCH "/simple_cart/orders/17/checkout/delivery" for 127.0.0.1 at 2016-03-14 18:45:02 +0200
Processing by SimpleCart::CheckoutController#update as HTML
Parameters: {"utf8"=>"✓", "authenticity_token"=>"nUZ34GFBYpmBDkGDbV1Ag4EZ+Dz++GXPkrm26KvkLlWp7MDBLlF2xZ5FWW2qas4w7EQbAe5+91vb2lWEYYIPRg==", "order"=>{"delivery_id"=>"1"}, "commit"=>"Continue", "order_id"=>"17", "id"=>"delivery"}
[1m[35mOrder Load (0.1ms)[0m SELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1 [["id", 17]]
[1m[36mDelivery Load (0.1ms)[0m [1mSELECT "deliveries".* FROM "deliveries" WHERE "deliveries"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35m (0.0ms)[0m begin transaction
[1m[36mSQL (0.2ms)[0m [1mUPDATE "orders" SET "delivery_id" = ?, "updated_at" = ? WHERE "orders"."id" = ?[0m [["delivery_id", 1], ["updated_at", "2016-03-14 16:45:02.183211"], ["id", 17]]
[1m[35m (64.1ms)[0m commit transaction
Redirected to http://localhost:3000/simple_cart/orders/17/checkout/payment
Completed 302 Found in 69ms (ActiveRecord: 64.5ms)
Started GET "/simple_cart/orders/17/checkout/payment" for 127.0.0.1 at 2016-03-14 18:45:02 +0200
Processing by SimpleCart::CheckoutController#show as HTML
Parameters: {"order_id"=>"17", "id"=>"payment"}
[1m[36mOrder Load (0.1ms)[0m [1mSELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1[0m [["id", 17]]
[1m[35mDelivery Load (0.1ms)[0m SELECT "deliveries".* FROM "deliveries" WHERE "deliveries"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mBillingAddress Load (0.2ms)[0m [1mSELECT "addresses".* FROM "addresses" WHERE "addresses"."type" IN ('BillingAddress') AND "addresses"."order_id" = ? LIMIT 1[0m [["order_id", 17]]
[1m[35mShippingAddress Load (0.1ms)[0m SELECT "addresses".* FROM "addresses" WHERE "addresses"."type" IN ('ShippingAddress') AND "addresses"."order_id" = ? LIMIT 1 [["order_id", 17]]
[1m[36mCreditCard Load (0.1ms)[0m [1mSELECT "credit_cards".* FROM "credit_cards" WHERE "credit_cards"."order_id" = ? LIMIT 1[0m [["order_id", 17]]
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 (7.8ms)
Completed 200 OK in 34ms (Views: 26.1ms | ActiveRecord: 0.6ms)
Started PATCH "/simple_cart/orders/17/checkout/payment" for 127.0.0.1 at 2016-03-14 18:45:07 +0200
Processing by SimpleCart::CheckoutController#update as HTML
Parameters: {"utf8"=>"✓", "authenticity_token"=>"tcQX/Y/QXBc1LNJSl5uoI/NvnA6WMlLpU5o4zV0/4/uBbqDcwMBISypnyrxQrCaQnjJ/M4a0wH0a+duhl1nC6A==", "order"=>{"credit_card_attributes"=>{"number"=>"1111111111111111", "expiration_month"=>"01", "expiration_year"=>"2017", "cvv"=>"521", "firstname"=>"251251", "lastname"=>"251251"}}, "commit"=>"Continue", "order_id"=>"17", "id"=>"payment"}
[1m[35mOrder Load (0.1ms)[0m SELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1 [["id", 17]]
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
[1m[35mCreditCard Load (0.1ms)[0m SELECT "credit_cards".* FROM "credit_cards" WHERE "credit_cards"."order_id" = ? LIMIT 1 [["order_id", 17]]
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "credit_cards" ("number", "expiration_month", "expiration_year", "cvv", "firstname", "lastname", "order_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["number", "1111111111111111"], ["expiration_month", "01"], ["expiration_year", "2017"], ["cvv", "521"], ["firstname", "251251"], ["lastname", "251251"], ["order_id", 17], ["created_at", "2016-03-14 16:45:07.668337"], ["updated_at", "2016-03-14 16:45:07.668337"]]
[1m[35m (78.9ms)[0m commit transaction
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
[1m[35m (0.0ms)[0m commit transaction
Redirected to http://localhost:3000/simple_cart/orders/17/checkout/confirm
Completed 302 Found in 88ms (ActiveRecord: 79.7ms)
Started GET "/simple_cart/orders/17/checkout/confirm" for 127.0.0.1 at 2016-03-14 18:45:07 +0200
Processing by SimpleCart::CheckoutController#show as HTML
Parameters: {"order_id"=>"17", "id"=>"confirm"}
[1m[36mOrder Load (0.1ms)[0m [1mSELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1[0m [["id", 17]]
[1m[35mCreditCard Load (0.1ms)[0m SELECT "credit_cards".* FROM "credit_cards" WHERE "credit_cards"."order_id" = ? LIMIT 1 [["order_id", 17]]
[1m[36mBillingAddress Load (0.1ms)[0m [1mSELECT "addresses".* FROM "addresses" WHERE "addresses"."type" IN ('BillingAddress') AND "addresses"."order_id" = ? LIMIT 1[0m [["order_id", 17]]
[1m[35mShippingAddress Load (0.1ms)[0m SELECT "addresses".* FROM "addresses" WHERE "addresses"."type" IN ('ShippingAddress') AND "addresses"."order_id" = ? LIMIT 1 [["order_id", 17]]
Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/_progress.html.haml (0.9ms)
[1m[36mDelivery Load (0.1ms)[0m [1mSELECT "deliveries".* FROM "deliveries" WHERE "deliveries"."id" = ? LIMIT 1[0m [["id", 1]]
Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/_overview.html.haml (1.8ms)
[1m[35mOrderItem Exists (0.1ms)[0m SELECT 1 AS one FROM "order_items" WHERE "order_items"."order_id" = ? LIMIT 1 [["order_id", "17"]]
[1m[36mOrderItem Load (0.1ms)[0m [1mSELECT "order_items".* FROM "order_items" WHERE "order_items"."order_id" = ?[0m [["order_id", "17"]]
[1m[35mBicycle Load (0.1ms)[0m SELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."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.3ms)
Completed 200 OK in 38ms (Views: 33.4ms | ActiveRecord: 0.7ms)
Started PATCH "/simple_cart/orders/17" for 127.0.0.1 at 2016-03-14 18:45:09 +0200
Processing by SimpleCart::OrdersController#update as HTML
Parameters: {"authenticity_token"=>"28BymBbhreBroda9zJVKlSZ4iFSdS8HVrSBRsIDiJpjvasW5WfG5vHTqzlMLosQmSyVraY3NU0HkQ7LcSoQHiw==", "id"=>"17"}
[1m[36mOrder Load (0.1ms)[0m [1mSELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1[0m [["id", 17]]
[1m[35m (0.1ms)[0m begin transaction
[1m[36mSQL (0.2ms)[0m [1mUPDATE "orders" SET "aasm_state" = ?, "updated_at" = ? WHERE "orders"."id" = ?[0m [["aasm_state", "in_queue"], ["updated_at", "2016-03-14 16:45:09.010978"], ["id", 17]]
[1m[35m (206.6ms)[0m commit transaction
[1m[36mDelivery Load (0.2ms)[0m [1mSELECT "deliveries".* FROM "deliveries" WHERE "deliveries"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35m (0.1ms)[0m begin transaction
[1m[36mSQL (0.3ms)[0m [1mUPDATE "orders" SET "total_price" = ?, "updated_at" = ? WHERE "orders"."id" = ?[0m [["total_price", 64.0], ["updated_at", "2016-03-14 16:45:09.222109"], ["id", 17]]
[1m[35m (105.8ms)[0m commit transaction
Redirected to http://localhost:3000/simple_cart/orders/17
Completed 302 Found in 321ms (ActiveRecord: 313.4ms)
Started GET "/simple_cart/orders/17" for 127.0.0.1 at 2016-03-14 18:45:09 +0200
Processing by SimpleCart::OrdersController#show as HTML
Parameters: {"id"=>"17"}
[1m[36mOrder Load (0.1ms)[0m [1mSELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1[0m [["id", 17]]
[1m[35mBillingAddress Load (0.1ms)[0m SELECT "addresses".* FROM "addresses" WHERE "addresses"."type" IN ('BillingAddress') AND "addresses"."order_id" = ? LIMIT 1 [["order_id", 17]]
[1m[36mShippingAddress Load (0.1ms)[0m [1mSELECT "addresses".* FROM "addresses" WHERE "addresses"."type" IN ('ShippingAddress') AND "addresses"."order_id" = ? LIMIT 1[0m [["order_id", 17]]
[1m[35mDelivery Load (0.1ms)[0m SELECT "deliveries".* FROM "deliveries" WHERE "deliveries"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mCreditCard Load (0.1ms)[0m [1mSELECT "credit_cards".* FROM "credit_cards" WHERE "credit_cards"."order_id" = ? LIMIT 1[0m [["order_id", 17]]
[1m[35mOrderItem Exists (0.1ms)[0m SELECT 1 AS one FROM "order_items" WHERE "order_items"."order_id" = ? LIMIT 1 [["order_id", "17"]]
[1m[36mOrderItem Load (0.1ms)[0m [1mSELECT "order_items".* FROM "order_items" WHERE "order_items"."order_id" = ?[0m [["order_id", "17"]]
[1m[35mBicycle Load (0.1ms)[0m SELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."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 (18.5ms)
Completed 200 OK in 37ms (Views: 34.7ms | ActiveRecord: 0.7ms)
Started GET "/" for 127.0.0.1 at 2016-03-14 18:46:34 +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.5ms)
Completed 200 OK in 3ms (Views: 2.9ms | ActiveRecord: 0.0ms)
Started GET "/items" for 127.0.0.1 at 2016-03-14 18:46:38 +0200
Processing by ItemsController#index as HTML
[1m[36mItem Load (0.8ms)[0m [1mSELECT "items".* FROM "items"[0m
Rendered items/index.html.erb (6.7ms)
Completed 200 OK in 15ms (Views: 11.8ms | ActiveRecord: 1.1ms)
Started GET "/items/1" for 127.0.0.1 at 2016-03-14 18:46:39 +0200
Processing by ItemsController#show as HTML
Parameters: {"id"=>"1"}
[1m[35mItem Load (0.2ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mItem Load (0.2ms)[0m [1mSELECT "items".* FROM "items"[0m
Rendered items/show.html.erb (26.0ms)
Completed 500 Internal Server Error in 30ms (ActiveRecord: 0.3ms)
ActionView::Template::Error (undefined method `add_to_cart' for #<#:0x007f8899a54e88>):
18:
19: JUST
20: <%= @item %>
21: <%= add_to_cart(@item) %>
22:
23:
24: <%= link_to 'Edit', edit_item_path(@item) %> |
app/views/items/show.html.erb:21:in `_app_views_items_show_html_erb__898009220190776107_70112335011240'
Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/rescues/_source.erb (6.3ms)
Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (2.4ms)
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 (19.6ms)
Started GET "/items/1" for 127.0.0.1 at 2016-03-14 18:47:03 +0200
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
Processing by ItemsController#show as HTML
Parameters: {"id"=>"1"}
[1m[35mItem Load (0.2ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mItem Load (0.1ms)[0m [1mSELECT "items".* FROM "items"[0m
Rendered items/show.html.erb (13.2ms)
Completed 500 Internal Server Error in 37ms (ActiveRecord: 0.6ms)
ActionView::Template::Error (undefined method `add_to_cart' for #<#:0x00000004e05b10>):
18:
19: JUST
20: <%= @item %>
21: <%= add_to_cart(@item) %>
22:
23:
24: <%= link_to 'Edit', edit_item_path(@item) %> |
app/views/items/show.html.erb:21:in `_app_views_items_show_html_erb___3070350465213087739_40829860'
Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/rescues/_source.erb (5.5ms)
Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (2.2ms)
Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (1.0ms)
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 (18.4ms)
Started GET "/items/1" for 127.0.0.1 at 2016-03-14 18:52:09 +0200
Processing by ItemsController#show as HTML
Parameters: {"id"=>"1"}
[1m[35mItem Load (0.1ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mItem Load (0.2ms)[0m [1mSELECT "items".* FROM "items"[0m
Rendered items/show.html.erb (10.6ms)
Completed 500 Internal Server Error in 20ms (ActiveRecord: 0.8ms)
ActionView::Template::Error (undefined method `add_to_cart' for #<#:0x00000004961848>):
18:
19: JUST
20: <%= @item %>
21: <%= add_to_cart(@item) %>
22:
23:
24: <%= link_to 'Edit', edit_item_path(@item) %> |
app/views/items/show.html.erb:21:in `_app_views_items_show_html_erb___3070350465213087739_40829860'
Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/rescues/_source.erb (5.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.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.8ms)
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 (17.9ms)
Started GET "/items" for 127.0.0.1 at 2016-03-14 18:52:17 +0200
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
Processing by ItemsController#index as HTML
[1m[35mItem Load (0.1ms)[0m SELECT "items".* FROM "items"
Rendered items/index.html.erb (6.5ms)
Completed 200 OK in 21ms (Views: 12.2ms | ActiveRecord: 0.4ms)
Started GET "/items/3" for 127.0.0.1 at 2016-03-14 18:52:18 +0200
Processing by ItemsController#show as HTML
Parameters: {"id"=>"3"}
[1m[36mItem Load (0.2ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", 3]]
[1m[35mItem Load (0.2ms)[0m SELECT "items".* FROM "items"
Rendered items/show.html.erb (19.0ms)
Completed 500 Internal Server Error in 30ms (ActiveRecord: 0.4ms)
ActionView::Template::Error (undefined method `add_to_cart' for #<#:0x00000005e46b28>):
18:
19: JUST
20: <%= @item %>
21: <%= add_to_cart(@item) %>
22:
23:
24: <%= link_to 'Edit', edit_item_path(@item) %> |
app/views/items/show.html.erb:21:in `_app_views_items_show_html_erb__755005825975644922_49425400'
Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/rescues/_source.erb (5.4ms)
Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (3.1ms)
Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (1.0ms)
Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/rescues/template_error.html.erb within rescues/layout (19.0ms)
Started GET "/items/3" for 127.0.0.1 at 2016-03-14 18:54:40 +0200
Processing by ItemsController#show as HTML
Parameters: {"id"=>"3"}
[1m[36mItem Load (0.2ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", 3]]
[1m[35mItem Load (0.2ms)[0m SELECT "items".* FROM "items"
Rendered items/show.html.erb (12.0ms)
Completed 500 Internal Server Error in 16ms (ActiveRecord: 0.3ms)
ActionView::Template::Error (undefined method `add_to_cart' for #<#:0x00000005d85798>):
18:
19: JUST
20: <%= @item %>
21: <%= add_to_cart(@item) %>
22:
23:
24: <%= link_to 'Edit', edit_item_path(@item) %> |
app/views/items/show.html.erb:21:in `_app_views_items_show_html_erb__755005825975644922_49425400'
Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/rescues/_source.erb (6.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 (3.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.8ms)
Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/rescues/template_error.html.erb within rescues/layout (19.9ms)
Started GET "/items/3" for 127.0.0.1 at 2016-03-14 18:54:47 +0200
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
Processing by ItemsController#show as HTML
Parameters: {"id"=>"3"}
[1m[35mItem Load (0.2ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 3]]
Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/carts/_buy.html.haml (14.9ms)
Rendered items/show.html.erb (18.2ms)
Completed 200 OK in 42ms (Views: 24.1ms | ActiveRecord: 0.5ms)
Started POST "/simple_cart/cart/3" for 127.0.0.1 at 2016-03-14 18:54:49 +0200
Processing by SimpleCart::CartsController#add as HTML
Parameters: {"utf8"=>"✓", "authenticity_token"=>"GAc6jwY3q1ais2T1D9JiGMRCkNrl3o1ldB4pC3RLX1gsrY2uSSe/Cr34fBvI5eyrqR9z5/VYH/E9fcpnvi1+Sw==", "qty"=>"1", "klass"=>"Item", "commit"=>"Add to cart", "item_id"=>"3"}
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-14 18:54:49 +0200
Processing by SimpleCart::CartsController#show as HTML
[1m[36mBicycle Load (0.1ms)[0m [1mSELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mItem Load (0.1ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 3]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1[0m [["id", "1"]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "3"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1[0m [["id", "1"]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "3"]]
Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml within layouts/simple_cart/application (25.2ms)
Completed 200 OK in 227ms (Views: 226.1ms | ActiveRecord: 0.5ms)
Started GET "/" for 127.0.0.1 at 2016-03-14 20:09:52 +0200
[1m[36mActiveRecord::SchemaMigration Load (0.3ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
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 (1.0ms)
Completed 200 OK in 14ms (Views: 7.0ms | ActiveRecord: 0.0ms)
Started GET "/items" for 127.0.0.1 at 2016-03-14 20:09:55 +0200
Processing by ItemsController#index as HTML
[1m[35mItem Load (0.2ms)[0m SELECT "items".* FROM "items"
Rendered items/index.html.erb (7.2ms)
Completed 200 OK in 13ms (Views: 10.8ms | ActiveRecord: 0.5ms)
Started GET "/items" for 127.0.0.1 at 2016-03-14 20:09:55 +0200
Processing by ItemsController#index as HTML
[1m[36mItem Load (0.2ms)[0m [1mSELECT "items".* FROM "items"[0m
Rendered items/index.html.erb (2.3ms)
Completed 200 OK in 5ms (Views: 3.9ms | ActiveRecord: 0.2ms)
Started GET "/items/new" for 127.0.0.1 at 2016-03-14 20:09:57 +0200
Processing by ItemsController#new as HTML
Rendered items/_form.html.erb (8.5ms)
Rendered items/new.html.erb (11.5ms)
Completed 200 OK in 15ms (Views: 14.0ms | ActiveRecord: 0.0ms)
Started POST "/items" for 127.0.0.1 at 2016-03-14 20:09:59 +0200
Processing by ItemsController#create as HTML
Parameters: {"utf8"=>"✓", "authenticity_token"=>"5Qv2qwwaVdsdlFg1zbc2ElJHlEPKmA/ImF+5yJ9xdljRoUGKQwpBhwLfQNsKgLihPxp3ftoenVzRPFqkVRdXSw==", "item"=>{"name"=>"fvdsg", "price"=>"dsg", "qty"=>"1"}, "commit"=>"Create Item"}
[1m[35m (0.1ms)[0m begin transaction
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "items" ("name", "price", "qty", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["name", "fvdsg"], ["price", 0.0], ["qty", 1], ["created_at", "2016-03-14 18:09:59.699452"], ["updated_at", "2016-03-14 18:09:59.699452"]]
[1m[35m (234.2ms)[0m commit transaction
Redirected to http://localhost:3000/items/4
Completed 302 Found in 241ms (ActiveRecord: 234.6ms)
Started GET "/items/4" for 127.0.0.1 at 2016-03-14 20:09:59 +0200
Processing by ItemsController#show as HTML
Parameters: {"id"=>"4"}
[1m[36mItem Load (0.3ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", 4]]
Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/carts/_buy.html.haml (11.2ms)
Rendered items/show.html.erb (12.7ms)
Completed 200 OK in 21ms (Views: 14.4ms | ActiveRecord: 0.3ms)
Started POST "/simple_cart/cart/4" for 127.0.0.1 at 2016-03-14 20:10:03 +0200
Processing by SimpleCart::CartsController#add as HTML
Parameters: {"utf8"=>"✓", "authenticity_token"=>"0arxNvtQ4G39t1xmN8+N3gxFuM4bE5NRDi8aDC9oHD7lAEYXtED0MeL8RIjw+ANtYRhb8wuVAcVHTPlg5Q49LQ==", "qty"=>"3", "klass"=>"Item", "commit"=>"Add to cart", "item_id"=>"4"}
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-14 20:10:03 +0200
Processing by SimpleCart::CartsController#show as HTML
[1m[35mBicycle Load (0.2ms)[0m SELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mItem Load (0.1ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", 3]]
[1m[35mItem Load (0.1ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 4]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1[0m [["id", "1"]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "3"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "4"]]
[1m[35mCACHE (0.0ms)[0m SELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1 [["id", "1"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "3"]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "4"]]
Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml within layouts/simple_cart/application (45.5ms)
Completed 200 OK in 247ms (Views: 245.4ms | ActiveRecord: 0.6ms)
Started POST "/simple_cart/cart/checkout" for 127.0.0.1 at 2016-03-14 20:10:06 +0200
Processing by SimpleCart::CartsController#checkout as HTML
Parameters: {"authenticity_token"=>"Y4+DwxntlM0bHv8+G/ixx9r/D3mxa0VjNz11yB1m6aRXJTTiVv2AkQRV59Dczz90t6LsRKHt1/d+Xpak1wDItw=="}
[1m[36mBicycle Load (0.1ms)[0m [1mSELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mItem Load (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 3]]
[1m[36mItem Load (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", 4]]
[1m[35mCACHE (0.0ms)[0m SELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1 [["id", "1"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "3"]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "4"]]
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
[1m[35mSQL (0.3ms)[0m INSERT INTO "orders" ("total_price", "completed_date", "aasm_state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["total_price", 69.0], ["completed_date", "2016-03-14"], ["aasm_state", "in_progress"], ["created_at", "2016-03-14 18:10:06.601878"], ["updated_at", "2016-03-14 18:10:06.601878"]]
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "order_items" ("price", "qty", "itemable_id", "itemable_type", "order_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["price", 22.0], ["qty", 2], ["itemable_id", 1], ["itemable_type", "Bicycle"], ["order_id", "19"], ["created_at", "2016-03-14 18:10:06.604182"], ["updated_at", "2016-03-14 18:10:06.604182"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "order_items" ("price", "qty", "itemable_id", "itemable_type", "order_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["price", 25.0], ["qty", 1], ["itemable_id", 3], ["itemable_type", "Item"], ["order_id", "19"], ["created_at", "2016-03-14 18:10:06.606634"], ["updated_at", "2016-03-14 18:10:06.606634"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "order_items" ("price", "qty", "itemable_id", "itemable_type", "order_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["price", 0.0], ["qty", 3], ["itemable_id", 4], ["itemable_type", "Item"], ["order_id", "19"], ["created_at", "2016-03-14 18:10:06.608150"], ["updated_at", "2016-03-14 18:10:06.608150"]]
[1m[35m (50.8ms)[0m commit transaction
Redirected to http://localhost:3000/simple_cart/orders/19/checkout
Completed 302 Found in 131ms (ActiveRecord: 52.3ms)
Started GET "/simple_cart/orders/19/checkout" for 127.0.0.1 at 2016-03-14 20:10:06 +0200
Processing by SimpleCart::CheckoutController#index as HTML
Parameters: {"order_id"=>"19"}
[1m[36mOrder Load (0.2ms)[0m [1mSELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1[0m [["id", 19]]
Redirected to http://localhost:3000/simple_cart/orders/19/checkout/billing
Completed 302 Found in 2ms (ActiveRecord: 0.2ms)
Started GET "/simple_cart/orders/19/checkout/billing" for 127.0.0.1 at 2016-03-14 20:10:06 +0200
Processing by SimpleCart::CheckoutController#show as HTML
Parameters: {"order_id"=>"19", "id"=>"billing"}
[1m[35mOrder Load (0.1ms)[0m SELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1 [["id", 19]]
[1m[36mBillingAddress Load (0.2ms)[0m [1mSELECT "addresses".* FROM "addresses" WHERE "addresses"."type" IN ('BillingAddress') AND "addresses"."order_id" = ? LIMIT 1[0m [["order_id", 19]]
[1m[35mShippingAddress Load (0.8ms)[0m SELECT "addresses".* FROM "addresses" WHERE "addresses"."type" IN ('ShippingAddress') AND "addresses"."order_id" = ? LIMIT 1 [["order_id", 19]]
[1m[36mCreditCard Load (0.2ms)[0m [1mSELECT "credit_cards".* FROM "credit_cards" WHERE "credit_cards"."order_id" = ? LIMIT 1[0m [["order_id", 19]]
Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/_progress.html.haml (2.9ms)
Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/_address.html.haml (14.6ms)
Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/billing.html.haml within layouts/simple_cart/application (34.1ms)
Completed 200 OK in 129ms (Views: 52.5ms | ActiveRecord: 1.7ms)
Started PATCH "/simple_cart/orders/19/checkout/billing" for 127.0.0.1 at 2016-03-14 20:12:48 +0200
Processing by SimpleCart::CheckoutController#update as HTML
Parameters: {"utf8"=>"✓", "authenticity_token"=>"vMPo3Gvbn8NquzLRd+O8ofKamvmVDq+JGPDGVsZL8PuIaV/9JMuLn3XwKj+w1DISn8d5xIWIPR1RkyU6DC3R6A==", "order"=>{"billing_address_attributes"=>{"firstname"=>"", "lastname"=>"", "address"=>"", "zipcode"=>"", "city"=>"", "phone"=>"", "country"=>"Afghanistan"}}, "shipping"=>{"use_billing_address"=>"true"}, "commit"=>"Save and continue", "order_id"=>"19", "id"=>"billing"}
[1m[35mOrder Load (0.1ms)[0m SELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1 [["id", 19]]
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
[1m[35mBillingAddress Load (0.2ms)[0m SELECT "addresses".* FROM "addresses" WHERE "addresses"."type" IN ('BillingAddress') AND "addresses"."order_id" = ? LIMIT 1 [["order_id", 19]]
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/_progress.html.haml (1.4ms)
Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/_address.html.haml (6.9ms)
Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/billing.html.haml within layouts/simple_cart/application (15.2ms)
Completed 200 OK in 48ms (Views: 31.0ms | ActiveRecord: 0.7ms)
Started PATCH "/simple_cart/orders/19/checkout/billing" for 127.0.0.1 at 2016-03-14 20:12:54 +0200
Processing by SimpleCart::CheckoutController#update as HTML
Parameters: {"utf8"=>"✓", "authenticity_token"=>"QpRn8M7+pR5zZKpEptSSrzyiBkWH3eXlH84NcjPCbTt2PtDRge6xQmwvsqph4xwcUf/leJdbd3FWre4e+aRMKA==", "order"=>{"billing_address_attributes"=>{"firstname"=>"cvxz", "lastname"=>"xzvxzv", "address"=>"xzvxzv", "zipcode"=>"xzvxzv", "city"=>"xzvxz", "phone"=>"xzvxzv", "country"=>"Afghanistan"}}, "shipping"=>{"use_billing_address"=>"true"}, "commit"=>"Save and continue", "order_id"=>"19", "id"=>"billing"}
[1m[35mOrder Load (0.1ms)[0m SELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1 [["id", 19]]
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
[1m[35mBillingAddress Load (0.1ms)[0m SELECT "addresses".* FROM "addresses" WHERE "addresses"."type" IN ('BillingAddress') AND "addresses"."order_id" = ? LIMIT 1 [["order_id", 19]]
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "addresses" ("type", "firstname", "lastname", "address", "zipcode", "city", "phone", "country", "order_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["type", "BillingAddress"], ["firstname", "cvxz"], ["lastname", "xzvxzv"], ["address", "xzvxzv"], ["zipcode", "xzvxzv"], ["city", "xzvxz"], ["phone", "xzvxzv"], ["country", "Afghanistan"], ["order_id", 19], ["created_at", "2016-03-14 18:12:54.461203"], ["updated_at", "2016-03-14 18:12:54.461203"]]
[1m[35m (76.0ms)[0m commit transaction
[1m[36mShippingAddress Load (0.1ms)[0m [1mSELECT "addresses".* FROM "addresses" WHERE "addresses"."type" IN ('ShippingAddress') AND "addresses"."order_id" = ? LIMIT 1[0m [["order_id", 19]]
[1m[35m (0.1ms)[0m begin transaction
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "addresses" ("type", "order_id", "address", "zipcode", "city", "phone", "country", "created_at", "updated_at", "firstname", "lastname") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["type", "ShippingAddress"], ["order_id", 19], ["address", "xzvxzv"], ["zipcode", "xzvxzv"], ["city", "xzvxz"], ["phone", "xzvxzv"], ["country", "Afghanistan"], ["created_at", "2016-03-14 18:12:54.461203"], ["updated_at", "2016-03-14 18:12:54.461203"], ["firstname", "cvxz"], ["lastname", "xzvxzv"]]
[1m[35m (231.9ms)[0m commit transaction
Redirected to http://localhost:3000/simple_cart/orders/19/checkout/delivery
Completed 302 Found in 320ms (ActiveRecord: 309.1ms)
Started GET "/simple_cart/orders/19/checkout/delivery" for 127.0.0.1 at 2016-03-14 20:12:54 +0200
Processing by SimpleCart::CheckoutController#show as HTML
Parameters: {"order_id"=>"19", "id"=>"delivery"}
[1m[36mOrder Load (0.1ms)[0m [1mSELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1[0m [["id", 19]]
[1m[35mShippingAddress Load (0.2ms)[0m SELECT "addresses".* FROM "addresses" WHERE "addresses"."type" IN ('ShippingAddress') AND "addresses"."order_id" = ? LIMIT 1 [["order_id", 19]]
[1m[36mBillingAddress Load (0.2ms)[0m [1mSELECT "addresses".* FROM "addresses" WHERE "addresses"."type" IN ('BillingAddress') AND "addresses"."order_id" = ? LIMIT 1[0m [["order_id", 19]]
[1m[35mCreditCard Load (0.1ms)[0m SELECT "credit_cards".* FROM "credit_cards" WHERE "credit_cards"."order_id" = ? LIMIT 1 [["order_id", 19]]
Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/_progress.html.haml (1.9ms)
[1m[36mDelivery Load (0.2ms)[0m [1mSELECT "deliveries".* FROM "deliveries"[0m
[1m[35mDelivery Load (0.2ms)[0m SELECT "deliveries".* FROM "deliveries" ORDER BY "deliveries"."id" ASC LIMIT 1
[1m[36mCACHE (0.0ms)[0m [1mSELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1[0m [["id", "19"]]
[1m[35mCACHE (0.0ms)[0m SELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1 [["id", "19"]]
Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/_summary.html.haml (4.9ms)
Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/delivery.html.haml within layouts/simple_cart/application (24.5ms)
Completed 200 OK in 49ms (Views: 42.2ms | ActiveRecord: 1.3ms)
Started GET "/simple_cart/" for 127.0.0.1 at 2016-03-14 20:17:24 +0200
Processing by SimpleCart::CartsController#show as HTML
[1m[36mBicycle Load (0.1ms)[0m [1mSELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mItem Load (0.1ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 3]]
[1m[36mItem Load (0.1ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", 4]]
[1m[35mCACHE (0.1ms)[0m SELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1 [["id", "1"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "3"]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "4"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1[0m [["id", "1"]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "3"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "4"]]
Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml within layouts/simple_cart/application (20.7ms)
Completed 200 OK in 38ms (Views: 36.8ms | ActiveRecord: 0.5ms)
Started GET "/simple_cart/" for 127.0.0.1 at 2016-03-14 20:17:24 +0200
Processing by SimpleCart::CartsController#show as HTML
[1m[35mBicycle Load (0.1ms)[0m SELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mItem Load (0.1ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", 3]]
[1m[35mItem Load (0.1ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 4]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1[0m [["id", "1"]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "3"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "4"]]
[1m[35mCACHE (0.0ms)[0m SELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1 [["id", "1"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "3"]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "4"]]
Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml within layouts/simple_cart/application (19.7ms)
Completed 200 OK in 38ms (Views: 37.0ms | ActiveRecord: 0.3ms)
Started POST "/simple_cart/cart/checkout" for 127.0.0.1 at 2016-03-14 20:17:26 +0200
Processing by SimpleCart::CartsController#checkout as HTML
Parameters: {"authenticity_token"=>"M4qbbkJsO5s6rsTdsffBhSjpfghZoFOagTkEGbWeAFEHICxPDXwvxyXl3DN2wE82RbSdNUkmwQ7IWud1f/ghQg=="}
[1m[36mBicycle Load (0.2ms)[0m [1mSELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mItem Load (0.2ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 3]]
[1m[36mItem Load (0.2ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", 4]]
[1m[35mCACHE (0.0ms)[0m SELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1 [["id", "1"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "3"]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "4"]]
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
[1m[35mSQL (0.6ms)[0m INSERT INTO "orders" ("total_price", "completed_date", "aasm_state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["total_price", 69.0], ["completed_date", "2016-03-14"], ["aasm_state", "in_progress"], ["created_at", "2016-03-14 18:17:26.239759"], ["updated_at", "2016-03-14 18:17:26.239759"]]
[1m[36mSQL (0.7ms)[0m [1mINSERT INTO "order_items" ("price", "qty", "itemable_id", "itemable_type", "order_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["price", 22.0], ["qty", 2], ["itemable_id", 1], ["itemable_type", "Bicycle"], ["order_id", "20"], ["created_at", "2016-03-14 18:17:26.243036"], ["updated_at", "2016-03-14 18:17:26.243036"]]
[1m[35mSQL (0.2ms)[0m INSERT INTO "order_items" ("price", "qty", "itemable_id", "itemable_type", "order_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["price", 25.0], ["qty", 1], ["itemable_id", 3], ["itemable_type", "Item"], ["order_id", "20"], ["created_at", "2016-03-14 18:17:26.246177"], ["updated_at", "2016-03-14 18:17:26.246177"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "order_items" ("price", "qty", "itemable_id", "itemable_type", "order_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["price", 0.0], ["qty", 3], ["itemable_id", 4], ["itemable_type", "Item"], ["order_id", "20"], ["created_at", "2016-03-14 18:17:26.249045"], ["updated_at", "2016-03-14 18:17:26.249045"]]
[1m[35m (214.2ms)[0m commit transaction
Redirected to http://localhost:3000/simple_cart/orders/20/checkout
Completed 302 Found in 239ms (ActiveRecord: 216.7ms)
Started GET "/simple_cart/orders/20/checkout" for 127.0.0.1 at 2016-03-14 20:17:26 +0200
Processing by SimpleCart::CheckoutController#index as HTML
Parameters: {"order_id"=>"20"}
[1m[36mOrder Load (0.1ms)[0m [1mSELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1[0m [["id", 20]]
Redirected to http://localhost:3000/simple_cart/orders/20/checkout/billing
Completed 302 Found in 2ms (ActiveRecord: 0.1ms)
Started GET "/simple_cart/orders/20/checkout/billing" for 127.0.0.1 at 2016-03-14 20:17:26 +0200
Processing by SimpleCart::CheckoutController#show as HTML
Parameters: {"order_id"=>"20", "id"=>"billing"}
[1m[35mOrder Load (0.1ms)[0m SELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1 [["id", 20]]
[1m[36mBillingAddress Load (0.1ms)[0m [1mSELECT "addresses".* FROM "addresses" WHERE "addresses"."type" IN ('BillingAddress') AND "addresses"."order_id" = ? LIMIT 1[0m [["order_id", 20]]
[1m[35mShippingAddress Load (0.1ms)[0m SELECT "addresses".* FROM "addresses" WHERE "addresses"."type" IN ('ShippingAddress') AND "addresses"."order_id" = ? LIMIT 1 [["order_id", 20]]
[1m[36mCreditCard Load (0.1ms)[0m [1mSELECT "credit_cards".* FROM "credit_cards" WHERE "credit_cards"."order_id" = ? LIMIT 1[0m [["order_id", 20]]
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.0ms)
Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/billing.html.haml within layouts/simple_cart/application (12.8ms)
Completed 200 OK in 45ms (Views: 38.5ms | ActiveRecord: 0.4ms)
Started GET "/" for 127.0.0.1 at 2016-03-14 20:17:29 +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 2ms (Views: 1.5ms | ActiveRecord: 0.0ms)
Started GET "/" for 127.0.0.1 at 2016-03-14 20:17:35 +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.1ms)
Completed 200 OK in 1ms (Views: 0.8ms | ActiveRecord: 0.0ms)
Started GET "/items" for 127.0.0.1 at 2016-03-14 20:17:39 +0200
Processing by ItemsController#index as HTML
[1m[35mItem Load (0.2ms)[0m SELECT "items".* FROM "items"
Rendered items/index.html.erb (1.9ms)
Completed 200 OK in 4ms (Views: 3.2ms | ActiveRecord: 0.2ms)
Started GET "/items" for 127.0.0.1 at 2016-03-14 20:17:39 +0200
Processing by ItemsController#index as HTML
[1m[36mItem Load (0.1ms)[0m [1mSELECT "items".* FROM "items"[0m
Rendered items/index.html.erb (2.5ms)
Completed 200 OK in 5ms (Views: 3.9ms | ActiveRecord: 0.1ms)
Started GET "/items/2" for 127.0.0.1 at 2016-03-14 20:17:41 +0200
Processing by ItemsController#show as HTML
Parameters: {"id"=>"2"}
[1m[35mItem Load (0.1ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 2]]
Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/carts/_buy.html.haml (6.4ms)
Rendered items/show.html.erb (8.0ms)
Completed 200 OK in 12ms (Views: 10.5ms | ActiveRecord: 0.1ms)
Started POST "/simple_cart/cart/2" for 127.0.0.1 at 2016-03-14 20:17:42 +0200
Processing by SimpleCart::CartsController#add as HTML
Parameters: {"utf8"=>"✓", "authenticity_token"=>"KN2gxh+Yz0iIiTZAv3Eawh9YAbg3e2OmhnuThiwXWMccdxfnUIjbFJfCLq54RpRxcgXihSf98TLPGHDq5nF51A==", "qty"=>"1", "klass"=>"Item", "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-14 20:17:42 +0200
Processing by SimpleCart::CartsController#show as HTML
[1m[36mBicycle Load (0.2ms)[0m [1mSELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mItem Load (0.1ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 3]]
[1m[36mItem Load (0.1ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", 4]]
[1m[35mItem Load (0.1ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 2]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1[0m [["id", "1"]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "3"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "4"]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "2"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1[0m [["id", "1"]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "3"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "4"]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."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 (25.2ms)
Completed 200 OK in 44ms (Views: 42.3ms | ActiveRecord: 0.6ms)
Started GET "/simple_cart/" for 127.0.0.1 at 2016-03-14 20:17:46 +0200
Processing by SimpleCart::CartsController#show as HTML
[1m[36mBicycle Load (0.1ms)[0m [1mSELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mItem Load (0.1ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 3]]
[1m[36mItem Load (0.1ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", 4]]
[1m[35mItem Load (0.1ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 2]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1[0m [["id", "1"]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "3"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "4"]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "2"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1[0m [["id", "1"]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "3"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "4"]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."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 (26.9ms)
Completed 200 OK in 45ms (Views: 44.3ms | ActiveRecord: 0.5ms)
Started GET "/simple_cart/" for 127.0.0.1 at 2016-03-14 20:17:46 +0200
Processing by SimpleCart::CartsController#show as HTML
[1m[36mBicycle Load (0.1ms)[0m [1mSELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mItem Load (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 3]]
[1m[36mItem Load (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", 4]]
[1m[35mItem Load (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 2]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1[0m [["id", "1"]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "3"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "4"]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "2"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1[0m [["id", "1"]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "3"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "4"]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."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 (18.9ms)
Completed 200 OK in 36ms (Views: 34.8ms | ActiveRecord: 0.4ms)
Started POST "/simple_cart/cart/checkout" for 127.0.0.1 at 2016-03-14 20:17:51 +0200
Processing by SimpleCart::CartsController#checkout as HTML
Parameters: {"authenticity_token"=>"cdFXcCdBZxhoM6FNS5n7cNTg+xjbqaXJvnebt2vViABFe+BRaFFzRHd4uaOMrnXDub0YJcsvN133FHjbobOpEw=="}
[1m[36mBicycle Load (0.2ms)[0m [1mSELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mItem Load (0.1ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 3]]
[1m[36mItem Load (0.1ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", 4]]
[1m[35mItem Load (0.1ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 2]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1[0m [["id", "1"]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "3"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "4"]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "2"]]
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
[1m[35mSQL (0.3ms)[0m INSERT INTO "orders" ("total_price", "completed_date", "aasm_state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["total_price", 25481.0], ["completed_date", "2016-03-14"], ["aasm_state", "in_progress"], ["created_at", "2016-03-14 18:17:51.904296"], ["updated_at", "2016-03-14 18:17:51.904296"]]
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "order_items" ("price", "qty", "itemable_id", "itemable_type", "order_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["price", 22.0], ["qty", 2], ["itemable_id", 1], ["itemable_type", "Bicycle"], ["order_id", "21"], ["created_at", "2016-03-14 18:17:51.906390"], ["updated_at", "2016-03-14 18:17:51.906390"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "order_items" ("price", "qty", "itemable_id", "itemable_type", "order_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["price", 25.0], ["qty", 1], ["itemable_id", 3], ["itemable_type", "Item"], ["order_id", "21"], ["created_at", "2016-03-14 18:17:51.908536"], ["updated_at", "2016-03-14 18:17:51.908536"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "order_items" ("price", "qty", "itemable_id", "itemable_type", "order_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["price", 0.0], ["qty", 3], ["itemable_id", 4], ["itemable_type", "Item"], ["order_id", "21"], ["created_at", "2016-03-14 18:17:51.909891"], ["updated_at", "2016-03-14 18:17:51.909891"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "order_items" ("price", "qty", "itemable_id", "itemable_type", "order_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["price", 25412.0], ["qty", 1], ["itemable_id", 2], ["itemable_type", "Item"], ["order_id", "21"], ["created_at", "2016-03-14 18:17:51.910893"], ["updated_at", "2016-03-14 18:17:51.910893"]]
[1m[36m (60.7ms)[0m [1mcommit transaction[0m
Redirected to http://localhost:3000/simple_cart/orders/21/checkout
Completed 302 Found in 77ms (ActiveRecord: 62.0ms)
Started GET "/simple_cart/orders/21/checkout" for 127.0.0.1 at 2016-03-14 20:17:51 +0200
Processing by SimpleCart::CheckoutController#index as HTML
Parameters: {"order_id"=>"21"}
[1m[35mOrder Load (0.1ms)[0m SELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1 [["id", 21]]
Redirected to http://localhost:3000/simple_cart/orders/21/checkout/billing
Completed 302 Found in 2ms (ActiveRecord: 0.1ms)
Started GET "/simple_cart/orders/21/checkout/billing" for 127.0.0.1 at 2016-03-14 20:17:51 +0200
Processing by SimpleCart::CheckoutController#show as HTML
Parameters: {"order_id"=>"21", "id"=>"billing"}
[1m[36mOrder Load (0.1ms)[0m [1mSELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1[0m [["id", 21]]
[1m[35mBillingAddress Load (0.1ms)[0m SELECT "addresses".* FROM "addresses" WHERE "addresses"."type" IN ('BillingAddress') AND "addresses"."order_id" = ? LIMIT 1 [["order_id", 21]]
[1m[36mShippingAddress Load (0.1ms)[0m [1mSELECT "addresses".* FROM "addresses" WHERE "addresses"."type" IN ('ShippingAddress') AND "addresses"."order_id" = ? LIMIT 1[0m [["order_id", 21]]
[1m[35mCreditCard Load (0.1ms)[0m SELECT "credit_cards".* FROM "credit_cards" WHERE "credit_cards"."order_id" = ? LIMIT 1 [["order_id", 21]]
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 (10.4ms)
Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/billing.html.haml within layouts/simple_cart/application (15.6ms)
Completed 200 OK in 40ms (Views: 33.6ms | ActiveRecord: 0.4ms)
Started PATCH "/simple_cart/orders/21/checkout/billing" for 127.0.0.1 at 2016-03-14 20:21:36 +0200
Processing by SimpleCart::CheckoutController#update as HTML
Parameters: {"utf8"=>"✓", "authenticity_token"=>"DFExv7ZJV5gvh23axgTtlore2oMLm+PkLDsSF4zuQ5c4+4ae+VlDxDDMdTQBM2Ml54M5vhsdcXBlWPF7RohihA==", "order"=>{"billing_address_attributes"=>{"firstname"=>"", "lastname"=>"", "address"=>"", "zipcode"=>"", "city"=>"", "phone"=>"", "country"=>"Afghanistan"}}, "shipping"=>{"use_billing_address"=>"true"}, "commit"=>"Save and continue", "order_id"=>"21", "id"=>"billing"}
[1m[36mOrder Load (0.2ms)[0m [1mSELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1[0m [["id", 21]]
[1m[35m (0.1ms)[0m begin transaction
[1m[36mBillingAddress Load (0.1ms)[0m [1mSELECT "addresses".* FROM "addresses" WHERE "addresses"."type" IN ('BillingAddress') AND "addresses"."order_id" = ? LIMIT 1[0m [["order_id", 21]]
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
[1m[35m (0.1ms)[0m 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 (13.0ms)
Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/billing.html.haml within layouts/simple_cart/application (21.2ms)
Completed 200 OK in 50ms (Views: 36.3ms | ActiveRecord: 0.6ms)
Started PATCH "/simple_cart/orders/21/checkout/billing" for 127.0.0.1 at 2016-03-14 20:21:41 +0200
Processing by SimpleCart::CheckoutController#update as HTML
Parameters: {"utf8"=>"✓", "authenticity_token"=>"uqffxpUrO9Z1M3ND8kmmKepLQZ5EAu7Pp92eS1/iaimODWjn2jsvimp4a601fiiahxaio1SEfFvuvn0nlYRLOg==", "order"=>{"billing_address_attributes"=>{"firstname"=>"fdsg", "lastname"=>"sdg", "address"=>"xcbxcb", "zipcode"=>"bxcb", "city"=>"xcbxcb", "phone"=>"cxbcx", "country"=>"Afghanistan"}}, "shipping"=>{"use_billing_address"=>"true"}, "commit"=>"Save and continue", "order_id"=>"21", "id"=>"billing"}
[1m[36mOrder Load (0.2ms)[0m [1mSELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1[0m [["id", 21]]
[1m[35m (0.1ms)[0m begin transaction
[1m[36mBillingAddress Load (0.1ms)[0m [1mSELECT "addresses".* FROM "addresses" WHERE "addresses"."type" IN ('BillingAddress') AND "addresses"."order_id" = ? LIMIT 1[0m [["order_id", 21]]
[1m[35mSQL (0.7ms)[0m INSERT INTO "addresses" ("type", "firstname", "lastname", "address", "zipcode", "city", "phone", "country", "order_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["type", "BillingAddress"], ["firstname", "fdsg"], ["lastname", "sdg"], ["address", "xcbxcb"], ["zipcode", "bxcb"], ["city", "xcbxcb"], ["phone", "cxbcx"], ["country", "Afghanistan"], ["order_id", 21], ["created_at", "2016-03-14 18:21:41.896149"], ["updated_at", "2016-03-14 18:21:41.896149"]]
[1m[36m (244.7ms)[0m [1mcommit transaction[0m
[1m[35mShippingAddress Load (0.1ms)[0m SELECT "addresses".* FROM "addresses" WHERE "addresses"."type" IN ('ShippingAddress') AND "addresses"."order_id" = ? LIMIT 1 [["order_id", 21]]
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "addresses" ("type", "order_id", "address", "zipcode", "city", "phone", "country", "created_at", "updated_at", "firstname", "lastname") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["type", "ShippingAddress"], ["order_id", 21], ["address", "xcbxcb"], ["zipcode", "bxcb"], ["city", "xcbxcb"], ["phone", "cxbcx"], ["country", "Afghanistan"], ["created_at", "2016-03-14 18:21:41.896149"], ["updated_at", "2016-03-14 18:21:41.896149"], ["firstname", "fdsg"], ["lastname", "sdg"]]
[1m[36m (47.9ms)[0m [1mcommit transaction[0m
Redirected to http://localhost:3000/simple_cart/orders/21/checkout/delivery
Completed 302 Found in 306ms (ActiveRecord: 293.9ms)
Started GET "/simple_cart/orders/21/checkout/delivery" for 127.0.0.1 at 2016-03-14 20:21:42 +0200
Processing by SimpleCart::CheckoutController#show as HTML
Parameters: {"order_id"=>"21", "id"=>"delivery"}
[1m[35mOrder Load (0.1ms)[0m SELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1 [["id", 21]]
[1m[36mShippingAddress Load (0.2ms)[0m [1mSELECT "addresses".* FROM "addresses" WHERE "addresses"."type" IN ('ShippingAddress') AND "addresses"."order_id" = ? LIMIT 1[0m [["order_id", 21]]
[1m[35mBillingAddress Load (0.2ms)[0m SELECT "addresses".* FROM "addresses" WHERE "addresses"."type" IN ('BillingAddress') AND "addresses"."order_id" = ? LIMIT 1 [["order_id", 21]]
[1m[36mCreditCard Load (0.1ms)[0m [1mSELECT "credit_cards".* FROM "credit_cards" WHERE "credit_cards"."order_id" = ? LIMIT 1[0m [["order_id", 21]]
Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/_progress.html.haml (1.2ms)
[1m[35mDelivery Load (0.2ms)[0m SELECT "deliveries".* FROM "deliveries"
[1m[36mDelivery Load (0.2ms)[0m [1mSELECT "deliveries".* FROM "deliveries" ORDER BY "deliveries"."id" ASC LIMIT 1[0m
[1m[35mCACHE (0.0ms)[0m SELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1 [["id", "21"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1[0m [["id", "21"]]
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/delivery.html.haml within layouts/simple_cart/application (9.0ms)
Completed 200 OK in 35ms (Views: 28.9ms | ActiveRecord: 1.0ms)
Started PATCH "/simple_cart/orders/21/checkout/delivery" for 127.0.0.1 at 2016-03-14 20:21:44 +0200
Processing by SimpleCart::CheckoutController#update as HTML
Parameters: {"utf8"=>"✓", "authenticity_token"=>"i+tEWszwNlCG6NBms28DKXMa/jYP2HnVAsRyoLbHeMm/QfN7g+AiDJmjyIh0WI2aHkcdCx9e60FLp5HMfKFZ2g==", "order"=>{"delivery_id"=>"1"}, "commit"=>"Continue", "order_id"=>"21", "id"=>"delivery"}
[1m[35mOrder Load (0.1ms)[0m SELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1 [["id", 21]]
[1m[36mDelivery Load (0.2ms)[0m [1mSELECT "deliveries".* FROM "deliveries" WHERE "deliveries"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35m (0.1ms)[0m begin transaction
[1m[36mSQL (0.2ms)[0m [1mUPDATE "orders" SET "delivery_id" = ?, "updated_at" = ? WHERE "orders"."id" = ?[0m [["delivery_id", 1], ["updated_at", "2016-03-14 18:21:44.236222"], ["id", 21]]
[1m[35m (229.5ms)[0m commit transaction
Redirected to http://localhost:3000/simple_cart/orders/21/checkout/payment
Completed 302 Found in 237ms (ActiveRecord: 230.1ms)
Started GET "/simple_cart/orders/21/checkout/payment" for 127.0.0.1 at 2016-03-14 20:21:44 +0200
Processing by SimpleCart::CheckoutController#show as HTML
Parameters: {"order_id"=>"21", "id"=>"payment"}
[1m[36mOrder Load (0.1ms)[0m [1mSELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1[0m [["id", 21]]
[1m[35mDelivery Load (0.1ms)[0m SELECT "deliveries".* FROM "deliveries" WHERE "deliveries"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mBillingAddress Load (0.1ms)[0m [1mSELECT "addresses".* FROM "addresses" WHERE "addresses"."type" IN ('BillingAddress') AND "addresses"."order_id" = ? LIMIT 1[0m [["order_id", 21]]
[1m[35mShippingAddress Load (0.1ms)[0m SELECT "addresses".* FROM "addresses" WHERE "addresses"."type" IN ('ShippingAddress') AND "addresses"."order_id" = ? LIMIT 1 [["order_id", 21]]
[1m[36mCreditCard Load (0.1ms)[0m [1mSELECT "credit_cards".* FROM "credit_cards" WHERE "credit_cards"."order_id" = ? LIMIT 1[0m [["order_id", 21]]
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 (14.9ms)
Completed 200 OK in 37ms (Views: 30.4ms | ActiveRecord: 0.6ms)
Started PATCH "/simple_cart/orders/21/checkout/payment" for 127.0.0.1 at 2016-03-14 20:21:54 +0200
Processing by SimpleCart::CheckoutController#update as HTML
Parameters: {"utf8"=>"✓", "authenticity_token"=>"DF2X14JQ8dav8eE7nboZMKVamvzgqz7LSIwy+G4PehQ49yD2zUDlirC6+dVajZeDyAd5wfAtrF8B79GUpGlbBw==", "order"=>{"credit_card_attributes"=>{"number"=>"4444222255552222", "expiration_month"=>"01", "expiration_year"=>"2017", "cvv"=>"123", "firstname"=>"fds", "lastname"=>"gsd"}}, "commit"=>"Continue", "order_id"=>"21", "id"=>"payment"}
[1m[35mOrder Load (0.1ms)[0m SELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1 [["id", 21]]
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
[1m[35mCreditCard Load (0.1ms)[0m SELECT "credit_cards".* FROM "credit_cards" WHERE "credit_cards"."order_id" = ? LIMIT 1 [["order_id", 21]]
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "credit_cards" ("number", "expiration_month", "expiration_year", "cvv", "firstname", "lastname", "order_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["number", "4444222255552222"], ["expiration_month", "01"], ["expiration_year", "2017"], ["cvv", "123"], ["firstname", "fds"], ["lastname", "gsd"], ["order_id", 21], ["created_at", "2016-03-14 18:21:54.449370"], ["updated_at", "2016-03-14 18:21:54.449370"]]
[1m[35m (74.5ms)[0m commit transaction
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
[1m[35m (0.1ms)[0m commit transaction
Redirected to http://localhost:3000/simple_cart/orders/21/checkout/confirm
Completed 302 Found in 85ms (ActiveRecord: 75.4ms)
Started GET "/simple_cart/orders/21/checkout/confirm" for 127.0.0.1 at 2016-03-14 20:21:54 +0200
Processing by SimpleCart::CheckoutController#show as HTML
Parameters: {"order_id"=>"21", "id"=>"confirm"}
[1m[36mOrder Load (0.2ms)[0m [1mSELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1[0m [["id", 21]]
[1m[35mCreditCard Load (0.1ms)[0m SELECT "credit_cards".* FROM "credit_cards" WHERE "credit_cards"."order_id" = ? LIMIT 1 [["order_id", 21]]
[1m[36mBillingAddress Load (0.1ms)[0m [1mSELECT "addresses".* FROM "addresses" WHERE "addresses"."type" IN ('BillingAddress') AND "addresses"."order_id" = ? LIMIT 1[0m [["order_id", 21]]
[1m[35mShippingAddress Load (0.1ms)[0m SELECT "addresses".* FROM "addresses" WHERE "addresses"."type" IN ('ShippingAddress') AND "addresses"."order_id" = ? LIMIT 1 [["order_id", 21]]
Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/_progress.html.haml (1.0ms)
[1m[36mDelivery Load (0.1ms)[0m [1mSELECT "deliveries".* FROM "deliveries" WHERE "deliveries"."id" = ? LIMIT 1[0m [["id", 1]]
Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/_overview.html.haml (7.1ms)
[1m[35mOrderItem Exists (0.2ms)[0m SELECT 1 AS one FROM "order_items" WHERE "order_items"."order_id" = ? LIMIT 1 [["order_id", "21"]]
[1m[36mOrderItem Load (0.1ms)[0m [1mSELECT "order_items".* FROM "order_items" WHERE "order_items"."order_id" = ?[0m [["order_id", "21"]]
[1m[35mBicycle Load (0.1ms)[0m SELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mItem Load (0.1ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", 3]]
[1m[35mItem Load (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 4]]
[1m[36mItem Load (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", 2]]
Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/confirm.html.haml within layouts/simple_cart/application (29.8ms)
Completed 200 OK in 52ms (Views: 46.2ms | ActiveRecord: 1.2ms)
Started PATCH "/simple_cart/orders/21" for 127.0.0.1 at 2016-03-14 20:22:08 +0200
Processing by SimpleCart::OrdersController#update as HTML
Parameters: {"authenticity_token"=>"eZj0YhDHnyHOTLL000Bgo6W8J9CILNaa17gveXTRUYFNMkNDX9eLfdEHqhoUd+4QyOHE7ZiqRA6e28wVvrdwkg==", "id"=>"21"}
[1m[35mOrder Load (0.1ms)[0m SELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1 [["id", 21]]
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
[1m[35mSQL (0.2ms)[0m UPDATE "orders" SET "aasm_state" = ?, "updated_at" = ? WHERE "orders"."id" = ? [["aasm_state", "in_queue"], ["updated_at", "2016-03-14 18:22:08.921195"], ["id", 21]]
[1m[36m (52.9ms)[0m [1mcommit transaction[0m
[1m[35mDelivery Load (0.1ms)[0m SELECT "deliveries".* FROM "deliveries" WHERE "deliveries"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
[1m[35mSQL (0.2ms)[0m UPDATE "orders" SET "total_price" = ?, "updated_at" = ? WHERE "orders"."id" = ? [["total_price", 25501.0], ["updated_at", "2016-03-14 18:22:08.980580"], ["id", 21]]
[1m[36m (103.0ms)[0m [1mcommit transaction[0m
Redirected to http://localhost:3000/simple_cart/orders/21
Completed 302 Found in 167ms (ActiveRecord: 156.7ms)
Started GET "/simple_cart/orders/21" for 127.0.0.1 at 2016-03-14 20:22:09 +0200
Processing by SimpleCart::OrdersController#show as HTML
Parameters: {"id"=>"21"}
[1m[35mOrder Load (0.2ms)[0m SELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1 [["id", 21]]
[1m[36mBillingAddress Load (0.1ms)[0m [1mSELECT "addresses".* FROM "addresses" WHERE "addresses"."type" IN ('BillingAddress') AND "addresses"."order_id" = ? LIMIT 1[0m [["order_id", 21]]
[1m[35mShippingAddress Load (0.2ms)[0m SELECT "addresses".* FROM "addresses" WHERE "addresses"."type" IN ('ShippingAddress') AND "addresses"."order_id" = ? LIMIT 1 [["order_id", 21]]
[1m[36mDelivery Load (0.1ms)[0m [1mSELECT "deliveries".* FROM "deliveries" WHERE "deliveries"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mCreditCard Load (0.1ms)[0m SELECT "credit_cards".* FROM "credit_cards" WHERE "credit_cards"."order_id" = ? LIMIT 1 [["order_id", 21]]
[1m[36mOrderItem Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "order_items" WHERE "order_items"."order_id" = ? LIMIT 1[0m [["order_id", "21"]]
[1m[35mOrderItem Load (0.1ms)[0m SELECT "order_items".* FROM "order_items" WHERE "order_items"."order_id" = ? [["order_id", "21"]]
[1m[36mBicycle Load (0.1ms)[0m [1mSELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mItem Load (0.1ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 3]]
[1m[36mItem Load (0.1ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", 4]]
[1m[35mItem Load (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 2]]
Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/orders/show.html.haml within layouts/simple_cart/application (20.2ms)
Completed 200 OK in 48ms (Views: 45.2ms | ActiveRecord: 1.1ms)
Started GET "/simple_cart/orders" for 127.0.0.1 at 2016-03-14 20:22:26 +0200
Processing by SimpleCart::OrdersController#index as HTML
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "orders"[0m
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "orders" WHERE "orders"."aasm_state" = ? [["aasm_state", "in_progress"]]
[1m[36mOrder Load (0.1ms)[0m [1mSELECT "orders".* FROM "orders" WHERE "orders"."aasm_state" = ? ORDER BY "orders"."id" DESC[0m [["aasm_state", "in_progress"]]
[1m[35mOrderItem Exists (0.1ms)[0m SELECT 1 AS one FROM "order_items" WHERE "order_items"."order_id" = ? LIMIT 1 [["order_id", "20"]]
[1m[36mOrderItem Load (0.1ms)[0m [1mSELECT "order_items".* FROM "order_items" WHERE "order_items"."order_id" = ?[0m [["order_id", "20"]]
[1m[35mBicycle Load (0.0ms)[0m SELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mItem Load (0.1ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", 3]]
[1m[35mItem Load (0.1ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 4]]
[1m[36mOrderItem Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "order_items" WHERE "order_items"."order_id" = ? LIMIT 1[0m [["order_id", "19"]]
[1m[35mOrderItem Load (0.1ms)[0m SELECT "order_items".* FROM "order_items" WHERE "order_items"."order_id" = ? [["order_id", "19"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 3]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", 4]]
[1m[35mOrderItem Exists (0.1ms)[0m SELECT 1 AS one FROM "order_items" WHERE "order_items"."order_id" = ? LIMIT 1 [["order_id", "16"]]
[1m[36mOrderItem Load (0.1ms)[0m [1mSELECT "order_items".* FROM "order_items" WHERE "order_items"."order_id" = ?[0m [["order_id", "16"]]
[1m[35mCACHE (0.0ms)[0m SELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOrderItem Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "order_items" WHERE "order_items"."order_id" = ? LIMIT 1[0m [["order_id", "15"]]
[1m[35mOrderItem Load (0.1ms)[0m SELECT "order_items".* FROM "order_items" WHERE "order_items"."order_id" = ? [["order_id", "15"]]
[1m[36mItem Load (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", 2]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 3]]
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "orders" WHERE "orders"."aasm_state" = ?[0m [["aasm_state", "in_queue"]]
[1m[35mOrder Load (0.1ms)[0m SELECT "orders".* FROM "orders" WHERE "orders"."aasm_state" = ? ORDER BY "orders"."id" DESC [["aasm_state", "in_queue"]]
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "orders" WHERE "orders"."aasm_state" = ?[0m [["aasm_state", "delivered"]]
Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/orders/index.html.haml within layouts/simple_cart/application (26.1ms)
Completed 200 OK in 43ms (Views: 40.0ms | ActiveRecord: 1.5ms)
Started GET "/simple_cart/orders/20/checkout" for 127.0.0.1 at 2016-03-14 20:22:51 +0200
Processing by SimpleCart::CheckoutController#index as HTML
Parameters: {"order_id"=>"20"}
[1m[35mOrder Load (0.1ms)[0m SELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1 [["id", 20]]
Redirected to http://localhost:3000/simple_cart/orders/20/checkout/billing
Completed 302 Found in 2ms (ActiveRecord: 0.1ms)
Started GET "/simple_cart/orders/20/checkout/billing" for 127.0.0.1 at 2016-03-14 20:22:51 +0200
Processing by SimpleCart::CheckoutController#show as HTML
Parameters: {"order_id"=>"20", "id"=>"billing"}
[1m[36mOrder Load (0.1ms)[0m [1mSELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1[0m [["id", 20]]
[1m[35mBillingAddress Load (0.1ms)[0m SELECT "addresses".* FROM "addresses" WHERE "addresses"."type" IN ('BillingAddress') AND "addresses"."order_id" = ? LIMIT 1 [["order_id", 20]]
[1m[36mShippingAddress Load (0.1ms)[0m [1mSELECT "addresses".* FROM "addresses" WHERE "addresses"."type" IN ('ShippingAddress') AND "addresses"."order_id" = ? LIMIT 1[0m [["order_id", 20]]
[1m[35mCreditCard Load (0.1ms)[0m SELECT "credit_cards".* FROM "credit_cards" WHERE "credit_cards"."order_id" = ? LIMIT 1 [["order_id", 20]]
Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/_progress.html.haml (2.6ms)
Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/_address.html.haml (9.4ms)
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 39ms (Views: 33.9ms | ActiveRecord: 0.3ms)
Started GET "/simple_cart/" for 127.0.0.1 at 2016-03-14 20:27:29 +0200
Processing by SimpleCart::CartsController#show as HTML
[1m[36mBicycle Load (0.1ms)[0m [1mSELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mItem Load (0.1ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 3]]
[1m[36mItem Load (0.1ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", 4]]
[1m[35mItem Load (0.1ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 2]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1[0m [["id", "1"]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "3"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "4"]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "2"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1[0m [["id", "1"]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "3"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "4"]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."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 (26.0ms)
Completed 200 OK in 45ms (Views: 42.5ms | ActiveRecord: 1.1ms)
Started GET "/simple_cart/" for 127.0.0.1 at 2016-03-14 20:27:29 +0200
Processing by SimpleCart::CartsController#show as HTML
[1m[36mBicycle Load (0.1ms)[0m [1mSELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mItem Load (0.1ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 3]]
[1m[36mItem Load (0.1ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", 4]]
[1m[35mItem Load (0.1ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 2]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1[0m [["id", "1"]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "3"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "4"]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "2"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1[0m [["id", "1"]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "3"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "4"]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."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 (26.6ms)
Completed 200 OK in 51ms (Views: 50.3ms | ActiveRecord: 0.4ms)
Started POST "/simple_cart/cart/checkout" for 127.0.0.1 at 2016-03-14 20:27:31 +0200
Processing by SimpleCart::CartsController#checkout as HTML
Parameters: {"authenticity_token"=>"Vpa1yuZeflC5u/LdPW8GUSGFr3TvwWhh1eYlNM/2enRiPALrqU5qDKbw6jP6WIjiTNhMSf9H+vWchcZYBZBbZw=="}
Completed 500 Internal Server Error in 17ms (ActiveRecord: 0.0ms)
LoadError (Unable to autoload constant Order, expected /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/models/order.rb to define it):
activesupport (4.2.5.2) lib/active_support/dependencies.rb:495:in `load_missing_constant'
activesupport (4.2.5.2) lib/active_support/dependencies.rb:184:in `const_missing'
activesupport (4.2.5.2) lib/active_support/dependencies.rb:526: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/models/cart.rb:39:in `build_order'
/home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/controllers/simple_cart/carts_controller.rb:9:in `checkout'
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 (8.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.4ms)
Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (1.0ms)
Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/rescues/diagnostics.html.erb within rescues/layout (20.8ms)
Started POST "/simple_cart/cart/checkout" for 127.0.0.1 at 2016-03-14 20:27:54 +0200
[1m[36mActiveRecord::SchemaMigration Load (0.2ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
Processing by SimpleCart::CartsController#checkout as HTML
Parameters: {"authenticity_token"=>"Vpa1yuZeflC5u/LdPW8GUSGFr3TvwWhh1eYlNM/2enRiPALrqU5qDKbw6jP6WIjiTNhMSf9H+vWchcZYBZBbZw=="}
Completed 500 Internal Server Error in 26ms (ActiveRecord: 0.0ms)
LoadError (Unable to autoload constant Order, expected /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/models/order.rb to define it):
activesupport (4.2.5.2) lib/active_support/dependencies.rb:495:in `load_missing_constant'
activesupport (4.2.5.2) lib/active_support/dependencies.rb:184:in `const_missing'
activesupport (4.2.5.2) lib/active_support/dependencies.rb:526: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/models/cart.rb:39:in `build_order'
/home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/controllers/simple_cart/carts_controller.rb:9:in `checkout'
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.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.2ms)
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.1ms)
Started GET "/simple_cart/cart/checkout" for 127.0.0.1 at 2016-03-14 20:28:24 +0200
ActionController::RoutingError (No route matches [GET] "/simple_cart/cart/checkout"):
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.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/_trace.html.erb (1.1ms)
Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/routes/_route.html.erb (1.2ms)
Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/routes/_route.html.erb (0.7ms)
Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/routes/_table.html.erb (2.2ms)
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/routing_error.html.erb within rescues/layout (29.8ms)
Started GET "/simple_cart/cart/checkout" for 127.0.0.1 at 2016-03-14 20:28:26 +0200
ActionController::RoutingError (No route matches [GET] "/simple_cart/cart/checkout"):
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.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/_trace.html.erb (1.1ms)
Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/routes/_route.html.erb (1.3ms)
Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/routes/_route.html.erb (0.7ms)
Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/routes/_table.html.erb (1.6ms)
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/routing_error.html.erb within rescues/layout (29.5ms)
Started GET "/simple_cart/cart/" for 127.0.0.1 at 2016-03-14 20:28:27 +0200
Processing by SimpleCart::CartsController#show as HTML
[1m[35mBicycle Load (0.2ms)[0m SELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mItem Load (0.2ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", 3]]
[1m[35mItem Load (0.1ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 4]]
[1m[36mItem Load (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", 2]]
[1m[35mCACHE (0.0ms)[0m SELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1 [["id", "1"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "3"]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "4"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "2"]]
[1m[35mCACHE (0.0ms)[0m SELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1 [["id", "1"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "3"]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "4"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "2"]]
Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml within layouts/simple_cart/application (49.6ms)
Completed 200 OK in 256ms (Views: 252.0ms | ActiveRecord: 1.5ms)
Started POST "/simple_cart/cart/checkout" for 127.0.0.1 at 2016-03-14 20:28:29 +0200
Processing by SimpleCart::CartsController#checkout as HTML
Parameters: {"authenticity_token"=>"NNccP7a8j2W8ZQ6n8IyIGVdo/vIX9B3zXV0AsdbsOGgAfase+aybOaMuFkk3uwaqOjUdzwdyj2cUPuPdHIoZew=="}
[1m[35mBicycle Load (0.1ms)[0m SELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mItem Load (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", 3]]
[1m[35mItem Load (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", 4]]
[1m[36mItem Load (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", 2]]
[1m[35mCACHE (0.0ms)[0m SELECT "bicycles".* FROM "bicycles" WHERE "bicycles"."id" = ? LIMIT 1 [["id", "1"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "3"]]
[1m[35mCACHE (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1 [["id", "4"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? LIMIT 1[0m [["id", "2"]]
[1m[35m (0.1ms)[0m begin transaction
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "orders" ("total_price", "completed_date", "aasm_state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["total_price", 25481.0], ["completed_date", "2016-03-14"], ["aasm_state", "in_progress"], ["created_at", "2016-03-14 18:28:29.514395"], ["updated_at", "2016-03-14 18:28:29.514395"]]
[1m[35mSQL (0.2ms)[0m INSERT INTO "order_items" ("price", "qty", "itemable_id", "itemable_type", "order_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["price", 22.0], ["qty", 2], ["itemable_id", 1], ["itemable_type", "Bicycle"], ["order_id", "22"], ["created_at", "2016-03-14 18:28:29.516771"], ["updated_at", "2016-03-14 18:28:29.516771"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "order_items" ("price", "qty", "itemable_id", "itemable_type", "order_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["price", 25.0], ["qty", 1], ["itemable_id", 3], ["itemable_type", "Item"], ["order_id", "22"], ["created_at", "2016-03-14 18:28:29.519066"], ["updated_at", "2016-03-14 18:28:29.519066"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "order_items" ("price", "qty", "itemable_id", "itemable_type", "order_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["price", 0.0], ["qty", 3], ["itemable_id", 4], ["itemable_type", "Item"], ["order_id", "22"], ["created_at", "2016-03-14 18:28:29.520542"], ["updated_at", "2016-03-14 18:28:29.520542"]]
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "order_items" ("price", "qty", "itemable_id", "itemable_type", "order_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["price", 25412.0], ["qty", 1], ["itemable_id", 2], ["itemable_type", "Item"], ["order_id", "22"], ["created_at", "2016-03-14 18:28:29.522302"], ["updated_at", "2016-03-14 18:28:29.522302"]]
[1m[35m (325.6ms)[0m commit transaction
Redirected to http://localhost:3000/simple_cart/orders/22/checkout
Completed 302 Found in 404ms (ActiveRecord: 327.5ms)
Started GET "/simple_cart/orders/22/checkout" for 127.0.0.1 at 2016-03-14 20:28:29 +0200
Processing by SimpleCart::CheckoutController#index as HTML
Parameters: {"order_id"=>"22"}
Completed 500 Internal Server Error in 3ms (ActiveRecord: 0.3ms)
ActiveRecord::StatementInvalid (Could not find table 'simple_cart_orders'):
activerecord (4.2.5.2) lib/active_record/connection_adapters/sqlite3_adapter.rb:511:in `table_structure'
activerecord (4.2.5.2) lib/active_record/connection_adapters/sqlite3_adapter.rb:385:in `columns'
activerecord (4.2.5.2) lib/active_record/connection_adapters/schema_cache.rb:43:in `columns'
activerecord (4.2.5.2) lib/active_record/attributes.rb:93:in `columns'
activerecord (4.2.5.2) lib/active_record/attributes.rb:98:in `columns_hash'
activerecord (4.2.5.2) lib/active_record/core.rb:135:in `find'
/home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/controllers/simple_cart/checkout_controller.rb:46:in `set_order'
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: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 (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 (17.2ms)
Started GET "/simple_cart/orders/22/checkout" for 127.0.0.1 at 2016-03-14 20:28:40 +0200
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
Processing by SimpleCart::CheckoutController#index as HTML
Parameters: {"order_id"=>"22"}
[1m[35mOrder Load (0.2ms)[0m SELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1 [["id", 22]]
Redirected to http://localhost:3000/simple_cart/orders/22/checkout/billing
Completed 302 Found in 38ms (ActiveRecord: 0.5ms)
Started GET "/simple_cart/orders/22/checkout/billing" for 127.0.0.1 at 2016-03-14 20:28:40 +0200
Processing by SimpleCart::CheckoutController#show as HTML
Parameters: {"order_id"=>"22", "id"=>"billing"}
[1m[36mOrder Load (0.1ms)[0m [1mSELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1[0m [["id", 22]]
[1m[35mBillingAddress Load (0.2ms)[0m SELECT "addresses".* FROM "addresses" WHERE "addresses"."type" IN ('BillingAddress') AND "addresses"."order_id" = ? LIMIT 1 [["order_id", 22]]
[1m[36mShippingAddress Load (0.2ms)[0m [1mSELECT "addresses".* FROM "addresses" WHERE "addresses"."type" IN ('ShippingAddress') AND "addresses"."order_id" = ? LIMIT 1[0m [["order_id", 22]]
[1m[35mCreditCard Load (0.1ms)[0m SELECT "credit_cards".* FROM "credit_cards" WHERE "credit_cards"."order_id" = ? LIMIT 1 [["order_id", 22]]
Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/_progress.html.haml (2.6ms)
Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/_address.html.haml (17.5ms)
Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/billing.html.haml within layouts/simple_cart/application (31.1ms)
Completed 200 OK in 282ms (Views: 238.1ms | ActiveRecord: 1.2ms)
Started GET "/simple_cart/orders/22/checkout/billing" for 127.0.0.1 at 2016-03-14 20:30:31 +0200
Processing by SimpleCart::CheckoutController#show as HTML
Parameters: {"order_id"=>"22", "id"=>"billing"}
Completed 500 Internal Server Error in 23ms (ActiveRecord: 0.0ms)
LoadError (Unable to autoload constant Order, expected /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/models/order.rb to define it):
activesupport (4.2.5.2) lib/active_support/dependencies.rb:495:in `load_missing_constant'
activesupport (4.2.5.2) lib/active_support/dependencies.rb:184:in `const_missing'
activesupport (4.2.5.2) lib/active_support/dependencies.rb:526:in `load_missing_constant'
activesupport (4.2.5.2) lib/active_support/dependencies.rb:184:in `const_missing'
activesupport (4.2.5.2) lib/active_support/dependencies.rb:526: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/checkout_controller.rb:46:in `set_order'
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: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 (4.5ms)
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 (17.2ms)
Started GET "/simple_cart/orders/22/checkout/billing" for 127.0.0.1 at 2016-03-14 20:31:31 +0200
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
Processing by SimpleCart::CheckoutController#show as HTML
Parameters: {"order_id"=>"22", "id"=>"billing"}
Completed 500 Internal Server Error in 26ms (ActiveRecord: 0.3ms)
ActiveRecord::StatementInvalid (Could not find table 'simple_cart_orders'):
activerecord (4.2.5.2) lib/active_record/connection_adapters/sqlite3_adapter.rb:511:in `table_structure'
activerecord (4.2.5.2) lib/active_record/connection_adapters/sqlite3_adapter.rb:385:in `columns'
activerecord (4.2.5.2) lib/active_record/connection_adapters/schema_cache.rb:43:in `columns'
activerecord (4.2.5.2) lib/active_record/attributes.rb:93:in `columns'
activerecord (4.2.5.2) lib/active_record/attributes.rb:98:in `columns_hash'
activerecord (4.2.5.2) lib/active_record/core.rb:135:in `find'
/home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/controllers/simple_cart/checkout_controller.rb:46:in `set_order'
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: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 (4.5ms)
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 (1.2ms)
Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/rescues/diagnostics.html.erb within rescues/layout (18.0ms)
Started GET "/simple_cart/orders/22/checkout/" for 127.0.0.1 at 2016-03-14 20:31:39 +0200
[1m[36mActiveRecord::SchemaMigration Load (0.2ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
Processing by SimpleCart::CheckoutController#index as HTML
Parameters: {"order_id"=>"22"}
Completed 500 Internal Server Error in 33ms (ActiveRecord: 0.3ms)
ActiveRecord::StatementInvalid (Could not find table 'simple_cart_orders'):
activerecord (4.2.5.2) lib/active_record/connection_adapters/sqlite3_adapter.rb:511:in `table_structure'
activerecord (4.2.5.2) lib/active_record/connection_adapters/sqlite3_adapter.rb:385:in `columns'
activerecord (4.2.5.2) lib/active_record/connection_adapters/schema_cache.rb:43:in `columns'
activerecord (4.2.5.2) lib/active_record/attributes.rb:93:in `columns'
activerecord (4.2.5.2) lib/active_record/attributes.rb:98:in `columns_hash'
activerecord (4.2.5.2) lib/active_record/core.rb:135:in `find'
/home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/controllers/simple_cart/checkout_controller.rb:46:in `set_order'
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: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 (5.1ms)
Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (3.1ms)
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.2ms)
Started GET "/simple_cart/orders/22/checkout/" for 127.0.0.1 at 2016-03-14 20:32:21 +0200
Processing by SimpleCart::CheckoutController#index as HTML
Parameters: {"order_id"=>"22"}
Completed 500 Internal Server Error in 1ms (ActiveRecord: 0.1ms)
ActiveRecord::StatementInvalid (Could not find table 'simple_cart_orders'):
activerecord (4.2.5.2) lib/active_record/connection_adapters/sqlite3_adapter.rb:511:in `table_structure'
activerecord (4.2.5.2) lib/active_record/connection_adapters/sqlite3_adapter.rb:385:in `columns'
activerecord (4.2.5.2) lib/active_record/connection_adapters/schema_cache.rb:43:in `columns'
activerecord (4.2.5.2) lib/active_record/attributes.rb:93:in `columns'
activerecord (4.2.5.2) lib/active_record/attributes.rb:98:in `columns_hash'
activerecord (4.2.5.2) lib/active_record/core.rb:135:in `find'
/home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/controllers/simple_cart/checkout_controller.rb:46:in `set_order'
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: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 (4.7ms)
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 (16.3ms)
[1m[36m (68.9ms)[0m [1mCREATE TABLE "addresses" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "address" varchar, "zipcode" varchar, "city" varchar, "phone" varchar, "country" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "order_id" integer, "firstname" varchar, "lastname" varchar, "type" varchar) [0m
[1m[35m (0.1ms)[0m select sqlite_version(*)
[1m[36m (64.9ms)[0m [1mCREATE INDEX "index_addresses_on_order_id" ON "addresses" ("order_id")[0m
[1m[35m (51.2ms)[0m CREATE TABLE "bicycles" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "price" decimal, "qty" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
[1m[36m (51.4ms)[0m [1mCREATE TABLE "coupons" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "code" varchar, "discount" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m
[1m[35m (160.4ms)[0m CREATE TABLE "credit_cards" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "number" varchar, "cvv" varchar, "expiration_year" varchar, "expiration_month" varchar, "firstname" varchar, "lastname" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "user_id" integer, "order_id" integer)
[1m[36m (50.7ms)[0m [1mCREATE INDEX "index_credit_cards_on_order_id" ON "credit_cards" ("order_id")[0m
[1m[35m (105.7ms)[0m CREATE TABLE "deliveries" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "company" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "costs" decimal DEFAULT 0.0)
[1m[36m (51.0ms)[0m [1mCREATE TABLE "items" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "price" decimal, "qty" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m
[1m[35m (76.6ms)[0m CREATE TABLE "order_items" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "price" decimal, "qty" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "itemable_id" integer, "itemable_type" varchar, "order_id" varchar)
[1m[36m (161.2ms)[0m [1mCREATE INDEX "index_order_items_on_itemable_id" ON "order_items" ("itemable_id")[0m
[1m[35m (0.2ms)[0m SELECT sql
FROM sqlite_master
WHERE name='index_order_items_on_itemable_id' AND type='index'
UNION ALL
SELECT sql
FROM sqlite_temp_master
WHERE name='index_order_items_on_itemable_id' AND type='index'
[1m[36m (50.1ms)[0m [1mCREATE INDEX "index_order_items_on_order_id" ON "order_items" ("order_id")[0m
[1m[35m (68.7ms)[0m CREATE TABLE "orders" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "total_price" decimal(10,2), "completed_date" date, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "delivery_id" integer, "aasm_state" varchar)
[1m[36m (195.7ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar NOT NULL) [0m
[1m[35m (51.7ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
[1m[36m (0.4ms)[0m [1mSELECT version FROM "schema_migrations"[0m
[1m[35m (67.9ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20160312151409')
[1m[36m (68.3ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20160310231528')[0m
[1m[35m (77.7ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20160312142752')
[1m[36m (51.7ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20160310215421')[0m
[1m[35m (51.6ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20160312124602')
[1m[36m (152.6ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20160312124601')[0m
[1m[35m (51.8ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20160312145636')
[1m[36m (51.7ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20160312151033')[0m
[1m[35m (51.6ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20160307150139')
[1m[36m (146.2ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20160312142751')[0m
[1m[35m (88.3ms)[0m CREATE TABLE "addresses" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "address" varchar, "zipcode" varchar, "city" varchar, "phone" varchar, "country" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "order_id" integer, "firstname" varchar, "lastname" varchar, "type" varchar)
[1m[36m (0.1ms)[0m [1mselect sqlite_version(*)[0m
[1m[35m (50.6ms)[0m CREATE INDEX "index_addresses_on_order_id" ON "addresses" ("order_id")
[1m[36m (68.5ms)[0m [1mCREATE TABLE "bicycles" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "price" decimal, "qty" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m
[1m[35m (159.7ms)[0m CREATE TABLE "coupons" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "code" varchar, "discount" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
[1m[36m (50.7ms)[0m [1mCREATE TABLE "credit_cards" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "number" varchar, "cvv" varchar, "expiration_year" varchar, "expiration_month" varchar, "firstname" varchar, "lastname" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "user_id" integer, "order_id" integer) [0m
[1m[35m (68.2ms)[0m CREATE INDEX "index_credit_cards_on_order_id" ON "credit_cards" ("order_id")
[1m[36m (59.5ms)[0m [1mCREATE TABLE "deliveries" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "company" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "costs" decimal DEFAULT 0.0) [0m
[1m[35m (93.7ms)[0m CREATE TABLE "items" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "price" decimal, "qty" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
[1m[36m (51.0ms)[0m [1mCREATE TABLE "order_items" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "price" decimal, "qty" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "itemable_id" integer, "itemable_type" varchar, "order_id" varchar) [0m
[1m[35m (68.0ms)[0m CREATE INDEX "index_order_items_on_itemable_id" ON "order_items" ("itemable_id")
[1m[36m (0.1ms)[0m [1m SELECT sql
FROM sqlite_master
WHERE name='index_order_items_on_itemable_id' AND type='index'
UNION ALL
SELECT sql
FROM sqlite_temp_master
WHERE name='index_order_items_on_itemable_id' AND type='index'
[0m
[1m[35m (143.3ms)[0m CREATE INDEX "index_order_items_on_order_id" ON "order_items" ("order_id")
[1m[36m (51.9ms)[0m [1mCREATE TABLE "orders" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "total_price" decimal(10,2), "completed_date" date, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "delivery_id" integer, "aasm_state" varchar) [0m
[1m[35m (51.5ms)[0m CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)
[1m[36m (76.3ms)[0m [1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
[1m[35m (1.1ms)[0m SELECT version FROM "schema_migrations"
[1m[36m (119.6ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20160312151409')[0m
[1m[35m (51.7ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20160310231528')
[1m[36m (202.8ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20160312142752')[0m
[1m[35m (51.5ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20160310215421')
[1m[36m (51.7ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20160312124602')[0m
[1m[35m (51.5ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20160312124601')
[1m[36m (186.3ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20160312145636')[0m
[1m[35m (51.5ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20160312151033')
[1m[36m (68.6ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20160307150139')[0m
[1m[35m (51.5ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20160312142751')
[1m[36mActiveRecord::SchemaMigration Load (0.2ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
[1m[36m (64.7ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar NOT NULL) [0m
[1m[35m (0.1ms)[0m select sqlite_version(*)
[1m[36m (68.2ms)[0m [1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
[1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
Migrating to CreateItems (20160307150139)
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
[1m[35m (0.5ms)[0m CREATE TABLE "items" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "price" decimal, "qty" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20160307150139"]]
[1m[35m (122.9ms)[0m commit transaction
Migrating to CreateBicycles (20160310215421)
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
[1m[35m (0.3ms)[0m CREATE TABLE "bicycles" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "price" decimal, "qty" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20160310215421"]]
[1m[35m (283.6ms)[0m commit transaction
Migrating to CreateCoupons (20160310231528)
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
[1m[35m (0.3ms)[0m CREATE TABLE "coupons" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "code" varchar, "discount" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20160310231528"]]
[1m[35m (82.2ms)[0m commit transaction
Migrating to CreateOrderItems (20160312124601)
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
[1m[35m (0.2ms)[0m CREATE TABLE "order_items" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "price" decimal, "qty" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "itemable_id" integer, "itemable_type" varchar, "order_id" varchar)
[1m[36m (0.1ms)[0m [1mCREATE INDEX "index_order_items_on_itemable_id" ON "order_items" ("itemable_id")[0m
[1m[35m (0.1ms)[0m SELECT sql
FROM sqlite_master
WHERE name='index_order_items_on_itemable_id' AND type='index'
UNION ALL
SELECT sql
FROM sqlite_temp_master
WHERE name='index_order_items_on_itemable_id' AND type='index'
[1m[36m (0.1ms)[0m [1mCREATE INDEX "index_order_items_on_order_id" ON "order_items" ("order_id")[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20160312124601"]]
[1m[36m (82.2ms)[0m [1mcommit transaction[0m
Migrating to CreateOrder (20160312124602)
[1m[35m (0.1ms)[0m begin transaction
[1m[36m (0.4ms)[0m [1mCREATE TABLE "orders" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "total_price" decimal(10,2), "completed_date" date, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "shipping_id" integer, "aasm_state" varchar) [0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20160312124602"]]
[1m[36m (87.0ms)[0m [1mcommit transaction[0m
Migrating to CreateOrderItem (20160312142751)
[1m[35m (0.1ms)[0m begin transaction
[1m[36m (0.4ms)[0m [1mDROP TABLE "order_items"[0m
[1m[35m (0.2ms)[0m CREATE TABLE "order_items" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "price" decimal, "qty" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "itemable_id" integer, "itemable_type" varchar, "order_id" varchar)
[1m[36m (0.2ms)[0m [1mCREATE INDEX "index_order_items_on_itemable_id" ON "order_items" ("itemable_id")[0m
[1m[35m (0.1ms)[0m SELECT sql
FROM sqlite_master
WHERE name='index_order_items_on_itemable_id' AND type='index'
UNION ALL
SELECT sql
FROM sqlite_temp_master
WHERE name='index_order_items_on_itemable_id' AND type='index'
[1m[36m (0.2ms)[0m [1mCREATE INDEX "index_order_items_on_order_id" ON "order_items" ("order_id")[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20160312142751"]]
[1m[36m (95.7ms)[0m [1mcommit transaction[0m
Migrating to Address (20160312142752)
[1m[35m (0.1ms)[0m begin transaction
[1m[36m (0.2ms)[0m [1mCREATE TABLE "addresses" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "address" varchar, "zipcode" varchar, "city" varchar, "phone" varchar, "country" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "order_id" integer, "firstname" varchar, "lastname" varchar, "type" varchar) [0m
[1m[35m (0.1ms)[0m CREATE INDEX "index_addresses_on_order_id" ON "addresses" ("order_id")
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20160312142752"]]
[1m[35m (86.9ms)[0m commit transaction
Migrating to Delivery (20160312145636)
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
[1m[35m (0.2ms)[0m CREATE TABLE "deliveries" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "company" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "costs" decimal DEFAULT 0.0)
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20160312145636"]]
[1m[35m (106.8ms)[0m commit transaction
Migrating to Fix (20160312151033)
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
[1m[35m (0.5ms)[0m CREATE TEMPORARY TABLE "aorders" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "total_price" decimal(10,2), "completed_date" date, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "delivery_id" integer, "aasm_state" varchar)
[1m[36m (0.1ms)[0m [1mSELECT * FROM "orders"[0m
[1m[35m (0.3ms)[0m DROP TABLE "orders"
[1m[36m (0.3ms)[0m [1mCREATE TABLE "orders" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "total_price" decimal(10,2), "completed_date" date, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "delivery_id" integer, "aasm_state" varchar) [0m
[1m[35m (0.1ms)[0m SELECT * FROM "aorders"
[1m[36m (0.3ms)[0m [1mDROP TABLE "aorders"[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20160312151033"]]
[1m[36m (75.5ms)[0m [1mcommit transaction[0m
Migrating to AddCreditCard (20160312151409)
[1m[35m (0.1ms)[0m begin transaction
[1m[36m (0.2ms)[0m [1mCREATE TABLE "credit_cards" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "number" varchar, "cvv" varchar, "expiration_year" varchar, "expiration_month" varchar, "firstname" varchar, "lastname" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "user_id" integer, "order_id" integer) [0m
[1m[35m (0.2ms)[0m CREATE INDEX "index_credit_cards_on_order_id" ON "credit_cards" ("order_id")
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20160312151409"]]
[1m[35m (80.6ms)[0m commit transaction
Migrating to CreateSimpleCartOrderItem (20160314184235)
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
[1m[35m (0.4ms)[0m 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)
[1m[36m (0.2ms)[0m [1mCREATE INDEX "index_simple_cart_order_items_on_itemable_id" ON "simple_cart_order_items" ("itemable_id")[0m
[1m[35m (0.2ms)[0m 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'
[1m[36m (0.2ms)[0m [1mCREATE INDEX "index_simple_cart_order_items_on_order_id" ON "simple_cart_order_items" ("order_id")[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20160314184235"]]
[1m[36m (94.4ms)[0m [1mcommit transaction[0m
Migrating to CreateSimpleCartOrder (20160314184236)
[1m[35m (0.1ms)[0m begin transaction
[1m[36m (0.3ms)[0m [1mCREATE 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) [0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20160314184236"]]
[1m[36m (80.5ms)[0m [1mcommit transaction[0m
Migrating to CreateSimpleCartAddress (20160314184237)
[1m[35m (0.1ms)[0m begin transaction
[1m[36m (0.2ms)[0m [1mCREATE 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) [0m
[1m[35m (0.1ms)[0m CREATE INDEX "index_addresses_on_order_id" ON "simple_cart_addresses" ("order_id")
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[36m (62.7ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar NOT NULL) [0m
[1m[35m (0.1ms)[0m select sqlite_version(*)
[1m[36m (67.9ms)[0m [1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
[1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
Migrating to CreateSimpleCartOrderItem (20160314184432)
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
[1m[35m (0.5ms)[0m 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)
[1m[36m (0.2ms)[0m [1mCREATE INDEX "index_simple_cart_order_items_on_itemable_id" ON "simple_cart_order_items" ("itemable_id")[0m
[1m[35m (0.1ms)[0m 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'
[1m[36m (0.2ms)[0m [1mCREATE INDEX "index_simple_cart_order_items_on_order_id" ON "simple_cart_order_items" ("order_id")[0m
[1m[35mSQL (0.3ms)[0m INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20160314184432"]]
[1m[36m (106.2ms)[0m [1mcommit transaction[0m
Migrating to CreateSimpleCartOrder (20160314184433)
[1m[35m (0.1ms)[0m begin transaction
[1m[36m (0.2ms)[0m [1mCREATE 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) [0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20160314184433"]]
[1m[36m (49.9ms)[0m [1mcommit transaction[0m
Migrating to CreateSimpleCartAddress (20160314184434)
[1m[35m (0.1ms)[0m begin transaction
[1m[36m (0.4ms)[0m [1mCREATE 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) [0m
[1m[35m (0.2ms)[0m CREATE INDEX "index_simple_cart_addresses_on_order_id" ON "simple_cart_addresses" ("order_id")
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20160314184434"]]
[1m[35m (110.2ms)[0m commit transaction
Migrating to CreateSimpleCartDelivery (20160314184435)
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
[1m[35m (0.3ms)[0m 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)
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20160314184435"]]
[1m[35m (90.7ms)[0m commit transaction
Migrating to AddCreditCard (20160314184436)
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
Migrating to CreateSimpleCartCreditCard (20160314184436)
[1m[35m (0.1ms)[0m begin transaction
[1m[36m (0.2ms)[0m [1mCREATE 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) [0m
[1m[35m (0.0ms)[0m select sqlite_version(*)
[1m[36m (0.1ms)[0m [1mCREATE INDEX "index_simple_cart_credit_cards_on_order_id" ON "simple_cart_credit_cards" ("order_id")[0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20160314184436"]]
[1m[36m (67.5ms)[0m [1mcommit transaction[0m
Migrating to CreateSimpleCartAsdas (20160314184437)
[1m[35m (0.1ms)[0m begin transaction
[1m[36m (0.3ms)[0m [1mCREATE TABLE "simple_cart_asdas" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "asg" varchar, "asgf" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20160314184437"]]
[1m[36m (50.7ms)[0m [1mcommit transaction[0m
[1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
[1m[36m (0.1ms)[0m [1m 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'
[0m
[1m[35m (0.1ms)[0m 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'
[1m[36m (0.1ms)[0m [1m 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'
[0m
[1m[35m (0.1ms)[0m 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'
Started GET "/items" for 127.0.0.1 at 2016-03-14 20:45:53 +0200
[1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
Processing by ItemsController#index as HTML
[1m[36mItem Load (0.2ms)[0m [1mSELECT "items".* FROM "items"[0m
Rendered items/index.html.erb (1.4ms)
Completed 500 Internal Server Error in 6ms (ActiveRecord: 0.2ms)
ActionView::Template::Error (SQLite3::SQLException: no such table: items: SELECT "items".* FROM "items"):
13:
14:
15:
16: <% @items.each do |item| %>
17:
18: <%= item.name %> |
19: <%= item.price %> |
app/views/items/index.html.erb:16:in `_app_views_items_index_html_erb__2721162110122551462_38745420'
Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/rescues/_source.erb (6.6ms)
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.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 (20.7ms)
Started GET "/items" for 127.0.0.1 at 2016-03-14 20:45:53 +0200
Processing by ItemsController#index as HTML
[1m[35mItem Load (0.2ms)[0m SELECT "items".* FROM "items"
Rendered items/index.html.erb (0.8ms)
Completed 500 Internal Server Error in 3ms (ActiveRecord: 0.2ms)
ActionView::Template::Error (SQLite3::SQLException: no such table: items: SELECT "items".* FROM "items"):
13:
14:
15:
16: <% @items.each do |item| %>
17:
18: <%= item.name %> |
19: <%= item.price %> |
app/views/items/index.html.erb:16:in `_app_views_items_index_html_erb__2721162110122551462_38745420'
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 (2.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 (0.8ms)
Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/rescues/template_error.html.erb within rescues/layout (19.4ms)
Started GET "/things" for 127.0.0.1 at 2016-03-14 20:47:54 +0200
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
ActiveRecord::PendingMigrationError (
Migrations are pending. To resolve this issue, run:
bin/rake db:migrate RAILS_ENV=development
):
activerecord (4.2.5.2) lib/active_record/migration.rb:392:in `check_pending!'
activerecord (4.2.5.2) lib/active_record/migration.rb:373: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 (6.1ms)
Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (1.2ms)
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.5ms)
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
Migrating to CreateThings (20160314184745)
[1m[35m (0.1ms)[0m begin transaction
[1m[36m (0.3ms)[0m [1mCREATE TABLE "things" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "price" decimal, "qty" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20160314184745"]]
[1m[36m (79.9ms)[0m [1mcommit transaction[0m
[1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
[1m[36m (0.1ms)[0m [1m 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'
[0m
[1m[35m (0.1ms)[0m 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'
[1m[36m (0.1ms)[0m [1m 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'
[0m
[1m[35m (0.1ms)[0m 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'
Started GET "/things" for 127.0.0.1 at 2016-03-14 20:48:01 +0200
[1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
Processing by ThingsController#index as HTML
[1m[36mThing Load (0.1ms)[0m [1mSELECT "things".* FROM "things"[0m
Rendered things/index.html.erb within layouts/application (1.8ms)
Completed 200 OK in 299ms (Views: 296.0ms | ActiveRecord: 0.2ms)
Started GET "/assets/bicycles.self-e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855.css?body=1" for 127.0.0.1 at 2016-03-14 20:48:01 +0200
Started GET "/assets/items.self-b60acab5af8d245ed2b3012f77d11d8d207d8eada27756badaf4ef05770d60f6.css?body=1" for 127.0.0.1 at 2016-03-14 20:48:01 +0200
Started GET "/assets/scaffold.self-83b741db49389dc7cfdf85bf7537a0219cce48e085c4116afc83d55c9af47c78.css?body=1" for 127.0.0.1 at 2016-03-14 20:48:01 +0200
Started GET "/assets/scaffolds.self-a292cc26f60e7f7bad7cfbbbb7e5b67ad3b7fb5a457ace846c62d539e4c7518c.css?body=1" for 127.0.0.1 at 2016-03-14 20:48:01 +0200
Started GET "/assets/things.self-e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855.css?body=1" for 127.0.0.1 at 2016-03-14 20:48:01 +0200
Started GET "/assets/bicycles.self-19a187bec6cdb96d6de80a61c16c857c613536adf9138476bd367db38d282635.js?body=1" for 127.0.0.1 at 2016-03-14 20:48:01 +0200
Started GET "/assets/application.self-8f06a73c35179188914ab50e057157639fce1401c1cdca640ac9cec33746fc5b.js?body=1" for 127.0.0.1 at 2016-03-14 20:48:01 +0200
Started GET "/assets/items.self-19a187bec6cdb96d6de80a61c16c857c613536adf9138476bd367db38d282635.js?body=1" for 127.0.0.1 at 2016-03-14 20:48:01 +0200
Started GET "/assets/things.self-19a187bec6cdb96d6de80a61c16c857c613536adf9138476bd367db38d282635.js?body=1" for 127.0.0.1 at 2016-03-14 20:48:01 +0200
Started GET "/things/new" for 127.0.0.1 at 2016-03-14 20:48:02 +0200
Processing by ThingsController#new as HTML
Rendered things/_form.html.erb (30.2ms)
Rendered things/new.html.erb within layouts/application (37.7ms)
Completed 200 OK in 87ms (Views: 74.9ms | ActiveRecord: 0.3ms)
Started POST "/things" for 127.0.0.1 at 2016-03-14 20:48:05 +0200
Processing by ThingsController#create as HTML
Parameters: {"utf8"=>"✓", "authenticity_token"=>"iI/M3fdlg7mQ+5Z4LuJAAvaCd0CPMsPd4P3JAvu1yBW8JXv8uHWX5Y+wjpbp1c6xm9+UfZ+0UUmpnipuMdPpBg==", "thing"=>{"name"=>"225", "price"=>"52251", "qty"=>"1"}, "commit"=>"Create Thing"}
[1m[35m (0.1ms)[0m begin transaction
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "things" ("name", "price", "qty", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["name", "225"], ["price", 52251.0], ["qty", 1], ["created_at", "2016-03-14 18:48:05.862197"], ["updated_at", "2016-03-14 18:48:05.862197"]]
[1m[35m (55.4ms)[0m commit transaction
Redirected to http://localhost:3000/things/1
Completed 302 Found in 63ms (ActiveRecord: 55.8ms)
Started GET "/things/1" for 127.0.0.1 at 2016-03-14 20:48:05 +0200
Processing by ThingsController#show as HTML
Parameters: {"id"=>"1"}
[1m[36mThing Load (0.2ms)[0m [1mSELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1[0m [["id", 1]]
Rendered things/show.html.erb within layouts/application (2.2ms)
Completed 200 OK in 33ms (Views: 25.7ms | ActiveRecord: 0.2ms)
Started GET "/things/1" for 127.0.0.1 at 2016-03-14 20:48:26 +0200
Processing by ThingsController#show as HTML
Parameters: {"id"=>"1"}
[1m[35mThing Load (0.1ms)[0m 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 (12.2ms)
Rendered things/show.html.erb within layouts/application (14.2ms)
Completed 200 OK in 27ms (Views: 25.3ms | ActiveRecord: 0.1ms)
Started POST "/simple_cart/cart/1" for 127.0.0.1 at 2016-03-14 20:48:29 +0200
Processing by SimpleCart::CartsController#add as HTML
Parameters: {"utf8"=>"✓", "authenticity_token"=>"o56Bi/F7i6SAnENGy9/RMGTMyTo19juCvcXz1Puq3FuXNDaqvmuf+J/XW6gM6F+DCZEqByVwqRb0phC4Mcz9SA==", "qty"=>"5", "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-14 20:48:29 +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 (7.2ms)
Completed 500 Internal Server Error in 13ms (ActiveRecord: 0.0ms)
ActionView::Template::Error (uninitialized constant Bicycle):
9: .thumbnail
10: .caption-full
11: = form_tag url_for(:controller => 'carts', :action => 'update'), method: :put do
12: - if @cart.items.nil?
13: empty
14: - else
15: %table.table.table-hover
activesupport (4.2.5.2) lib/active_support/inflector/methods.rb:261:in `const_get'
activesupport (4.2.5.2) lib/active_support/inflector/methods.rb:261:in `block in constantize'
activesupport (4.2.5.2) lib/active_support/inflector/methods.rb:259:in `each'
activesupport (4.2.5.2) lib/active_support/inflector/methods.rb:259:in `inject'
activesupport (4.2.5.2) lib/active_support/inflector/methods.rb:259:in `constantize'
activesupport (4.2.5.2) lib/active_support/core_ext/string/inflections.rb:66:in `constantize'
/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:12:in `block in __home_leksster__uby__uby_arage__mazon_simple_cart_app_views_simple_cart_carts_show_html_haml__3057589455894867635_69863731654280'
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__3057589455894867635_69863731654280'
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 (8.4ms)
Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (4.0ms)
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 (23.8ms)
Started GET "/simple_cart/cart" for 127.0.0.1 at 2016-03-14 20:48:48 +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 (10.1ms)
Completed 200 OK in 69ms (Views: 68.0ms | ActiveRecord: 0.0ms)
Started GET "/assets/simple_cart/application.self-2f12d59583468bdcee27c6046669f62a778d265fc91cf385e5d36e9189ac822e.css?body=1" for 127.0.0.1 at 2016-03-14 20:48:48 +0200
Started GET "/assets/jquery.self-660adc51e0224b731d29f575a6f1ec167ba08ad06ed5deca4f1e8654c135bf4c.js?body=1" for 127.0.0.1 at 2016-03-14 20:48:48 +0200
Started GET "/assets/turbolinks.self-c37727e9bd6b2735da5c311aa83fead54ed0be6cc8bd9a65309e9c5abe2cbfff.js?body=1" for 127.0.0.1 at 2016-03-14 20:48:48 +0200
Started GET "/assets/simple_cart/application.self-3b8dabdc891efe46b9a144b400ad69e37d7e5876bdc39dee783419a69d7ca819.js?body=1" for 127.0.0.1 at 2016-03-14 20:48:48 +0200
Started GET "/assets/jquery_ujs.self-e87806d0cf4489aeb1bb7288016024e8de67fd18db693fe026fe3907581e53cd.js?body=1" for 127.0.0.1 at 2016-03-14 20:48:48 +0200
Started GET "/things" for 127.0.0.1 at 2016-03-14 20:48:54 +0200
Processing by ThingsController#index as HTML
[1m[36mThing Load (0.3ms)[0m [1mSELECT "things".* FROM "things"[0m
Rendered things/index.html.erb within layouts/application (3.1ms)
Completed 200 OK in 19ms (Views: 17.8ms | ActiveRecord: 0.3ms)
Started GET "/things/1" for 127.0.0.1 at 2016-03-14 20:48:56 +0200
Processing by ThingsController#show as HTML
Parameters: {"id"=>"1"}
[1m[35mThing Load (0.1ms)[0m 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.2ms)
Completed 200 OK in 27ms (Views: 25.1ms | ActiveRecord: 0.1ms)
Started POST "/simple_cart/cart/1" for 127.0.0.1 at 2016-03-14 20:48:58 +0200
Processing by SimpleCart::CartsController#add as HTML
Parameters: {"utf8"=>"✓", "authenticity_token"=>"ARVWwRmJjimeSRxiUTfu4s/M5L4fBjKChE4A+T6NprhpTxMDcrGO9JJC297M0fwl9VDBNqsJRDgVDtP3wXxpsQ==", "qty"=>"2", "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-14 20:48:58 +0200
Processing by SimpleCart::CartsController#show as HTML
[1m[36mThing Load (0.1ms)[0m [1mSELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mCACHE (0.0ms)[0m SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", "1"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1[0m [["id", "1"]]
Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml within layouts/simple_cart/application (10.0ms)
Completed 200 OK in 26ms (Views: 25.4ms | ActiveRecord: 0.1ms)
Started POST "/simple_cart/cart/checkout" for 127.0.0.1 at 2016-03-14 20:49:03 +0200
Processing by SimpleCart::CartsController#checkout as HTML
Parameters: {"authenticity_token"=>"yOjmeECxx8RAukH/95ez/IGKZtPo+MamHPYlf/tnAp+gsqO6K4nHGUyxhkNqcaE7uxZDW1z3sByNtvZxBJbNlg=="}
[1m[35mThing Load (0.1ms)[0m SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1[0m [["id", "1"]]
[1m[35m (0.1ms)[0m begin transaction
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "simple_cart_orders" ("total_price", "completed_date", "aasm_state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["total_price", 104502.0], ["completed_date", "2016-03-14"], ["aasm_state", "in_progress"], ["created_at", "2016-03-14 18:49:03.241718"], ["updated_at", "2016-03-14 18:49:03.241718"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "simple_cart_order_items" ("price", "qty", "itemable_id", "itemable_type", "order_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["price", 52251.0], ["qty", 2], ["itemable_id", 1], ["itemable_type", "Thing"], ["order_id", "1"], ["created_at", "2016-03-14 18:49:03.243099"], ["updated_at", "2016-03-14 18:49:03.243099"]]
[1m[36m (68.6ms)[0m [1mcommit transaction[0m
Redirected to http://localhost:3000/simple_cart/orders/1/checkout
Completed 302 Found in 112ms (ActiveRecord: 69.7ms)
Started GET "/simple_cart/orders/1/checkout" for 127.0.0.1 at 2016-03-14 20:49:03 +0200
Processing by SimpleCart::CheckoutController#index as HTML
Parameters: {"order_id"=>"1"}
[1m[35mSimpleCart::Order Load (0.4ms)[0m SELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1 [["id", 1]]
Redirected to http://localhost:3000/simple_cart/orders/1/checkout/billing
Completed 302 Found in 3ms (ActiveRecord: 0.4ms)
Started GET "/simple_cart/orders/1/checkout/billing" for 127.0.0.1 at 2016-03-14 20:49:03 +0200
Processing by SimpleCart::CheckoutController#show as HTML
Parameters: {"order_id"=>"1", "id"=>"billing"}
[1m[36mSimpleCart::Order Load (0.1ms)[0m [1mSELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mSimpleCart::BillingAddress Load (0.3ms)[0m SELECT "simple_cart_addresses".* FROM "simple_cart_addresses" WHERE "simple_cart_addresses"."type" IN ('SimpleCart::BillingAddress') AND "simple_cart_addresses"."order_id" = ? LIMIT 1 [["order_id", 1]]
[1m[36mSimpleCart::ShippingAddress Load (0.3ms)[0m [1mSELECT "simple_cart_addresses".* FROM "simple_cart_addresses" WHERE "simple_cart_addresses"."type" IN ('SimpleCart::ShippingAddress') AND "simple_cart_addresses"."order_id" = ? LIMIT 1[0m [["order_id", 1]]
[1m[35mSimpleCart::CreditCard Load (0.1ms)[0m SELECT "simple_cart_credit_cards".* FROM "simple_cart_credit_cards" WHERE "simple_cart_credit_cards"."order_id" = ? LIMIT 1 [["order_id", 1]]
Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/_progress.html.haml (2.1ms)
Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/_address.html.haml (22.6ms)
Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/billing.html.haml within layouts/simple_cart/application (29.9ms)
Completed 500 Internal Server Error in 74ms (ActiveRecord: 1.3ms)
ActionView::Template::Error (uninitialized constant ActionView::CompiledTemplates::Address):
18: = ff.text_field :phone, class: 'form-control'
19: .form-group
20: = ff.label :country
21: = ff.collection_select :country, Address.countries, :to_s, :to_s, {}, {class: 'form-control'}
/home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/_address.html.haml:21:in `__home_leksster__uby__uby_arage__mazon_simple_cart_app_views_simple_cart_checkout__address_html_haml___2651792928338168151_69863760223060'
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/partial_renderer.rb:339:in `render_partial'
actionview (4.2.5.2) lib/action_view/renderer/partial_renderer.rb:310:in `block in render'
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/partial_renderer.rb:309:in `render'
actionview (4.2.5.2) lib/action_view/renderer/renderer.rb:51:in `render_partial'
actionview (4.2.5.2) lib/action_view/helpers/rendering_helper.rb:35:in `render'
haml (4.0.7) lib/haml/helpers/action_view_mods.rb:10:in `block in render_with_haml'
haml (4.0.7) lib/haml/helpers.rb:89:in `non_haml'
haml (4.0.7) lib/haml/helpers/action_view_mods.rb:10:in `render_with_haml'
/home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/billing.html.haml:18:in `block (2 levels) in __home_leksster__uby__uby_arage__mazon_simple_cart_app_views_simple_cart_checkout_billing_html_haml___2553148978678224937_69863758962220'
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_helper.rb:1925:in `block in fields_for_nested_model'
actionview (4.2.5.2) lib/action_view/helpers/capture_helper.rb:38:in `block in capture'
actionview (4.2.5.2) lib/action_view/helpers/capture_helper.rb:202:in `with_output_buffer'
haml (4.0.7) lib/haml/helpers/action_view_xss_mods.rb:5:in `with_output_buffer_with_haml_xss'
actionview (4.2.5.2) lib/action_view/helpers/capture_helper.rb:38:in `capture'
haml (4.0.7) lib/haml/helpers/action_view_mods.rb:52:in `capture_with_haml'
actionview (4.2.5.2) lib/action_view/helpers/form_helper.rb:714:in `fields_for'
actionview (4.2.5.2) lib/action_view/helpers/form_helper.rb:1924:in `fields_for_nested_model'
actionview (4.2.5.2) lib/action_view/helpers/form_helper.rb:1914:in `fields_for_with_nested_attributes'
actionview (4.2.5.2) lib/action_view/helpers/form_helper.rb:1582:in `fields_for'
/home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/billing.html.haml:17:in `block in __home_leksster__uby__uby_arage__mazon_simple_cart_app_views_simple_cart_checkout_billing_html_haml___2553148978678224937_69863758962220'
haml (4.0.7) lib/haml/helpers/action_view_mods.rb:137:in `call'
haml (4.0.7) lib/haml/helpers/action_view_mods.rb:137:in `block (2 levels) in form_for_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:137:in `block in form_for_with_haml'
actionview (4.2.5.2) lib/action_view/helpers/capture_helper.rb:38:in `block in capture'
actionview (4.2.5.2) lib/action_view/helpers/capture_helper.rb:202:in `with_output_buffer'
haml (4.0.7) lib/haml/helpers/action_view_xss_mods.rb:5:in `with_output_buffer_with_haml_xss'
actionview (4.2.5.2) lib/action_view/helpers/capture_helper.rb:38:in `capture'
haml (4.0.7) lib/haml/helpers/action_view_mods.rb:52:in `capture_with_haml'
actionview (4.2.5.2) lib/action_view/helpers/form_helper.rb:444:in `form_for'
haml (4.0.7) lib/haml/helpers/action_view_mods.rb:139:in `form_for_with_haml'
haml (4.0.7) lib/haml/helpers/action_view_xss_mods.rb:28:in `form_for_with_haml_xss'
/home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/billing.html.haml:6:in `__home_leksster__uby__uby_arage__mazon_simple_cart_app_views_simple_cart_checkout_billing_html_haml___2553148978678224937_69863758962220'
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'
wicked (1.2.1) lib/wicked/controller/concerns/render_redirect.rb:29:in `render_step'
wicked (1.2.1) lib/wicked/controller/concerns/render_redirect.rb:11:in `render_wizard'
/home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/controllers/simple_cart/checkout_controller.rb:23:in `show'
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: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.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 (3.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.8ms)
Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/rescues/template_error.html.erb within rescues/layout (23.4ms)
Started GET "/simple_cart/orders/1/checkout/billing" for 127.0.0.1 at 2016-03-14 20:50:08 +0200
Processing by SimpleCart::CheckoutController#show as HTML
Parameters: {"order_id"=>"1", "id"=>"billing"}
[1m[36mSimpleCart::Order Load (0.2ms)[0m [1mSELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mSimpleCart::BillingAddress Load (0.1ms)[0m SELECT "simple_cart_addresses".* FROM "simple_cart_addresses" WHERE "simple_cart_addresses"."type" IN ('SimpleCart::BillingAddress') AND "simple_cart_addresses"."order_id" = ? LIMIT 1 [["order_id", 1]]
[1m[36mSimpleCart::ShippingAddress Load (0.1ms)[0m [1mSELECT "simple_cart_addresses".* FROM "simple_cart_addresses" WHERE "simple_cart_addresses"."type" IN ('SimpleCart::ShippingAddress') AND "simple_cart_addresses"."order_id" = ? LIMIT 1[0m [["order_id", 1]]
[1m[35mSimpleCart::CreditCard Load (0.1ms)[0m SELECT "simple_cart_credit_cards".* FROM "simple_cart_credit_cards" WHERE "simple_cart_credit_cards"."order_id" = ? LIMIT 1 [["order_id", 1]]
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 (11.6ms)
[1m[36mCACHE (0.0ms)[0m [1mSELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1[0m [["id", "1"]]
[1m[35mCACHE (0.0ms)[0m SELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1 [["id", "1"]]
Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/_summary.html.haml (6.2ms)
Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/billing.html.haml within layouts/simple_cart/application (31.8ms)
Completed 200 OK in 59ms (Views: 50.2ms | ActiveRecord: 0.6ms)
Started PATCH "/simple_cart/orders/1/checkout/billing" for 127.0.0.1 at 2016-03-14 20:50:16 +0200
Processing by SimpleCart::CheckoutController#update as HTML
Parameters: {"utf8"=>"✓", "authenticity_token"=>"tgmWsIJjrsvAmJxHrbIXdkM07B+Q7nLZlNSGgF+oGjfeU9Ny6VuuFsyTW/swVAWxeajJlyThBGMFlFWOoFnVPg==", "order"=>{"billing_address_attributes"=>{"firstname"=>"fsa", "lastname"=>"gsgsa", "address"=>"sasgaasg", "zipcode"=>"saggsasga", "city"=>"gasgsa", "phone"=>"251", "country"=>"Afghanistan"}}, "shipping"=>{"use_billing_address"=>"true"}, "commit"=>"Save and continue", "order_id"=>"1", "id"=>"billing"}
[1m[36mSimpleCart::Order Load (0.1ms)[0m [1mSELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35m (0.1ms)[0m begin transaction
[1m[36mSimpleCart::BillingAddress Load (0.1ms)[0m [1mSELECT "simple_cart_addresses".* FROM "simple_cart_addresses" WHERE "simple_cart_addresses"."type" IN ('SimpleCart::BillingAddress') AND "simple_cart_addresses"."order_id" = ? LIMIT 1[0m [["order_id", 1]]
[1m[35mSQL (0.3ms)[0m INSERT INTO "simple_cart_addresses" ("type", "firstname", "lastname", "address", "zipcode", "city", "phone", "country", "order_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["type", "SimpleCart::BillingAddress"], ["firstname", "fsa"], ["lastname", "gsgsa"], ["address", "sasgaasg"], ["zipcode", "saggsasga"], ["city", "gasgsa"], ["phone", "251"], ["country", "Afghanistan"], ["order_id", 1], ["created_at", "2016-03-14 18:50:16.089017"], ["updated_at", "2016-03-14 18:50:16.089017"]]
[1m[36m (59.3ms)[0m [1mcommit transaction[0m
[1m[35mSimpleCart::ShippingAddress Load (0.1ms)[0m SELECT "simple_cart_addresses".* FROM "simple_cart_addresses" WHERE "simple_cart_addresses"."type" IN ('SimpleCart::ShippingAddress') AND "simple_cart_addresses"."order_id" = ? LIMIT 1 [["order_id", 1]]
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
[1m[35mSQL (0.3ms)[0m INSERT INTO "simple_cart_addresses" ("type", "order_id", "address", "zipcode", "city", "phone", "country", "created_at", "updated_at", "firstname", "lastname") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["type", "SimpleCart::ShippingAddress"], ["order_id", 1], ["address", "sasgaasg"], ["zipcode", "saggsasga"], ["city", "gasgsa"], ["phone", "251"], ["country", "Afghanistan"], ["created_at", "2016-03-14 18:50:16.089017"], ["updated_at", "2016-03-14 18:50:16.089017"], ["firstname", "fsa"], ["lastname", "gsgsa"]]
[1m[36m (102.5ms)[0m [1mcommit transaction[0m
Redirected to http://localhost:3000/simple_cart/orders/1/checkout/delivery
Completed 302 Found in 176ms (ActiveRecord: 163.0ms)
Started GET "/simple_cart/orders/1/checkout/delivery" for 127.0.0.1 at 2016-03-14 20:50:16 +0200
Processing by SimpleCart::CheckoutController#show as HTML
Parameters: {"order_id"=>"1", "id"=>"delivery"}
[1m[35mSimpleCart::Order Load (0.1ms)[0m SELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mSimpleCart::ShippingAddress Load (0.2ms)[0m [1mSELECT "simple_cart_addresses".* FROM "simple_cart_addresses" WHERE "simple_cart_addresses"."type" IN ('SimpleCart::ShippingAddress') AND "simple_cart_addresses"."order_id" = ? LIMIT 1[0m [["order_id", 1]]
[1m[35mSimpleCart::BillingAddress Load (0.2ms)[0m SELECT "simple_cart_addresses".* FROM "simple_cart_addresses" WHERE "simple_cart_addresses"."type" IN ('SimpleCart::BillingAddress') AND "simple_cart_addresses"."order_id" = ? LIMIT 1 [["order_id", 1]]
[1m[36mSimpleCart::CreditCard Load (0.1ms)[0m [1mSELECT "simple_cart_credit_cards".* FROM "simple_cart_credit_cards" WHERE "simple_cart_credit_cards"."order_id" = ? LIMIT 1[0m [["order_id", 1]]
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/delivery.html.haml within layouts/simple_cart/application (10.2ms)
Completed 500 Internal Server Error in 18ms (ActiveRecord: 0.6ms)
ActionView::Template::Error (uninitialized constant ActionView::CompiledTemplates::Delivery):
33: %li= msg
34:
35: .form-group
36: - Delivery.all.each do |company|
37: .radio
38: %label
39: = f.radio_button :delivery_id, company.id, :checked => company == Delivery.first || @order.delivery == company
/home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/delivery.html.haml:36:in `block in __home_leksster__uby__uby_arage__mazon_simple_cart_app_views_simple_cart_checkout_delivery_html_haml___1082272580694243827_69863731271320'
haml (4.0.7) lib/haml/helpers/action_view_mods.rb:137:in `call'
haml (4.0.7) lib/haml/helpers/action_view_mods.rb:137:in `block (2 levels) in form_for_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:137:in `block in form_for_with_haml'
actionview (4.2.5.2) lib/action_view/helpers/capture_helper.rb:38:in `block in capture'
actionview (4.2.5.2) lib/action_view/helpers/capture_helper.rb:202:in `with_output_buffer'
haml (4.0.7) lib/haml/helpers/action_view_xss_mods.rb:5:in `with_output_buffer_with_haml_xss'
actionview (4.2.5.2) lib/action_view/helpers/capture_helper.rb:38:in `capture'
haml (4.0.7) lib/haml/helpers/action_view_mods.rb:52:in `capture_with_haml'
actionview (4.2.5.2) lib/action_view/helpers/form_helper.rb:444:in `form_for'
haml (4.0.7) lib/haml/helpers/action_view_mods.rb:139:in `form_for_with_haml'
haml (4.0.7) lib/haml/helpers/action_view_xss_mods.rb:28:in `form_for_with_haml_xss'
/home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/delivery.html.haml:27:in `__home_leksster__uby__uby_arage__mazon_simple_cart_app_views_simple_cart_checkout_delivery_html_haml___1082272580694243827_69863731271320'
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'
wicked (1.2.1) lib/wicked/controller/concerns/render_redirect.rb:29:in `render_step'
wicked (1.2.1) lib/wicked/controller/concerns/render_redirect.rb:11:in `render_wizard'
/home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/controllers/simple_cart/checkout_controller.rb:23:in `show'
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: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.4ms)
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 (1.0ms)
Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/rescues/template_error.html.erb within rescues/layout (22.8ms)
Started GET "/simple_cart/orders/1/checkout/delivery" for 127.0.0.1 at 2016-03-14 20:50:33 +0200
Processing by SimpleCart::CheckoutController#show as HTML
Parameters: {"order_id"=>"1", "id"=>"delivery"}
[1m[35mSimpleCart::Order Load (0.1ms)[0m SELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mSimpleCart::ShippingAddress Load (0.1ms)[0m [1mSELECT "simple_cart_addresses".* FROM "simple_cart_addresses" WHERE "simple_cart_addresses"."type" IN ('SimpleCart::ShippingAddress') AND "simple_cart_addresses"."order_id" = ? LIMIT 1[0m [["order_id", 1]]
[1m[35mSimpleCart::BillingAddress Load (0.1ms)[0m SELECT "simple_cart_addresses".* FROM "simple_cart_addresses" WHERE "simple_cart_addresses"."type" IN ('SimpleCart::BillingAddress') AND "simple_cart_addresses"."order_id" = ? LIMIT 1 [["order_id", 1]]
[1m[36mSimpleCart::CreditCard Load (0.1ms)[0m [1mSELECT "simple_cart_credit_cards".* FROM "simple_cart_credit_cards" WHERE "simple_cart_credit_cards"."order_id" = ? LIMIT 1[0m [["order_id", 1]]
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/delivery.html.haml within layouts/simple_cart/application (9.6ms)
Completed 500 Internal Server Error in 16ms (ActiveRecord: 0.4ms)
ActionView::Template::Error (uninitialized constant ActionView::CompiledTemplates::Delivery):
33: %li= msg
34:
35: .form-group
36: - Delivery.all.each do |company|
37: .radio
38: %label
39: = f.radio_button :delivery_id, company.id, :checked => company == SimpleCart::Delivery.first || @order.delivery == company
/home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/delivery.html.haml:36:in `block in __home_leksster__uby__uby_arage__mazon_simple_cart_app_views_simple_cart_checkout_delivery_html_haml___1082272580694243827_69863754924540'
haml (4.0.7) lib/haml/helpers/action_view_mods.rb:137:in `call'
haml (4.0.7) lib/haml/helpers/action_view_mods.rb:137:in `block (2 levels) in form_for_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:137:in `block in form_for_with_haml'
actionview (4.2.5.2) lib/action_view/helpers/capture_helper.rb:38:in `block in capture'
actionview (4.2.5.2) lib/action_view/helpers/capture_helper.rb:202:in `with_output_buffer'
haml (4.0.7) lib/haml/helpers/action_view_xss_mods.rb:5:in `with_output_buffer_with_haml_xss'
actionview (4.2.5.2) lib/action_view/helpers/capture_helper.rb:38:in `capture'
haml (4.0.7) lib/haml/helpers/action_view_mods.rb:52:in `capture_with_haml'
actionview (4.2.5.2) lib/action_view/helpers/form_helper.rb:444:in `form_for'
haml (4.0.7) lib/haml/helpers/action_view_mods.rb:139:in `form_for_with_haml'
haml (4.0.7) lib/haml/helpers/action_view_xss_mods.rb:28:in `form_for_with_haml_xss'
/home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/delivery.html.haml:27:in `__home_leksster__uby__uby_arage__mazon_simple_cart_app_views_simple_cart_checkout_delivery_html_haml___1082272580694243827_69863754924540'
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'
wicked (1.2.1) lib/wicked/controller/concerns/render_redirect.rb:29:in `render_step'
wicked (1.2.1) lib/wicked/controller/concerns/render_redirect.rb:11:in `render_wizard'
/home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/controllers/simple_cart/checkout_controller.rb:23:in `show'
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: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.3ms)
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.8ms)
Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/rescues/template_error.html.erb within rescues/layout (20.1ms)
Started GET "/simple_cart/orders/1/checkout/delivery" for 127.0.0.1 at 2016-03-14 20:50:45 +0200
Processing by SimpleCart::CheckoutController#show as HTML
Parameters: {"order_id"=>"1", "id"=>"delivery"}
[1m[35mSimpleCart::Order Load (0.2ms)[0m SELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mSimpleCart::ShippingAddress Load (0.3ms)[0m [1mSELECT "simple_cart_addresses".* FROM "simple_cart_addresses" WHERE "simple_cart_addresses"."type" IN ('SimpleCart::ShippingAddress') AND "simple_cart_addresses"."order_id" = ? LIMIT 1[0m [["order_id", 1]]
[1m[35mSimpleCart::BillingAddress Load (0.3ms)[0m SELECT "simple_cart_addresses".* FROM "simple_cart_addresses" WHERE "simple_cart_addresses"."type" IN ('SimpleCart::BillingAddress') AND "simple_cart_addresses"."order_id" = ? LIMIT 1 [["order_id", 1]]
[1m[36mSimpleCart::CreditCard Load (0.2ms)[0m [1mSELECT "simple_cart_credit_cards".* FROM "simple_cart_credit_cards" WHERE "simple_cart_credit_cards"."order_id" = ? LIMIT 1[0m [["order_id", 1]]
Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/_progress.html.haml (1.1ms)
[1m[35mSimpleCart::Delivery Load (0.2ms)[0m SELECT "simple_cart_deliveries".* FROM "simple_cart_deliveries"
[1m[36mCACHE (0.0ms)[0m [1mSELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1[0m [["id", "1"]]
[1m[35mCACHE (0.0ms)[0m SELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1 [["id", "1"]]
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 (9.9ms)
Completed 200 OK in 39ms (Views: 28.3ms | ActiveRecord: 1.2ms)
[1m[35m (0.1ms)[0m begin transaction
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "simple_cart_deliveries" ("company", "costs", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["company", "test"], ["costs", 2.0], ["created_at", "2016-03-14 18:51:18.885627"], ["updated_at", "2016-03-14 18:51:18.885627"]]
[1m[35m (66.3ms)[0m commit transaction
Started GET "/simple_cart/orders/1/checkout/delivery" for 127.0.0.1 at 2016-03-14 20:51:20 +0200
Processing by SimpleCart::CheckoutController#show as HTML
Parameters: {"order_id"=>"1", "id"=>"delivery"}
[1m[36mSimpleCart::Order Load (0.1ms)[0m [1mSELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mSimpleCart::ShippingAddress Load (0.1ms)[0m SELECT "simple_cart_addresses".* FROM "simple_cart_addresses" WHERE "simple_cart_addresses"."type" IN ('SimpleCart::ShippingAddress') AND "simple_cart_addresses"."order_id" = ? LIMIT 1 [["order_id", 1]]
[1m[36mSimpleCart::BillingAddress Load (0.1ms)[0m [1mSELECT "simple_cart_addresses".* FROM "simple_cart_addresses" WHERE "simple_cart_addresses"."type" IN ('SimpleCart::BillingAddress') AND "simple_cart_addresses"."order_id" = ? LIMIT 1[0m [["order_id", 1]]
[1m[35mSimpleCart::CreditCard Load (0.1ms)[0m SELECT "simple_cart_credit_cards".* FROM "simple_cart_credit_cards" WHERE "simple_cart_credit_cards"."order_id" = ? LIMIT 1 [["order_id", 1]]
Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/_progress.html.haml (2.0ms)
[1m[36mSimpleCart::Delivery Load (0.3ms)[0m [1mSELECT "simple_cart_deliveries".* FROM "simple_cart_deliveries"[0m
[1m[35mSimpleCart::Delivery Load (0.2ms)[0m SELECT "simple_cart_deliveries".* FROM "simple_cart_deliveries" ORDER BY "simple_cart_deliveries"."id" ASC LIMIT 1
[1m[36mCACHE (0.0ms)[0m [1mSELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1[0m [["id", "1"]]
[1m[35mCACHE (0.0ms)[0m SELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1 [["id", "1"]]
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/delivery.html.haml within layouts/simple_cart/application (14.0ms)
Completed 200 OK in 35ms (Views: 29.7ms | ActiveRecord: 1.2ms)
Started PATCH "/simple_cart/orders/1/checkout/delivery" for 127.0.0.1 at 2016-03-14 20:51:23 +0200
Processing by SimpleCart::CheckoutController#update as HTML
Parameters: {"utf8"=>"✓", "authenticity_token"=>"N45a3T5UB+2PTAqWJGJuLOR88LsFlNEaVytUsPg2Gy1f1B8fVWwHMINHzSq5hHzr3uDVM7Gbp6DGa4e+B8fUJA==", "order"=>{"delivery_id"=>"1"}, "commit"=>"Continue", "order_id"=>"1", "id"=>"delivery"}
[1m[36mSimpleCart::Order Load (0.3ms)[0m [1mSELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mSimpleCart::Delivery Load (0.3ms)[0m SELECT "simple_cart_deliveries".* FROM "simple_cart_deliveries" WHERE "simple_cart_deliveries"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
[1m[35mSQL (0.5ms)[0m UPDATE "simple_cart_orders" SET "delivery_id" = ?, "updated_at" = ? WHERE "simple_cart_orders"."id" = ? [["delivery_id", 1], ["updated_at", "2016-03-14 18:51:23.140432"], ["id", 1]]
[1m[36m (49.4ms)[0m [1mcommit transaction[0m
Redirected to http://localhost:3000/simple_cart/orders/1/checkout/payment
Completed 302 Found in 61ms (ActiveRecord: 50.5ms)
Started GET "/simple_cart/orders/1/checkout/payment" for 127.0.0.1 at 2016-03-14 20:51:23 +0200
Processing by SimpleCart::CheckoutController#show as HTML
Parameters: {"order_id"=>"1", "id"=>"payment"}
[1m[35mSimpleCart::Order Load (0.1ms)[0m SELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mSimpleCart::Delivery Load (0.1ms)[0m [1mSELECT "simple_cart_deliveries".* FROM "simple_cart_deliveries" WHERE "simple_cart_deliveries"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mSimpleCart::BillingAddress Load (0.2ms)[0m SELECT "simple_cart_addresses".* FROM "simple_cart_addresses" WHERE "simple_cart_addresses"."type" IN ('SimpleCart::BillingAddress') AND "simple_cart_addresses"."order_id" = ? LIMIT 1 [["order_id", 1]]
[1m[36mSimpleCart::ShippingAddress Load (0.2ms)[0m [1mSELECT "simple_cart_addresses".* FROM "simple_cart_addresses" WHERE "simple_cart_addresses"."type" IN ('SimpleCart::ShippingAddress') AND "simple_cart_addresses"."order_id" = ? LIMIT 1[0m [["order_id", 1]]
[1m[35mSimpleCart::CreditCard Load (0.1ms)[0m SELECT "simple_cart_credit_cards".* FROM "simple_cart_credit_cards" WHERE "simple_cart_credit_cards"."order_id" = ? LIMIT 1 [["order_id", 1]]
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 (11.8ms)
Completed 500 Internal Server Error in 20ms (ActiveRecord: 0.7ms)
ActionView::Template::Error (uninitialized constant ActionView::CompiledTemplates::CreditCard):
39: .row
40: .col-xs-6
41: = ff.label :expiration_month
42: = ff.collection_select :expiration_month, CreditCard.months, :to_s, :to_s, {}, :class => 'form-control'
43: .col-xs-6
44: = ff.label :expiration_year
45: = ff.collection_select :expiration_year, CreditCard.years, :to_s, :to_s, {}, :class => 'form-control'
/home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/payment.html.haml:42:in `block (2 levels) in __home_leksster__uby__uby_arage__mazon_simple_cart_app_views_simple_cart_checkout_payment_html_haml__3787437729566437831_69863719788700'
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_helper.rb:1925:in `block in fields_for_nested_model'
actionview (4.2.5.2) lib/action_view/helpers/capture_helper.rb:38:in `block in capture'
actionview (4.2.5.2) lib/action_view/helpers/capture_helper.rb:202:in `with_output_buffer'
haml (4.0.7) lib/haml/helpers/action_view_xss_mods.rb:5:in `with_output_buffer_with_haml_xss'
actionview (4.2.5.2) lib/action_view/helpers/capture_helper.rb:38:in `capture'
haml (4.0.7) lib/haml/helpers/action_view_mods.rb:52:in `capture_with_haml'
actionview (4.2.5.2) lib/action_view/helpers/form_helper.rb:714:in `fields_for'
actionview (4.2.5.2) lib/action_view/helpers/form_helper.rb:1924:in `fields_for_nested_model'
actionview (4.2.5.2) lib/action_view/helpers/form_helper.rb:1914:in `fields_for_with_nested_attributes'
actionview (4.2.5.2) lib/action_view/helpers/form_helper.rb:1582:in `fields_for'
/home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/payment.html.haml:34:in `block in __home_leksster__uby__uby_arage__mazon_simple_cart_app_views_simple_cart_checkout_payment_html_haml__3787437729566437831_69863719788700'
haml (4.0.7) lib/haml/helpers/action_view_mods.rb:137:in `call'
haml (4.0.7) lib/haml/helpers/action_view_mods.rb:137:in `block (2 levels) in form_for_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:137:in `block in form_for_with_haml'
actionview (4.2.5.2) lib/action_view/helpers/capture_helper.rb:38:in `block in capture'
actionview (4.2.5.2) lib/action_view/helpers/capture_helper.rb:202:in `with_output_buffer'
haml (4.0.7) lib/haml/helpers/action_view_xss_mods.rb:5:in `with_output_buffer_with_haml_xss'
actionview (4.2.5.2) lib/action_view/helpers/capture_helper.rb:38:in `capture'
haml (4.0.7) lib/haml/helpers/action_view_mods.rb:52:in `capture_with_haml'
actionview (4.2.5.2) lib/action_view/helpers/form_helper.rb:444:in `form_for'
haml (4.0.7) lib/haml/helpers/action_view_mods.rb:139:in `form_for_with_haml'
haml (4.0.7) lib/haml/helpers/action_view_xss_mods.rb:28:in `form_for_with_haml_xss'
/home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/payment.html.haml:27:in `__home_leksster__uby__uby_arage__mazon_simple_cart_app_views_simple_cart_checkout_payment_html_haml__3787437729566437831_69863719788700'
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'
wicked (1.2.1) lib/wicked/controller/concerns/render_redirect.rb:29:in `render_step'
wicked (1.2.1) lib/wicked/controller/concerns/render_redirect.rb:11:in `render_wizard'
/home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/controllers/simple_cart/checkout_controller.rb:23:in `show'
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: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.4ms)
Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (3.1ms)
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 (23.5ms)
Started GET "/simple_cart/orders/1/checkout/payment" for 127.0.0.1 at 2016-03-14 20:51:40 +0200
Processing by SimpleCart::CheckoutController#show as HTML
Parameters: {"order_id"=>"1", "id"=>"payment"}
[1m[36mSimpleCart::Order Load (0.3ms)[0m [1mSELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mSimpleCart::Delivery Load (0.1ms)[0m SELECT "simple_cart_deliveries".* FROM "simple_cart_deliveries" WHERE "simple_cart_deliveries"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mSimpleCart::BillingAddress Load (0.2ms)[0m [1mSELECT "simple_cart_addresses".* FROM "simple_cart_addresses" WHERE "simple_cart_addresses"."type" IN ('SimpleCart::BillingAddress') AND "simple_cart_addresses"."order_id" = ? LIMIT 1[0m [["order_id", 1]]
[1m[35mSimpleCart::ShippingAddress Load (0.2ms)[0m SELECT "simple_cart_addresses".* FROM "simple_cart_addresses" WHERE "simple_cart_addresses"."type" IN ('SimpleCart::ShippingAddress') AND "simple_cart_addresses"."order_id" = ? LIMIT 1 [["order_id", 1]]
[1m[36mSimpleCart::CreditCard Load (0.1ms)[0m [1mSELECT "simple_cart_credit_cards".* FROM "simple_cart_credit_cards" WHERE "simple_cart_credit_cards"."order_id" = ? LIMIT 1[0m [["order_id", 1]]
Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/_progress.html.haml (1.9ms)
Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/payment.html.haml within layouts/simple_cart/application (17.3ms)
Completed 200 OK in 42ms (Views: 35.4ms | ActiveRecord: 0.8ms)
Started PATCH "/simple_cart/orders/1/checkout/payment" for 127.0.0.1 at 2016-03-14 20:51:47 +0200
Processing by SimpleCart::CheckoutController#update as HTML
Parameters: {"utf8"=>"✓", "authenticity_token"=>"/RPOUEOjuZ2SJKLmMSI+8pCGp8+1FiEGXHP16h4fFzmVSYuSKJu5QJ4vZVqsxCw1qhqCRwEZV7zNMybk4e7YMA==", "order"=>{"credit_card_attributes"=>{"number"=>"2222122222222222", "expiration_month"=>"01", "expiration_year"=>"2017", "cvv"=>"123", "firstname"=>"5215", "lastname"=>"521"}}, "commit"=>"Continue", "order_id"=>"1", "id"=>"payment"}
[1m[35mSimpleCart::Order Load (0.1ms)[0m SELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
[1m[35mSimpleCart::CreditCard Load (0.1ms)[0m SELECT "simple_cart_credit_cards".* FROM "simple_cart_credit_cards" WHERE "simple_cart_credit_cards"."order_id" = ? LIMIT 1 [["order_id", 1]]
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "simple_cart_credit_cards" ("number", "expiration_month", "expiration_year", "cvv", "firstname", "lastname", "order_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["number", "2222122222222222"], ["expiration_month", "01"], ["expiration_year", "2017"], ["cvv", "123"], ["firstname", "5215"], ["lastname", "521"], ["order_id", 1], ["created_at", "2016-03-14 18:51:47.137716"], ["updated_at", "2016-03-14 18:51:47.137716"]]
[1m[35m (58.1ms)[0m commit transaction
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
[1m[35m (0.0ms)[0m commit transaction
Redirected to http://localhost:3000/simple_cart/orders/1/checkout/confirm
Completed 302 Found in 70ms (ActiveRecord: 58.9ms)
Started GET "/simple_cart/orders/1/checkout/confirm" for 127.0.0.1 at 2016-03-14 20:51:47 +0200
Processing by SimpleCart::CheckoutController#show as HTML
Parameters: {"order_id"=>"1", "id"=>"confirm"}
[1m[36mSimpleCart::Order Load (0.1ms)[0m [1mSELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mSimpleCart::CreditCard Load (0.1ms)[0m SELECT "simple_cart_credit_cards".* FROM "simple_cart_credit_cards" WHERE "simple_cart_credit_cards"."order_id" = ? LIMIT 1 [["order_id", 1]]
[1m[36mSimpleCart::BillingAddress Load (0.1ms)[0m [1mSELECT "simple_cart_addresses".* FROM "simple_cart_addresses" WHERE "simple_cart_addresses"."type" IN ('SimpleCart::BillingAddress') AND "simple_cart_addresses"."order_id" = ? LIMIT 1[0m [["order_id", 1]]
[1m[35mSimpleCart::ShippingAddress Load (0.1ms)[0m SELECT "simple_cart_addresses".* FROM "simple_cart_addresses" WHERE "simple_cart_addresses"."type" IN ('SimpleCart::ShippingAddress') AND "simple_cart_addresses"."order_id" = ? LIMIT 1 [["order_id", 1]]
Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/_progress.html.haml (0.9ms)
[1m[36mSimpleCart::Delivery Load (0.1ms)[0m [1mSELECT "simple_cart_deliveries".* FROM "simple_cart_deliveries" WHERE "simple_cart_deliveries"."id" = ? LIMIT 1[0m [["id", 1]]
Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/_overview.html.haml (6.9ms)
[1m[35mSimpleCart::OrderItem Exists (0.2ms)[0m SELECT 1 AS one FROM "simple_cart_order_items" WHERE "simple_cart_order_items"."order_id" = ? LIMIT 1 [["order_id", "1"]]
[1m[36mSimpleCart::OrderItem Load (0.1ms)[0m [1mSELECT "simple_cart_order_items".* FROM "simple_cart_order_items" WHERE "simple_cart_order_items"."order_id" = ?[0m [["order_id", "1"]]
[1m[35mThing Load (0.1ms)[0m SELECT "things".* FROM "things" WHERE "things"."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 (31.2ms)
Completed 200 OK in 52ms (Views: 48.3ms | ActiveRecord: 0.8ms)
Started GET "/simple_cart/orders/1/checkout/delivery" for 127.0.0.1 at 2016-03-14 20:51:50 +0200
Processing by SimpleCart::CheckoutController#show as HTML
Parameters: {"order_id"=>"1", "id"=>"delivery"}
[1m[36mSimpleCart::Order Load (0.1ms)[0m [1mSELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mSimpleCart::ShippingAddress Load (0.1ms)[0m SELECT "simple_cart_addresses".* FROM "simple_cart_addresses" WHERE "simple_cart_addresses"."type" IN ('SimpleCart::ShippingAddress') AND "simple_cart_addresses"."order_id" = ? LIMIT 1 [["order_id", 1]]
[1m[36mSimpleCart::BillingAddress Load (0.1ms)[0m [1mSELECT "simple_cart_addresses".* FROM "simple_cart_addresses" WHERE "simple_cart_addresses"."type" IN ('SimpleCart::BillingAddress') AND "simple_cart_addresses"."order_id" = ? LIMIT 1[0m [["order_id", 1]]
[1m[35mSimpleCart::CreditCard Load (0.1ms)[0m SELECT "simple_cart_credit_cards".* FROM "simple_cart_credit_cards" WHERE "simple_cart_credit_cards"."order_id" = ? LIMIT 1 [["order_id", 1]]
Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/_progress.html.haml (2.3ms)
[1m[36mSimpleCart::Delivery Load (0.1ms)[0m [1mSELECT "simple_cart_deliveries".* FROM "simple_cart_deliveries"[0m
[1m[35mSimpleCart::Delivery Load (0.1ms)[0m SELECT "simple_cart_deliveries".* FROM "simple_cart_deliveries" ORDER BY "simple_cart_deliveries"."id" ASC LIMIT 1
[1m[36mCACHE (0.0ms)[0m [1mSELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1[0m [["id", "1"]]
[1m[35mCACHE (0.0ms)[0m SELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1 [["id", "1"]]
[1m[36mSimpleCart::Delivery Load (0.1ms)[0m [1mSELECT "simple_cart_deliveries".* FROM "simple_cart_deliveries" WHERE "simple_cart_deliveries"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mCACHE (0.0ms)[0m SELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1 [["id", "1"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "simple_cart_deliveries".* FROM "simple_cart_deliveries" WHERE "simple_cart_deliveries"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mCACHE (0.0ms)[0m SELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1 [["id", "1"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1[0m [["id", "1"]]
[1m[35mCACHE (0.0ms)[0m SELECT "simple_cart_deliveries".* FROM "simple_cart_deliveries" WHERE "simple_cart_deliveries"."id" = ? LIMIT 1 [["id", 1]]
Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/_summary.html.haml (7.9ms)
Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/delivery.html.haml within layouts/simple_cart/application (18.2ms)
Completed 200 OK in 37ms (Views: 33.8ms | ActiveRecord: 0.8ms)
Started PATCH "/simple_cart/orders/1/checkout/delivery" for 127.0.0.1 at 2016-03-14 20:51:51 +0200
Processing by SimpleCart::CheckoutController#update as HTML
Parameters: {"utf8"=>"✓", "authenticity_token"=>"UGh80C891X4NACgZJpjUaoHMqxT4PFBpfl0nRi4C5gc4MjkSRAXVowEL76W7fsatu1COnEwzJtPvHfRI0fMpDg==", "order"=>{"delivery_id"=>"1"}, "commit"=>"Continue", "order_id"=>"1", "id"=>"delivery"}
[1m[36mSimpleCart::Order Load (0.1ms)[0m [1mSELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mSimpleCart::Delivery Load (0.1ms)[0m SELECT "simple_cart_deliveries".* FROM "simple_cart_deliveries" WHERE "simple_cart_deliveries"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
[1m[35m (0.0ms)[0m commit transaction
Redirected to http://localhost:3000/simple_cart/orders/1/checkout/payment
Completed 302 Found in 3ms (ActiveRecord: 0.3ms)
Started GET "/simple_cart/orders/1/checkout/payment" for 127.0.0.1 at 2016-03-14 20:51:51 +0200
Processing by SimpleCart::CheckoutController#show as HTML
Parameters: {"order_id"=>"1", "id"=>"payment"}
[1m[36mSimpleCart::Order Load (0.1ms)[0m [1mSELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mSimpleCart::Delivery Load (0.1ms)[0m SELECT "simple_cart_deliveries".* FROM "simple_cart_deliveries" WHERE "simple_cart_deliveries"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mSimpleCart::BillingAddress Load (0.1ms)[0m [1mSELECT "simple_cart_addresses".* FROM "simple_cart_addresses" WHERE "simple_cart_addresses"."type" IN ('SimpleCart::BillingAddress') AND "simple_cart_addresses"."order_id" = ? LIMIT 1[0m [["order_id", 1]]
[1m[35mSimpleCart::ShippingAddress Load (0.1ms)[0m SELECT "simple_cart_addresses".* FROM "simple_cart_addresses" WHERE "simple_cart_addresses"."type" IN ('SimpleCart::ShippingAddress') AND "simple_cart_addresses"."order_id" = ? LIMIT 1 [["order_id", 1]]
[1m[36mSimpleCart::CreditCard Load (0.0ms)[0m [1mSELECT "simple_cart_credit_cards".* FROM "simple_cart_credit_cards" WHERE "simple_cart_credit_cards"."order_id" = ? LIMIT 1[0m [["order_id", 1]]
Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/_progress.html.haml (1.2ms)
Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/payment.html.haml within layouts/simple_cart/application (9.2ms)
Completed 200 OK in 28ms (Views: 24.9ms | ActiveRecord: 0.3ms)
Started GET "/simple_cart/orders/1/checkout/confirm" for 127.0.0.1 at 2016-03-14 20:51:52 +0200
Processing by SimpleCart::CheckoutController#show as HTML
Parameters: {"order_id"=>"1", "id"=>"confirm"}
[1m[35mSimpleCart::Order Load (0.1ms)[0m SELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mSimpleCart::CreditCard Load (0.1ms)[0m [1mSELECT "simple_cart_credit_cards".* FROM "simple_cart_credit_cards" WHERE "simple_cart_credit_cards"."order_id" = ? LIMIT 1[0m [["order_id", 1]]
[1m[35mSimpleCart::BillingAddress Load (0.1ms)[0m SELECT "simple_cart_addresses".* FROM "simple_cart_addresses" WHERE "simple_cart_addresses"."type" IN ('SimpleCart::BillingAddress') AND "simple_cart_addresses"."order_id" = ? LIMIT 1 [["order_id", 1]]
[1m[36mSimpleCart::ShippingAddress Load (0.2ms)[0m [1mSELECT "simple_cart_addresses".* FROM "simple_cart_addresses" WHERE "simple_cart_addresses"."type" IN ('SimpleCart::ShippingAddress') AND "simple_cart_addresses"."order_id" = ? LIMIT 1[0m [["order_id", 1]]
Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/_progress.html.haml (0.9ms)
[1m[35mSimpleCart::Delivery Load (0.1ms)[0m SELECT "simple_cart_deliveries".* FROM "simple_cart_deliveries" WHERE "simple_cart_deliveries"."id" = ? LIMIT 1 [["id", 1]]
Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/_overview.html.haml (5.7ms)
[1m[36mSimpleCart::OrderItem Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "simple_cart_order_items" WHERE "simple_cart_order_items"."order_id" = ? LIMIT 1[0m [["order_id", "1"]]
[1m[35mSimpleCart::OrderItem Load (0.1ms)[0m SELECT "simple_cart_order_items".* FROM "simple_cart_order_items" WHERE "simple_cart_order_items"."order_id" = ? [["order_id", "1"]]
[1m[36mThing Load (0.1ms)[0m [1mSELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1[0m [["id", 1]]
Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/confirm.html.haml within layouts/simple_cart/application (18.6ms)
Completed 200 OK in 38ms (Views: 33.6ms | ActiveRecord: 0.7ms)
Started PATCH "/simple_cart/orders/1" for 127.0.0.1 at 2016-03-14 20:51:52 +0200
Processing by SimpleCart::OrdersController#update as HTML
Parameters: {"authenticity_token"=>"xGf7HzWTtR49xbQlXpjQT7Mnv87zWpLb4vEWge5NbwisPb7dXqu1wzHOc5nDfsKIibuaRkdV5GFzscWPEbygAQ==", "id"=>"1"}
[1m[35mSimpleCart::Order Load (0.1ms)[0m SELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
[1m[35mSQL (0.2ms)[0m UPDATE "simple_cart_orders" SET "aasm_state" = ?, "updated_at" = ? WHERE "simple_cart_orders"."id" = ? [["aasm_state", "in_queue"], ["updated_at", "2016-03-14 18:51:52.821847"], ["id", 1]]
[1m[36m (222.2ms)[0m [1mcommit transaction[0m
[1m[35mSimpleCart::Delivery Load (0.1ms)[0m SELECT "simple_cart_deliveries".* FROM "simple_cart_deliveries" WHERE "simple_cart_deliveries"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
[1m[35mSQL (0.2ms)[0m UPDATE "simple_cart_orders" SET "total_price" = ?, "updated_at" = ? WHERE "simple_cart_orders"."id" = ? [["total_price", 104504.0], ["updated_at", "2016-03-14 18:51:53.047051"], ["id", 1]]
[1m[36m (65.9ms)[0m [1mcommit transaction[0m
Redirected to http://localhost:3000/simple_cart/orders/1
Completed 302 Found in 296ms (ActiveRecord: 288.9ms)
Started GET "/simple_cart/orders/1" for 127.0.0.1 at 2016-03-14 20:51:53 +0200
Processing by SimpleCart::OrdersController#show as HTML
Parameters: {"id"=>"1"}
[1m[35mSimpleCart::Order Load (0.2ms)[0m SELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mSimpleCart::BillingAddress Load (0.1ms)[0m [1mSELECT "simple_cart_addresses".* FROM "simple_cart_addresses" WHERE "simple_cart_addresses"."type" IN ('SimpleCart::BillingAddress') AND "simple_cart_addresses"."order_id" = ? LIMIT 1[0m [["order_id", 1]]
[1m[35mSimpleCart::ShippingAddress Load (0.1ms)[0m SELECT "simple_cart_addresses".* FROM "simple_cart_addresses" WHERE "simple_cart_addresses"."type" IN ('SimpleCart::ShippingAddress') AND "simple_cart_addresses"."order_id" = ? LIMIT 1 [["order_id", 1]]
[1m[36mSimpleCart::Delivery Load (0.1ms)[0m [1mSELECT "simple_cart_deliveries".* FROM "simple_cart_deliveries" WHERE "simple_cart_deliveries"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mSimpleCart::CreditCard Load (0.1ms)[0m SELECT "simple_cart_credit_cards".* FROM "simple_cart_credit_cards" WHERE "simple_cart_credit_cards"."order_id" = ? LIMIT 1 [["order_id", 1]]
[1m[36mSimpleCart::OrderItem Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "simple_cart_order_items" WHERE "simple_cart_order_items"."order_id" = ? LIMIT 1[0m [["order_id", "1"]]
[1m[35mSimpleCart::OrderItem Load (0.1ms)[0m SELECT "simple_cart_order_items".* FROM "simple_cart_order_items" WHERE "simple_cart_order_items"."order_id" = ? [["order_id", "1"]]
[1m[36mThing Load (0.0ms)[0m [1mSELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1[0m [["id", 1]]
Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/orders/show.html.haml within layouts/simple_cart/application (25.1ms)
Completed 200 OK in 55ms (Views: 51.8ms | ActiveRecord: 0.9ms)
Started GET "/simple_cart/orders/1/checkout" for 127.0.0.1 at 2016-03-14 20:52:00 +0200
Processing by SimpleCart::CheckoutController#index as HTML
Parameters: {"order_id"=>"1"}
[1m[35mSimpleCart::Order Load (0.2ms)[0m SELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1 [["id", 1]]
Redirected to http://localhost:3000/simple_cart/orders/1/checkout/billing
Completed 302 Found in 3ms (ActiveRecord: 0.2ms)
Started GET "/simple_cart/orders/1/checkout/billing" for 127.0.0.1 at 2016-03-14 20:52:00 +0200
Processing by SimpleCart::CheckoutController#show as HTML
Parameters: {"order_id"=>"1", "id"=>"billing"}
[1m[36mSimpleCart::Order Load (0.1ms)[0m [1mSELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mSimpleCart::BillingAddress Load (0.1ms)[0m SELECT "simple_cart_addresses".* FROM "simple_cart_addresses" WHERE "simple_cart_addresses"."type" IN ('SimpleCart::BillingAddress') AND "simple_cart_addresses"."order_id" = ? LIMIT 1 [["order_id", 1]]
[1m[36mSimpleCart::ShippingAddress Load (0.1ms)[0m [1mSELECT "simple_cart_addresses".* FROM "simple_cart_addresses" WHERE "simple_cart_addresses"."type" IN ('SimpleCart::ShippingAddress') AND "simple_cart_addresses"."order_id" = ? LIMIT 1[0m [["order_id", 1]]
[1m[35mSimpleCart::CreditCard Load (0.1ms)[0m SELECT "simple_cart_credit_cards".* FROM "simple_cart_credit_cards" WHERE "simple_cart_credit_cards"."order_id" = ? LIMIT 1 [["order_id", 1]]
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 (7.4ms)
[1m[36mCACHE (0.0ms)[0m [1mSELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1[0m [["id", "1"]]
[1m[35mCACHE (0.0ms)[0m SELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1 [["id", "1"]]
[1m[36mSimpleCart::Delivery Load (0.1ms)[0m [1mSELECT "simple_cart_deliveries".* FROM "simple_cart_deliveries" WHERE "simple_cart_deliveries"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mCACHE (0.0ms)[0m SELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1 [["id", "1"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "simple_cart_deliveries".* FROM "simple_cart_deliveries" WHERE "simple_cart_deliveries"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mCACHE (0.0ms)[0m SELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1 [["id", "1"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1[0m [["id", "1"]]
[1m[35mCACHE (0.0ms)[0m SELECT "simple_cart_deliveries".* FROM "simple_cart_deliveries" WHERE "simple_cart_deliveries"."id" = ? LIMIT 1 [["id", 1]]
Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/_summary.html.haml (4.2ms)
Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/billing.html.haml within layouts/simple_cart/application (18.3ms)
Completed 200 OK in 39ms (Views: 35.4ms | ActiveRecord: 0.5ms)
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "simple_cart_deliveries" ("company", "costs", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["company", "task"], ["costs", 120.0], ["created_at", "2016-03-14 19:03:42.834026"], ["updated_at", "2016-03-14 19:03:42.834026"]]
[1m[36m (66.7ms)[0m [1mcommit transaction[0m
Started PATCH "/simple_cart/orders/1/checkout/billing" for 127.0.0.1 at 2016-03-14 21:03:53 +0200
Processing by SimpleCart::CheckoutController#update as HTML
Parameters: {"utf8"=>"✓", "authenticity_token"=>"qmjs/o1tCnGa/raA6+gkbmIwJg0TNCMRyvyyMfCjRGnCMqk85lUKrJb1cTx2DjapWKwDhac7VatbvGE/D1KLYA==", "order"=>{"billing_address_attributes"=>{"firstname"=>"fsa", "lastname"=>"gsgsa", "address"=>"sasgaasg", "zipcode"=>"saggsasga", "city"=>"gasgsa", "phone"=>"251", "country"=>"Afghanistan", "id"=>"1"}}, "shipping"=>{"use_billing_address"=>"true"}, "commit"=>"Save and continue", "order_id"=>"1", "id"=>"billing"}
[1m[36mSimpleCart::Order Load (0.1ms)[0m [1mSELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1[0m [["id", 1]]
Unpermitted parameter: id
[1m[35m (0.1ms)[0m begin transaction
[1m[36mSimpleCart::BillingAddress Load (0.2ms)[0m [1mSELECT "simple_cart_addresses".* FROM "simple_cart_addresses" WHERE "simple_cart_addresses"."type" IN ('SimpleCart::BillingAddress') AND "simple_cart_addresses"."order_id" = ? LIMIT 1[0m [["order_id", 1]]
[1m[35mSQL (0.3ms)[0m DELETE FROM "simple_cart_addresses" WHERE "simple_cart_addresses"."type" IN ('SimpleCart::BillingAddress') AND "simple_cart_addresses"."id" = ? [["id", 1]]
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "simple_cart_addresses" ("type", "firstname", "lastname", "address", "zipcode", "city", "phone", "country", "order_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["type", "SimpleCart::BillingAddress"], ["firstname", "fsa"], ["lastname", "gsgsa"], ["address", "sasgaasg"], ["zipcode", "saggsasga"], ["city", "gasgsa"], ["phone", "251"], ["country", "Afghanistan"], ["order_id", 1], ["created_at", "2016-03-14 19:03:53.102920"], ["updated_at", "2016-03-14 19:03:53.102920"]]
[1m[35m (79.6ms)[0m commit transaction
[1m[36mSimpleCart::ShippingAddress Load (0.3ms)[0m [1mSELECT "simple_cart_addresses".* FROM "simple_cart_addresses" WHERE "simple_cart_addresses"."type" IN ('SimpleCart::ShippingAddress') AND "simple_cart_addresses"."order_id" = ? LIMIT 1[0m [["order_id", 1]]
[1m[35m (0.1ms)[0m begin transaction
[1m[36mSQL (0.2ms)[0m [1mDELETE FROM "simple_cart_addresses" WHERE "simple_cart_addresses"."type" IN ('SimpleCart::ShippingAddress') AND "simple_cart_addresses"."id" = ?[0m [["id", 2]]
[1m[35m (108.2ms)[0m commit transaction
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
[1m[35mSQL (0.3ms)[0m INSERT INTO "simple_cart_addresses" ("type", "order_id", "address", "zipcode", "city", "phone", "country", "created_at", "updated_at", "firstname", "lastname") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["type", "SimpleCart::ShippingAddress"], ["order_id", 1], ["address", "sasgaasg"], ["zipcode", "saggsasga"], ["city", "gasgsa"], ["phone", "251"], ["country", "Afghanistan"], ["created_at", "2016-03-14 19:03:53.102920"], ["updated_at", "2016-03-14 19:03:53.102920"], ["firstname", "fsa"], ["lastname", "gsgsa"]]
[1m[36m (165.3ms)[0m [1mcommit transaction[0m
Redirected to http://localhost:3000/simple_cart/orders/1/checkout/delivery
Completed 302 Found in 409ms (ActiveRecord: 355.7ms)
Started GET "/simple_cart/orders/1/checkout/delivery" for 127.0.0.1 at 2016-03-14 21:03:53 +0200
Processing by SimpleCart::CheckoutController#show as HTML
Parameters: {"order_id"=>"1", "id"=>"delivery"}
[1m[35mSimpleCart::Order Load (0.1ms)[0m SELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mSimpleCart::ShippingAddress Load (0.2ms)[0m [1mSELECT "simple_cart_addresses".* FROM "simple_cart_addresses" WHERE "simple_cart_addresses"."type" IN ('SimpleCart::ShippingAddress') AND "simple_cart_addresses"."order_id" = ? LIMIT 1[0m [["order_id", 1]]
[1m[35mSimpleCart::BillingAddress Load (0.2ms)[0m SELECT "simple_cart_addresses".* FROM "simple_cart_addresses" WHERE "simple_cart_addresses"."type" IN ('SimpleCart::BillingAddress') AND "simple_cart_addresses"."order_id" = ? LIMIT 1 [["order_id", 1]]
[1m[36mSimpleCart::CreditCard Load (0.2ms)[0m [1mSELECT "simple_cart_credit_cards".* FROM "simple_cart_credit_cards" WHERE "simple_cart_credit_cards"."order_id" = ? LIMIT 1[0m [["order_id", 1]]
Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/_progress.html.haml (1.4ms)
[1m[35mSimpleCart::Delivery Load (0.2ms)[0m SELECT "simple_cart_deliveries".* FROM "simple_cart_deliveries"
[1m[36mSimpleCart::Delivery Load (0.1ms)[0m [1mSELECT "simple_cart_deliveries".* FROM "simple_cart_deliveries" ORDER BY "simple_cart_deliveries"."id" ASC LIMIT 1[0m
[1m[35mCACHE (0.0ms)[0m SELECT "simple_cart_deliveries".* FROM "simple_cart_deliveries" ORDER BY "simple_cart_deliveries"."id" ASC LIMIT 1
[1m[36mSimpleCart::Delivery Load (0.1ms)[0m [1mSELECT "simple_cart_deliveries".* FROM "simple_cart_deliveries" WHERE "simple_cart_deliveries"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mCACHE (0.0ms)[0m SELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1 [["id", "1"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1[0m [["id", "1"]]
[1m[35mCACHE (0.0ms)[0m SELECT "simple_cart_deliveries".* FROM "simple_cart_deliveries" WHERE "simple_cart_deliveries"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1[0m [["id", "1"]]
[1m[35mCACHE (0.0ms)[0m SELECT "simple_cart_deliveries".* FROM "simple_cart_deliveries" WHERE "simple_cart_deliveries"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1[0m [["id", "1"]]
[1m[35mCACHE (0.0ms)[0m SELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1 [["id", "1"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "simple_cart_deliveries".* FROM "simple_cart_deliveries" WHERE "simple_cart_deliveries"."id" = ? LIMIT 1[0m [["id", 1]]
Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/_summary.html.haml (5.0ms)
Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/delivery.html.haml within layouts/simple_cart/application (18.1ms)
Completed 200 OK in 52ms (Views: 36.1ms | ActiveRecord: 1.9ms)
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
[1m[35mSQL (0.3ms)[0m INSERT INTO "simple_cart_deliveries" ("company", "costs", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["company", "SSSS"], ["costs", 120.0], ["created_at", "2016-03-14 19:12:21.306346"], ["updated_at", "2016-03-14 19:12:21.306346"]]
[1m[36m (59.3ms)[0m [1mcommit transaction[0m
Started GET "/" for 127.0.0.1 at 2016-03-14 21:12:32 +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 4ms (Views: 3.8ms | ActiveRecord: 0.0ms)
Started GET "/simple_cart/cart" for 127.0.0.1 at 2016-03-14 21:12:37 +0200
Processing by SimpleCart::CartsController#show as HTML
[1m[35mThing Load (0.2ms)[0m SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1[0m [["id", "1"]]
[1m[35mCACHE (0.0ms)[0m 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.9ms)
Completed 200 OK in 41ms (Views: 38.6ms | ActiveRecord: 0.5ms)
Started POST "/simple_cart/cart/checkout" for 127.0.0.1 at 2016-03-14 21:12:38 +0200
Processing by SimpleCart::CartsController#checkout as HTML
Parameters: {"authenticity_token"=>"DtW+5mULxDhy2/uGvuViqkYdjS2rML5CWg6Xpi8DnWdmj/skDjPE5X7QPDojA3BtfIGopR8/yPjLTkSo0PJSbg=="}
[1m[36mThing Load (0.1ms)[0m [1mSELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mCACHE (0.0ms)[0m SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", "1"]]
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
[1m[35mSQL (0.3ms)[0m INSERT INTO "simple_cart_orders" ("total_price", "completed_date", "aasm_state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["total_price", 104502.0], ["completed_date", "2016-03-14"], ["aasm_state", "in_progress"], ["created_at", "2016-03-14 19:12:38.802472"], ["updated_at", "2016-03-14 19:12:38.802472"]]
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "simple_cart_order_items" ("price", "qty", "itemable_id", "itemable_type", "order_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["price", 52251.0], ["qty", 2], ["itemable_id", 1], ["itemable_type", "Thing"], ["order_id", "2"], ["created_at", "2016-03-14 19:12:38.804257"], ["updated_at", "2016-03-14 19:12:38.804257"]]
[1m[35m (46.6ms)[0m commit transaction
Redirected to http://localhost:3000/simple_cart/orders/2/checkout
Completed 302 Found in 67ms (ActiveRecord: 47.7ms)
Started GET "/simple_cart/orders/2/checkout" for 127.0.0.1 at 2016-03-14 21:12:38 +0200
Processing by SimpleCart::CheckoutController#index as HTML
Parameters: {"order_id"=>"2"}
[1m[36mSimpleCart::Order Load (0.1ms)[0m [1mSELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1[0m [["id", 2]]
Redirected to http://localhost:3000/simple_cart/orders/2/checkout/billing
Completed 302 Found in 2ms (ActiveRecord: 0.1ms)
Started GET "/simple_cart/orders/2/checkout/billing" for 127.0.0.1 at 2016-03-14 21:12:38 +0200
Processing by SimpleCart::CheckoutController#show as HTML
Parameters: {"order_id"=>"2", "id"=>"billing"}
[1m[35mSimpleCart::Order Load (0.1ms)[0m SELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1 [["id", 2]]
[1m[36mSimpleCart::BillingAddress Load (0.1ms)[0m [1mSELECT "simple_cart_addresses".* FROM "simple_cart_addresses" WHERE "simple_cart_addresses"."type" IN ('SimpleCart::BillingAddress') AND "simple_cart_addresses"."order_id" = ? LIMIT 1[0m [["order_id", 2]]
[1m[35mSimpleCart::ShippingAddress Load (0.1ms)[0m SELECT "simple_cart_addresses".* FROM "simple_cart_addresses" WHERE "simple_cart_addresses"."type" IN ('SimpleCart::ShippingAddress') AND "simple_cart_addresses"."order_id" = ? LIMIT 1 [["order_id", 2]]
[1m[36mSimpleCart::CreditCard Load (0.1ms)[0m [1mSELECT "simple_cart_credit_cards".* FROM "simple_cart_credit_cards" WHERE "simple_cart_credit_cards"."order_id" = ? LIMIT 1[0m [["order_id", 2]]
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 (8.9ms)
[1m[35mCACHE (0.0ms)[0m SELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1 [["id", "2"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1[0m [["id", "2"]]
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 (15.8ms)
Completed 200 OK in 39ms (Views: 33.2ms | ActiveRecord: 0.4ms)
Started PATCH "/simple_cart/orders/2/checkout/billing" for 127.0.0.1 at 2016-03-14 21:12:43 +0200
Processing by SimpleCart::CheckoutController#update as HTML
Parameters: {"utf8"=>"✓", "authenticity_token"=>"enJXAAl73af9Cwyc9px/WH9fmguv9hU4Ht5rYEpQy+8SKBLCYkPdevEAyyBrem2fRcO/gxv5Y4KPnrhutaEE5g==", "order"=>{"billing_address_attributes"=>{"firstname"=>"fsdag", "lastname"=>"sdgs", "address"=>"dgsd", "zipcode"=>"gsdg", "city"=>"sdgsd", "phone"=>"sdg", "country"=>"Afghanistan"}}, "shipping"=>{"use_billing_address"=>"true"}, "commit"=>"Save and continue", "order_id"=>"2", "id"=>"billing"}
[1m[35mSimpleCart::Order Load (0.2ms)[0m SELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1 [["id", 2]]
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
[1m[35mSimpleCart::BillingAddress Load (0.1ms)[0m SELECT "simple_cart_addresses".* FROM "simple_cart_addresses" WHERE "simple_cart_addresses"."type" IN ('SimpleCart::BillingAddress') AND "simple_cart_addresses"."order_id" = ? LIMIT 1 [["order_id", 2]]
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "simple_cart_addresses" ("type", "firstname", "lastname", "address", "zipcode", "city", "phone", "country", "order_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["type", "SimpleCart::BillingAddress"], ["firstname", "fsdag"], ["lastname", "sdgs"], ["address", "dgsd"], ["zipcode", "gsdg"], ["city", "sdgsd"], ["phone", "sdg"], ["country", "Afghanistan"], ["order_id", 2], ["created_at", "2016-03-14 19:12:43.659410"], ["updated_at", "2016-03-14 19:12:43.659410"]]
[1m[35m (255.4ms)[0m commit transaction
[1m[36mSimpleCart::ShippingAddress Load (0.1ms)[0m [1mSELECT "simple_cart_addresses".* FROM "simple_cart_addresses" WHERE "simple_cart_addresses"."type" IN ('SimpleCart::ShippingAddress') AND "simple_cart_addresses"."order_id" = ? LIMIT 1[0m [["order_id", 2]]
[1m[35m (0.1ms)[0m begin transaction
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "simple_cart_addresses" ("type", "order_id", "address", "zipcode", "city", "phone", "country", "created_at", "updated_at", "firstname", "lastname") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["type", "SimpleCart::ShippingAddress"], ["order_id", 2], ["address", "dgsd"], ["zipcode", "gsdg"], ["city", "sdgsd"], ["phone", "sdg"], ["country", "Afghanistan"], ["created_at", "2016-03-14 19:12:43.659410"], ["updated_at", "2016-03-14 19:12:43.659410"], ["firstname", "fsdag"], ["lastname", "sdgs"]]
[1m[35m (300.3ms)[0m commit transaction
Redirected to http://localhost:3000/simple_cart/orders/2/checkout/delivery
Completed 302 Found in 571ms (ActiveRecord: 556.8ms)
Started GET "/simple_cart/orders/2/checkout/delivery" for 127.0.0.1 at 2016-03-14 21:12:44 +0200
Processing by SimpleCart::CheckoutController#show as HTML
Parameters: {"order_id"=>"2", "id"=>"delivery"}
[1m[36mSimpleCart::Order Load (0.1ms)[0m [1mSELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1[0m [["id", 2]]
[1m[35mSimpleCart::ShippingAddress Load (0.1ms)[0m SELECT "simple_cart_addresses".* FROM "simple_cart_addresses" WHERE "simple_cart_addresses"."type" IN ('SimpleCart::ShippingAddress') AND "simple_cart_addresses"."order_id" = ? LIMIT 1 [["order_id", 2]]
[1m[36mSimpleCart::BillingAddress Load (0.2ms)[0m [1mSELECT "simple_cart_addresses".* FROM "simple_cart_addresses" WHERE "simple_cart_addresses"."type" IN ('SimpleCart::BillingAddress') AND "simple_cart_addresses"."order_id" = ? LIMIT 1[0m [["order_id", 2]]
[1m[35mSimpleCart::CreditCard Load (0.1ms)[0m SELECT "simple_cart_credit_cards".* FROM "simple_cart_credit_cards" WHERE "simple_cart_credit_cards"."order_id" = ? LIMIT 1 [["order_id", 2]]
Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/_progress.html.haml (1.4ms)
[1m[36mSimpleCart::Delivery Load (0.2ms)[0m [1mSELECT "simple_cart_deliveries".* FROM "simple_cart_deliveries"[0m
[1m[35mSimpleCart::Delivery Load (0.2ms)[0m SELECT "simple_cart_deliveries".* FROM "simple_cart_deliveries" ORDER BY "simple_cart_deliveries"."id" ASC LIMIT 1
[1m[36mCACHE (0.0ms)[0m [1mSELECT "simple_cart_deliveries".* FROM "simple_cart_deliveries" ORDER BY "simple_cart_deliveries"."id" ASC LIMIT 1[0m
[1m[35mCACHE (0.0ms)[0m SELECT "simple_cart_deliveries".* FROM "simple_cart_deliveries" ORDER BY "simple_cart_deliveries"."id" ASC LIMIT 1
[1m[36mCACHE (0.0ms)[0m [1mSELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1[0m [["id", "2"]]
[1m[35mCACHE (0.0ms)[0m SELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1 [["id", "2"]]
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 (10.0ms)
Completed 200 OK in 35ms (Views: 29.1ms | ActiveRecord: 1.0ms)
Started GET "/simple_cart/orders/2/checkout/delivery" for 127.0.0.1 at 2016-03-14 21:13:14 +0200
Processing by SimpleCart::CheckoutController#show as HTML
Parameters: {"order_id"=>"2", "id"=>"delivery"}
[1m[36mSimpleCart::Order Load (0.1ms)[0m [1mSELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1[0m [["id", 2]]
[1m[35mSimpleCart::ShippingAddress Load (0.1ms)[0m SELECT "simple_cart_addresses".* FROM "simple_cart_addresses" WHERE "simple_cart_addresses"."type" IN ('SimpleCart::ShippingAddress') AND "simple_cart_addresses"."order_id" = ? LIMIT 1 [["order_id", 2]]
[1m[36mSimpleCart::BillingAddress Load (0.2ms)[0m [1mSELECT "simple_cart_addresses".* FROM "simple_cart_addresses" WHERE "simple_cart_addresses"."type" IN ('SimpleCart::BillingAddress') AND "simple_cart_addresses"."order_id" = ? LIMIT 1[0m [["order_id", 2]]
[1m[35mSimpleCart::CreditCard Load (0.1ms)[0m SELECT "simple_cart_credit_cards".* FROM "simple_cart_credit_cards" WHERE "simple_cart_credit_cards"."order_id" = ? LIMIT 1 [["order_id", 2]]
Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/_progress.html.haml (1.7ms)
[1m[36mSimpleCart::Delivery Load (0.2ms)[0m [1mSELECT "simple_cart_deliveries".* FROM "simple_cart_deliveries"[0m
[1m[35mSimpleCart::Delivery Load (0.1ms)[0m SELECT "simple_cart_deliveries".* FROM "simple_cart_deliveries" ORDER BY "simple_cart_deliveries"."id" ASC LIMIT 1
[1m[36mCACHE (0.0ms)[0m [1mSELECT "simple_cart_deliveries".* FROM "simple_cart_deliveries" ORDER BY "simple_cart_deliveries"."id" ASC LIMIT 1[0m
[1m[35mCACHE (0.0ms)[0m SELECT "simple_cart_deliveries".* FROM "simple_cart_deliveries" ORDER BY "simple_cart_deliveries"."id" ASC LIMIT 1
[1m[36mCACHE (0.0ms)[0m [1mSELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1[0m [["id", "2"]]
[1m[35mCACHE (0.0ms)[0m SELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1 [["id", "2"]]
Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/_summary.html.haml (0.9ms)
Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/delivery.html.haml within layouts/simple_cart/application (8.8ms)
Completed 200 OK in 34ms (Views: 27.0ms | ActiveRecord: 0.8ms)
Started GET "/assets/simple_cart/application.self-2f12d59583468bdcee27c6046669f62a778d265fc91cf385e5d36e9189ac822e.css?body=1" for 127.0.0.1 at 2016-03-14 21:13:15 +0200
Started GET "/assets/jquery.self-660adc51e0224b731d29f575a6f1ec167ba08ad06ed5deca4f1e8654c135bf4c.js?body=1" for 127.0.0.1 at 2016-03-14 21:13:15 +0200
Started GET "/assets/simple_cart/application.self-3b8dabdc891efe46b9a144b400ad69e37d7e5876bdc39dee783419a69d7ca819.js?body=1" for 127.0.0.1 at 2016-03-14 21:13:15 +0200
Started GET "/assets/turbolinks.self-c37727e9bd6b2735da5c311aa83fead54ed0be6cc8bd9a65309e9c5abe2cbfff.js?body=1" for 127.0.0.1 at 2016-03-14 21:13:15 +0200
Started GET "/assets/jquery_ujs.self-e87806d0cf4489aeb1bb7288016024e8de67fd18db693fe026fe3907581e53cd.js?body=1" for 127.0.0.1 at 2016-03-14 21:13:15 +0200
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
[1m[35mSQL (0.3ms)[0m INSERT INTO "simple_cart_deliveries" ("company", "costs", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["company", "sag"], ["costs", nil], ["created_at", "2016-03-14 19:14:22.633255"], ["updated_at", "2016-03-14 19:14:22.633255"]]
[1m[36m (63.9ms)[0m [1mcommit transaction[0m
Started GET "/simple_cart/orders/2/checkout/delivery" for 127.0.0.1 at 2016-03-14 21:14:27 +0200
Processing by SimpleCart::CheckoutController#show as HTML
Parameters: {"order_id"=>"2", "id"=>"delivery"}
[1m[36mSimpleCart::Order Load (0.1ms)[0m [1mSELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1[0m [["id", 2]]
[1m[35mSimpleCart::ShippingAddress Load (0.1ms)[0m SELECT "simple_cart_addresses".* FROM "simple_cart_addresses" WHERE "simple_cart_addresses"."type" IN ('SimpleCart::ShippingAddress') AND "simple_cart_addresses"."order_id" = ? LIMIT 1 [["order_id", 2]]
[1m[36mSimpleCart::BillingAddress Load (0.2ms)[0m [1mSELECT "simple_cart_addresses".* FROM "simple_cart_addresses" WHERE "simple_cart_addresses"."type" IN ('SimpleCart::BillingAddress') AND "simple_cart_addresses"."order_id" = ? LIMIT 1[0m [["order_id", 2]]
[1m[35mSimpleCart::CreditCard Load (0.1ms)[0m SELECT "simple_cart_credit_cards".* FROM "simple_cart_credit_cards" WHERE "simple_cart_credit_cards"."order_id" = ? LIMIT 1 [["order_id", 2]]
Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/_progress.html.haml (1.3ms)
[1m[36mSimpleCart::Delivery Load (0.2ms)[0m [1mSELECT "simple_cart_deliveries".* FROM "simple_cart_deliveries"[0m
[1m[35mSimpleCart::Delivery Load (0.2ms)[0m SELECT "simple_cart_deliveries".* FROM "simple_cart_deliveries" ORDER BY "simple_cart_deliveries"."id" ASC LIMIT 1
[1m[36mCACHE (0.0ms)[0m [1mSELECT "simple_cart_deliveries".* FROM "simple_cart_deliveries" ORDER BY "simple_cart_deliveries"."id" ASC LIMIT 1[0m
[1m[35mCACHE (0.0ms)[0m SELECT "simple_cart_deliveries".* FROM "simple_cart_deliveries" ORDER BY "simple_cart_deliveries"."id" ASC LIMIT 1
[1m[36mCACHE (0.0ms)[0m [1mSELECT "simple_cart_deliveries".* FROM "simple_cart_deliveries" ORDER BY "simple_cart_deliveries"."id" ASC LIMIT 1[0m
[1m[35mCACHE (0.0ms)[0m SELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1 [["id", "2"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1[0m [["id", "2"]]
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/delivery.html.haml within layouts/simple_cart/application (10.7ms)
Completed 200 OK in 34ms (Views: 28.5ms | ActiveRecord: 1.1ms)
Started GET "/assets/simple_cart/application.self-2f12d59583468bdcee27c6046669f62a778d265fc91cf385e5d36e9189ac822e.css?body=1" for 127.0.0.1 at 2016-03-14 21:14:27 +0200
Started GET "/assets/jquery_ujs.self-e87806d0cf4489aeb1bb7288016024e8de67fd18db693fe026fe3907581e53cd.js?body=1" for 127.0.0.1 at 2016-03-14 21:14:27 +0200
Started GET "/assets/turbolinks.self-c37727e9bd6b2735da5c311aa83fead54ed0be6cc8bd9a65309e9c5abe2cbfff.js?body=1" for 127.0.0.1 at 2016-03-14 21:14:27 +0200
Started GET "/assets/jquery.self-660adc51e0224b731d29f575a6f1ec167ba08ad06ed5deca4f1e8654c135bf4c.js?body=1" for 127.0.0.1 at 2016-03-14 21:14:27 +0200
Started GET "/assets/simple_cart/application.self-3b8dabdc891efe46b9a144b400ad69e37d7e5876bdc39dee783419a69d7ca819.js?body=1" for 127.0.0.1 at 2016-03-14 21:14:27 +0200
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
[1m[35mSQL (0.3ms)[0m INSERT INTO "simple_cart_deliveries" ("company", "costs", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["company", "sag"], ["costs", 12.0], ["created_at", "2016-03-14 19:14:53.345336"], ["updated_at", "2016-03-14 19:14:53.345336"]]
[1m[36m (62.9ms)[0m [1mcommit transaction[0m
Started GET "/simple_cart/orders/2/checkout/delivery" for 127.0.0.1 at 2016-03-14 21:14:54 +0200
Processing by SimpleCart::CheckoutController#show as HTML
Parameters: {"order_id"=>"2", "id"=>"delivery"}
[1m[35mSimpleCart::Order Load (0.2ms)[0m SELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1 [["id", 2]]
[1m[36mSimpleCart::ShippingAddress Load (0.2ms)[0m [1mSELECT "simple_cart_addresses".* FROM "simple_cart_addresses" WHERE "simple_cart_addresses"."type" IN ('SimpleCart::ShippingAddress') AND "simple_cart_addresses"."order_id" = ? LIMIT 1[0m [["order_id", 2]]
[1m[35mSimpleCart::BillingAddress Load (0.2ms)[0m SELECT "simple_cart_addresses".* FROM "simple_cart_addresses" WHERE "simple_cart_addresses"."type" IN ('SimpleCart::BillingAddress') AND "simple_cart_addresses"."order_id" = ? LIMIT 1 [["order_id", 2]]
[1m[36mSimpleCart::CreditCard Load (0.1ms)[0m [1mSELECT "simple_cart_credit_cards".* FROM "simple_cart_credit_cards" WHERE "simple_cart_credit_cards"."order_id" = ? LIMIT 1[0m [["order_id", 2]]
Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/_progress.html.haml (1.4ms)
[1m[35mSimpleCart::Delivery Load (0.2ms)[0m SELECT "simple_cart_deliveries".* FROM "simple_cart_deliveries"
[1m[36mSimpleCart::Delivery Load (0.2ms)[0m [1mSELECT "simple_cart_deliveries".* FROM "simple_cart_deliveries" ORDER BY "simple_cart_deliveries"."id" ASC LIMIT 1[0m
[1m[35mCACHE (0.0ms)[0m SELECT "simple_cart_deliveries".* FROM "simple_cart_deliveries" ORDER BY "simple_cart_deliveries"."id" ASC LIMIT 1
[1m[36mCACHE (0.0ms)[0m [1mSELECT "simple_cart_deliveries".* FROM "simple_cart_deliveries" ORDER BY "simple_cart_deliveries"."id" ASC LIMIT 1[0m
[1m[35mCACHE (0.0ms)[0m SELECT "simple_cart_deliveries".* FROM "simple_cart_deliveries" ORDER BY "simple_cart_deliveries"."id" ASC LIMIT 1
[1m[36mCACHE (0.0ms)[0m [1mSELECT "simple_cart_deliveries".* FROM "simple_cart_deliveries" ORDER BY "simple_cart_deliveries"."id" ASC LIMIT 1[0m
[1m[35mCACHE (0.0ms)[0m SELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1 [["id", "2"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1[0m [["id", "2"]]
Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/_summary.html.haml (0.9ms)
Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/delivery.html.haml within layouts/simple_cart/application (10.7ms)
Completed 200 OK in 34ms (Views: 27.2ms | ActiveRecord: 1.1ms)
Started GET "/assets/jquery.self-660adc51e0224b731d29f575a6f1ec167ba08ad06ed5deca4f1e8654c135bf4c.js?body=1" for 127.0.0.1 at 2016-03-14 21:14:54 +0200
Started GET "/assets/jquery_ujs.self-e87806d0cf4489aeb1bb7288016024e8de67fd18db693fe026fe3907581e53cd.js?body=1" for 127.0.0.1 at 2016-03-14 21:14:54 +0200
Started GET "/assets/turbolinks.self-c37727e9bd6b2735da5c311aa83fead54ed0be6cc8bd9a65309e9c5abe2cbfff.js?body=1" for 127.0.0.1 at 2016-03-14 21:14:54 +0200
Started GET "/assets/simple_cart/application.self-3b8dabdc891efe46b9a144b400ad69e37d7e5876bdc39dee783419a69d7ca819.js?body=1" for 127.0.0.1 at 2016-03-14 21:14:54 +0200
Started GET "/assets/simple_cart/application.self-2f12d59583468bdcee27c6046669f62a778d265fc91cf385e5d36e9189ac822e.css?body=1" for 127.0.0.1 at 2016-03-14 21:14:54 +0200
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "simple_cart_deliveries" ("company", "costs", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["company", "New"], ["costs", 125.0], ["created_at", "2016-03-14 19:16:51.993013"], ["updated_at", "2016-03-14 19:16:51.993013"]]
[1m[36m (63.7ms)[0m [1mcommit transaction[0m
Started GET "/simple_cart/orders/2/checkout/delivery" for 127.0.0.1 at 2016-03-14 21:17:01 +0200
Processing by SimpleCart::CheckoutController#show as HTML
Parameters: {"order_id"=>"2", "id"=>"delivery"}
[1m[35mSimpleCart::Order Load (0.1ms)[0m SELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1 [["id", 2]]
[1m[36mSimpleCart::ShippingAddress Load (0.3ms)[0m [1mSELECT "simple_cart_addresses".* FROM "simple_cart_addresses" WHERE "simple_cart_addresses"."type" IN ('SimpleCart::ShippingAddress') AND "simple_cart_addresses"."order_id" = ? LIMIT 1[0m [["order_id", 2]]
[1m[35mSimpleCart::BillingAddress Load (0.1ms)[0m SELECT "simple_cart_addresses".* FROM "simple_cart_addresses" WHERE "simple_cart_addresses"."type" IN ('SimpleCart::BillingAddress') AND "simple_cart_addresses"."order_id" = ? LIMIT 1 [["order_id", 2]]
[1m[36mSimpleCart::CreditCard Load (0.1ms)[0m [1mSELECT "simple_cart_credit_cards".* FROM "simple_cart_credit_cards" WHERE "simple_cart_credit_cards"."order_id" = ? LIMIT 1[0m [["order_id", 2]]
Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/_progress.html.haml (2.9ms)
[1m[35mSimpleCart::Delivery Load (0.3ms)[0m SELECT "simple_cart_deliveries".* FROM "simple_cart_deliveries"
[1m[36mSimpleCart::Delivery Load (0.2ms)[0m [1mSELECT "simple_cart_deliveries".* FROM "simple_cart_deliveries" ORDER BY "simple_cart_deliveries"."id" ASC LIMIT 1[0m
[1m[35mCACHE (0.0ms)[0m SELECT "simple_cart_deliveries".* FROM "simple_cart_deliveries" ORDER BY "simple_cart_deliveries"."id" ASC LIMIT 1
[1m[36mCACHE (0.0ms)[0m [1mSELECT "simple_cart_deliveries".* FROM "simple_cart_deliveries" ORDER BY "simple_cart_deliveries"."id" ASC LIMIT 1[0m
[1m[35mCACHE (0.0ms)[0m SELECT "simple_cart_deliveries".* FROM "simple_cart_deliveries" ORDER BY "simple_cart_deliveries"."id" ASC LIMIT 1
[1m[36mCACHE (0.0ms)[0m [1mSELECT "simple_cart_deliveries".* FROM "simple_cart_deliveries" ORDER BY "simple_cart_deliveries"."id" ASC LIMIT 1[0m
[1m[35mCACHE (0.0ms)[0m SELECT "simple_cart_deliveries".* FROM "simple_cart_deliveries" ORDER BY "simple_cart_deliveries"."id" ASC LIMIT 1
[1m[36mCACHE (0.0ms)[0m [1mSELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1[0m [["id", "2"]]
[1m[35mCACHE (0.0ms)[0m SELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1 [["id", "2"]]
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/delivery.html.haml within layouts/simple_cart/application (13.3ms)
Completed 200 OK in 34ms (Views: 29.0ms | ActiveRecord: 1.1ms)
Started GET "/assets/jquery.self-660adc51e0224b731d29f575a6f1ec167ba08ad06ed5deca4f1e8654c135bf4c.js?body=1" for 127.0.0.1 at 2016-03-14 21:17:01 +0200
Started GET "/assets/simple_cart/application.self-2f12d59583468bdcee27c6046669f62a778d265fc91cf385e5d36e9189ac822e.css?body=1" for 127.0.0.1 at 2016-03-14 21:17:01 +0200
Started GET "/assets/jquery_ujs.self-e87806d0cf4489aeb1bb7288016024e8de67fd18db693fe026fe3907581e53cd.js?body=1" for 127.0.0.1 at 2016-03-14 21:17:01 +0200
Started GET "/assets/turbolinks.self-c37727e9bd6b2735da5c311aa83fead54ed0be6cc8bd9a65309e9c5abe2cbfff.js?body=1" for 127.0.0.1 at 2016-03-14 21:17:01 +0200
Started GET "/assets/simple_cart/application.self-3b8dabdc891efe46b9a144b400ad69e37d7e5876bdc39dee783419a69d7ca819.js?body=1" for 127.0.0.1 at 2016-03-14 21:17:01 +0200
Started PATCH "/simple_cart/orders/2/checkout/delivery" for 127.0.0.1 at 2016-03-14 21:17:04 +0200
Processing by SimpleCart::CheckoutController#update as HTML
Parameters: {"utf8"=>"✓", "authenticity_token"=>"6DOXam8ErtxYRomDfY+GvG6UnorYMrzoaWzyjHVLwjyAadKoBDyuAVRNTj/gaZR7VAi7Amw9ylL4LCGCiroNNQ==", "order"=>{"delivery_id"=>"6"}, "commit"=>"Continue", "order_id"=>"2", "id"=>"delivery"}
[1m[36mSimpleCart::Order Load (0.1ms)[0m [1mSELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1[0m [["id", 2]]
[1m[35mSimpleCart::Delivery Load (0.1ms)[0m SELECT "simple_cart_deliveries".* FROM "simple_cart_deliveries" WHERE "simple_cart_deliveries"."id" = ? LIMIT 1 [["id", 6]]
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
[1m[35mSQL (0.3ms)[0m UPDATE "simple_cart_orders" SET "delivery_id" = ?, "updated_at" = ? WHERE "simple_cart_orders"."id" = ? [["delivery_id", 6], ["updated_at", "2016-03-14 19:17:04.292802"], ["id", 2]]
[1m[36m (48.9ms)[0m [1mcommit transaction[0m
Redirected to http://localhost:3000/simple_cart/orders/2/checkout/payment
Completed 302 Found in 57ms (ActiveRecord: 49.6ms)
Started GET "/simple_cart/orders/2/checkout/payment" for 127.0.0.1 at 2016-03-14 21:17:04 +0200
Processing by SimpleCart::CheckoutController#show as HTML
Parameters: {"order_id"=>"2", "id"=>"payment"}
[1m[35mSimpleCart::Order Load (0.1ms)[0m SELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1 [["id", 2]]
[1m[36mSimpleCart::Delivery Load (0.1ms)[0m [1mSELECT "simple_cart_deliveries".* FROM "simple_cart_deliveries" WHERE "simple_cart_deliveries"."id" = ? LIMIT 1[0m [["id", 6]]
[1m[35mSimpleCart::BillingAddress Load (0.1ms)[0m SELECT "simple_cart_addresses".* FROM "simple_cart_addresses" WHERE "simple_cart_addresses"."type" IN ('SimpleCart::BillingAddress') AND "simple_cart_addresses"."order_id" = ? LIMIT 1 [["order_id", 2]]
[1m[36mSimpleCart::ShippingAddress Load (0.2ms)[0m [1mSELECT "simple_cart_addresses".* FROM "simple_cart_addresses" WHERE "simple_cart_addresses"."type" IN ('SimpleCart::ShippingAddress') AND "simple_cart_addresses"."order_id" = ? LIMIT 1[0m [["order_id", 2]]
[1m[35mSimpleCart::CreditCard Load (0.1ms)[0m SELECT "simple_cart_credit_cards".* FROM "simple_cart_credit_cards" WHERE "simple_cart_credit_cards"."order_id" = ? LIMIT 1 [["order_id", 2]]
Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/_progress.html.haml (1.2ms)
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 28ms (Views: 23.4ms | ActiveRecord: 0.6ms)
Started GET "/simple_cart/orders/2/checkout/delivery" for 127.0.0.1 at 2016-03-14 21:17:05 +0200
Processing by SimpleCart::CheckoutController#show as HTML
Parameters: {"order_id"=>"2", "id"=>"delivery"}
[1m[36mSimpleCart::Order Load (0.1ms)[0m [1mSELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1[0m [["id", 2]]
[1m[35mSimpleCart::ShippingAddress Load (0.1ms)[0m SELECT "simple_cart_addresses".* FROM "simple_cart_addresses" WHERE "simple_cart_addresses"."type" IN ('SimpleCart::ShippingAddress') AND "simple_cart_addresses"."order_id" = ? LIMIT 1 [["order_id", 2]]
[1m[36mSimpleCart::BillingAddress Load (0.1ms)[0m [1mSELECT "simple_cart_addresses".* FROM "simple_cart_addresses" WHERE "simple_cart_addresses"."type" IN ('SimpleCart::BillingAddress') AND "simple_cart_addresses"."order_id" = ? LIMIT 1[0m [["order_id", 2]]
[1m[35mSimpleCart::CreditCard Load (0.1ms)[0m SELECT "simple_cart_credit_cards".* FROM "simple_cart_credit_cards" WHERE "simple_cart_credit_cards"."order_id" = ? LIMIT 1 [["order_id", 2]]
Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/_progress.html.haml (1.0ms)
[1m[36mSimpleCart::Delivery Load (0.2ms)[0m [1mSELECT "simple_cart_deliveries".* FROM "simple_cart_deliveries"[0m
[1m[35mSimpleCart::Delivery Load (0.1ms)[0m SELECT "simple_cart_deliveries".* FROM "simple_cart_deliveries" ORDER BY "simple_cart_deliveries"."id" ASC LIMIT 1
[1m[36mCACHE (0.0ms)[0m [1mSELECT "simple_cart_deliveries".* FROM "simple_cart_deliveries" ORDER BY "simple_cart_deliveries"."id" ASC LIMIT 1[0m
[1m[35mSimpleCart::Delivery Load (0.1ms)[0m SELECT "simple_cart_deliveries".* FROM "simple_cart_deliveries" WHERE "simple_cart_deliveries"."id" = ? LIMIT 1 [["id", 6]]
[1m[36mCACHE (0.1ms)[0m [1mSELECT "simple_cart_deliveries".* FROM "simple_cart_deliveries" ORDER BY "simple_cart_deliveries"."id" ASC LIMIT 1[0m
[1m[35mCACHE (0.0ms)[0m SELECT "simple_cart_deliveries".* FROM "simple_cart_deliveries" ORDER BY "simple_cart_deliveries"."id" ASC LIMIT 1
[1m[36mCACHE (0.0ms)[0m [1mSELECT "simple_cart_deliveries".* FROM "simple_cart_deliveries" ORDER BY "simple_cart_deliveries"."id" ASC LIMIT 1[0m
[1m[35mCACHE (0.0ms)[0m SELECT "simple_cart_deliveries".* FROM "simple_cart_deliveries" ORDER BY "simple_cart_deliveries"."id" ASC LIMIT 1
[1m[36mCACHE (0.0ms)[0m [1mSELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1[0m [["id", "2"]]
[1m[35mCACHE (0.0ms)[0m SELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1 [["id", "2"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "simple_cart_deliveries".* FROM "simple_cart_deliveries" WHERE "simple_cart_deliveries"."id" = ? LIMIT 1[0m [["id", 6]]
[1m[35mCACHE (0.0ms)[0m SELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1 [["id", "2"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "simple_cart_deliveries".* FROM "simple_cart_deliveries" WHERE "simple_cart_deliveries"."id" = ? LIMIT 1[0m [["id", 6]]
[1m[35mCACHE (0.0ms)[0m SELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1 [["id", "2"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1[0m [["id", "2"]]
[1m[35mCACHE (0.0ms)[0m SELECT "simple_cart_deliveries".* FROM "simple_cart_deliveries" WHERE "simple_cart_deliveries"."id" = ? LIMIT 1 [["id", 6]]
Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/_summary.html.haml (4.5ms)
Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/delivery.html.haml within layouts/simple_cart/application (18.1ms)
Completed 200 OK in 49ms (Views: 44.6ms | ActiveRecord: 1.1ms)
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
[1m[35mSQL (0.3ms)[0m INSERT INTO "simple_cart_deliveries" ("company", "costs", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["company", "News"], ["costs", 125.0], ["created_at", "2016-03-14 19:17:11.504819"], ["updated_at", "2016-03-14 19:17:11.504819"]]
[1m[36m (49.6ms)[0m [1mcommit transaction[0m
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
[1m[35mSQL (0.3ms)[0m INSERT INTO "simple_cart_deliveries" ("company", "costs", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["company", "News"], ["costs", 125.0], ["created_at", "2016-03-14 19:17:35.988845"], ["updated_at", "2016-03-14 19:17:35.988845"]]
[1m[36m (47.5ms)[0m [1mcommit transaction[0m
[1m[36mSimpleCart::Delivery Load (0.2ms)[0m [1mSELECT "simple_cart_deliveries".* FROM "simple_cart_deliveries" WHERE "simple_cart_deliveries"."company" = ? LIMIT 1[0m [["company", "News"]]
[1m[35m (0.1ms)[0m begin transaction
[1m[36mSQL (0.2ms)[0m [1mDELETE FROM "simple_cart_deliveries" WHERE "simple_cart_deliveries"."id" = ?[0m [["id", 7]]
[1m[35m (61.3ms)[0m commit transaction
Started GET "/simple_cart/orders/2/checkout/delivery" for 127.0.0.1 at 2016-03-14 21:19:00 +0200
Processing by SimpleCart::CheckoutController#show as HTML
Parameters: {"order_id"=>"2", "id"=>"delivery"}
[1m[36mSimpleCart::Order Load (0.2ms)[0m [1mSELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1[0m [["id", 2]]
[1m[35mSimpleCart::ShippingAddress Load (0.2ms)[0m SELECT "simple_cart_addresses".* FROM "simple_cart_addresses" WHERE "simple_cart_addresses"."type" IN ('SimpleCart::ShippingAddress') AND "simple_cart_addresses"."order_id" = ? LIMIT 1 [["order_id", 2]]
[1m[36mSimpleCart::BillingAddress Load (0.2ms)[0m [1mSELECT "simple_cart_addresses".* FROM "simple_cart_addresses" WHERE "simple_cart_addresses"."type" IN ('SimpleCart::BillingAddress') AND "simple_cart_addresses"."order_id" = ? LIMIT 1[0m [["order_id", 2]]
[1m[35mSimpleCart::CreditCard Load (0.1ms)[0m SELECT "simple_cart_credit_cards".* FROM "simple_cart_credit_cards" WHERE "simple_cart_credit_cards"."order_id" = ? LIMIT 1 [["order_id", 2]]
Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/_progress.html.haml (1.2ms)
[1m[36mSimpleCart::Delivery Load (0.2ms)[0m [1mSELECT "simple_cart_deliveries".* FROM "simple_cart_deliveries"[0m
[1m[35mSimpleCart::Delivery Load (0.1ms)[0m SELECT "simple_cart_deliveries".* FROM "simple_cart_deliveries" ORDER BY "simple_cart_deliveries"."id" ASC LIMIT 1
[1m[36mCACHE (0.0ms)[0m [1mSELECT "simple_cart_deliveries".* FROM "simple_cart_deliveries" ORDER BY "simple_cart_deliveries"."id" ASC LIMIT 1[0m
[1m[35mSimpleCart::Delivery Load (0.1ms)[0m SELECT "simple_cart_deliveries".* FROM "simple_cart_deliveries" WHERE "simple_cart_deliveries"."id" = ? LIMIT 1 [["id", 6]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "simple_cart_deliveries".* FROM "simple_cart_deliveries" ORDER BY "simple_cart_deliveries"."id" ASC LIMIT 1[0m
[1m[35mCACHE (0.0ms)[0m SELECT "simple_cart_deliveries".* FROM "simple_cart_deliveries" ORDER BY "simple_cart_deliveries"."id" ASC LIMIT 1
[1m[36mCACHE (0.0ms)[0m [1mSELECT "simple_cart_deliveries".* FROM "simple_cart_deliveries" ORDER BY "simple_cart_deliveries"."id" ASC LIMIT 1[0m
[1m[35mCACHE (0.0ms)[0m SELECT "simple_cart_deliveries".* FROM "simple_cart_deliveries" ORDER BY "simple_cart_deliveries"."id" ASC LIMIT 1
[1m[36mCACHE (0.0ms)[0m [1mSELECT "simple_cart_deliveries".* FROM "simple_cart_deliveries" ORDER BY "simple_cart_deliveries"."id" ASC LIMIT 1[0m
[1m[35mCACHE (0.0ms)[0m SELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1 [["id", "2"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1[0m [["id", "2"]]
[1m[35mCACHE (0.0ms)[0m SELECT "simple_cart_deliveries".* FROM "simple_cart_deliveries" WHERE "simple_cart_deliveries"."id" = ? LIMIT 1 [["id", 6]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1[0m [["id", "2"]]
[1m[35mCACHE (0.0ms)[0m SELECT "simple_cart_deliveries".* FROM "simple_cart_deliveries" WHERE "simple_cart_deliveries"."id" = ? LIMIT 1 [["id", 6]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1[0m [["id", "2"]]
[1m[35mCACHE (0.0ms)[0m SELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1 [["id", "2"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "simple_cart_deliveries".* FROM "simple_cart_deliveries" WHERE "simple_cart_deliveries"."id" = ? LIMIT 1[0m [["id", 6]]
Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/_summary.html.haml (4.4ms)
Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/delivery.html.haml within layouts/simple_cart/application (14.1ms)
Completed 200 OK in 46ms (Views: 39.3ms | ActiveRecord: 1.2ms)
Started GET "/assets/simple_cart/application.self-2f12d59583468bdcee27c6046669f62a778d265fc91cf385e5d36e9189ac822e.css?body=1" for 127.0.0.1 at 2016-03-14 21:19:00 +0200
Started GET "/assets/jquery.self-660adc51e0224b731d29f575a6f1ec167ba08ad06ed5deca4f1e8654c135bf4c.js?body=1" for 127.0.0.1 at 2016-03-14 21:19:00 +0200
Started GET "/assets/turbolinks.self-c37727e9bd6b2735da5c311aa83fead54ed0be6cc8bd9a65309e9c5abe2cbfff.js?body=1" for 127.0.0.1 at 2016-03-14 21:19:00 +0200
Started GET "/assets/jquery_ujs.self-e87806d0cf4489aeb1bb7288016024e8de67fd18db693fe026fe3907581e53cd.js?body=1" for 127.0.0.1 at 2016-03-14 21:19:00 +0200
Started GET "/assets/simple_cart/application.self-3b8dabdc891efe46b9a144b400ad69e37d7e5876bdc39dee783419a69d7ca819.js?body=1" for 127.0.0.1 at 2016-03-14 21:19:00 +0200
Started GET "/simple_cart/orders/2/checkout/delivery" for 127.0.0.1 at 2016-03-14 21:19:02 +0200
Processing by SimpleCart::CheckoutController#show as HTML
Parameters: {"order_id"=>"2", "id"=>"delivery"}
[1m[35mSimpleCart::Order Load (0.1ms)[0m SELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1 [["id", 2]]
[1m[36mSimpleCart::ShippingAddress Load (0.1ms)[0m [1mSELECT "simple_cart_addresses".* FROM "simple_cart_addresses" WHERE "simple_cart_addresses"."type" IN ('SimpleCart::ShippingAddress') AND "simple_cart_addresses"."order_id" = ? LIMIT 1[0m [["order_id", 2]]
[1m[35mSimpleCart::BillingAddress Load (0.1ms)[0m SELECT "simple_cart_addresses".* FROM "simple_cart_addresses" WHERE "simple_cart_addresses"."type" IN ('SimpleCart::BillingAddress') AND "simple_cart_addresses"."order_id" = ? LIMIT 1 [["order_id", 2]]
[1m[36mSimpleCart::CreditCard Load (0.1ms)[0m [1mSELECT "simple_cart_credit_cards".* FROM "simple_cart_credit_cards" WHERE "simple_cart_credit_cards"."order_id" = ? LIMIT 1[0m [["order_id", 2]]
Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/_progress.html.haml (2.1ms)
[1m[35mSimpleCart::Delivery Load (0.2ms)[0m SELECT "simple_cart_deliveries".* FROM "simple_cart_deliveries"
[1m[36mSimpleCart::Delivery Load (0.1ms)[0m [1mSELECT "simple_cart_deliveries".* FROM "simple_cart_deliveries" ORDER BY "simple_cart_deliveries"."id" ASC LIMIT 1[0m
[1m[35mCACHE (0.0ms)[0m SELECT "simple_cart_deliveries".* FROM "simple_cart_deliveries" ORDER BY "simple_cart_deliveries"."id" ASC LIMIT 1
[1m[36mSimpleCart::Delivery Load (0.1ms)[0m [1mSELECT "simple_cart_deliveries".* FROM "simple_cart_deliveries" WHERE "simple_cart_deliveries"."id" = ? LIMIT 1[0m [["id", 6]]
[1m[35mCACHE (0.0ms)[0m SELECT "simple_cart_deliveries".* FROM "simple_cart_deliveries" ORDER BY "simple_cart_deliveries"."id" ASC LIMIT 1
[1m[36mCACHE (0.0ms)[0m [1mSELECT "simple_cart_deliveries".* FROM "simple_cart_deliveries" ORDER BY "simple_cart_deliveries"."id" ASC LIMIT 1[0m
[1m[35mCACHE (0.0ms)[0m SELECT "simple_cart_deliveries".* FROM "simple_cart_deliveries" ORDER BY "simple_cart_deliveries"."id" ASC LIMIT 1
[1m[36mCACHE (0.0ms)[0m [1mSELECT "simple_cart_deliveries".* FROM "simple_cart_deliveries" ORDER BY "simple_cart_deliveries"."id" ASC LIMIT 1[0m
[1m[35mCACHE (0.0ms)[0m SELECT "simple_cart_deliveries".* FROM "simple_cart_deliveries" ORDER BY "simple_cart_deliveries"."id" ASC LIMIT 1
[1m[36mCACHE (0.0ms)[0m [1mSELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1[0m [["id", "2"]]
[1m[35mCACHE (0.0ms)[0m SELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1 [["id", "2"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "simple_cart_deliveries".* FROM "simple_cart_deliveries" WHERE "simple_cart_deliveries"."id" = ? LIMIT 1[0m [["id", 6]]
[1m[35mCACHE (0.0ms)[0m SELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1 [["id", "2"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "simple_cart_deliveries".* FROM "simple_cart_deliveries" WHERE "simple_cart_deliveries"."id" = ? LIMIT 1[0m [["id", 6]]
[1m[35mCACHE (0.0ms)[0m SELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1 [["id", "2"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1[0m [["id", "2"]]
[1m[35mCACHE (0.0ms)[0m SELECT "simple_cart_deliveries".* FROM "simple_cart_deliveries" WHERE "simple_cart_deliveries"."id" = ? LIMIT 1 [["id", 6]]
Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/_summary.html.haml (4.4ms)
Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/delivery.html.haml within layouts/simple_cart/application (16.1ms)
Completed 200 OK in 38ms (Views: 32.7ms | ActiveRecord: 1.0ms)
Started GET "/assets/jquery.self-660adc51e0224b731d29f575a6f1ec167ba08ad06ed5deca4f1e8654c135bf4c.js?body=1" for 127.0.0.1 at 2016-03-14 21:19:02 +0200
Started GET "/assets/simple_cart/application.self-2f12d59583468bdcee27c6046669f62a778d265fc91cf385e5d36e9189ac822e.css?body=1" for 127.0.0.1 at 2016-03-14 21:19:02 +0200
Started GET "/assets/jquery_ujs.self-e87806d0cf4489aeb1bb7288016024e8de67fd18db693fe026fe3907581e53cd.js?body=1" for 127.0.0.1 at 2016-03-14 21:19:02 +0200
Started GET "/assets/turbolinks.self-c37727e9bd6b2735da5c311aa83fead54ed0be6cc8bd9a65309e9c5abe2cbfff.js?body=1" for 127.0.0.1 at 2016-03-14 21:19:02 +0200
Started GET "/assets/simple_cart/application.self-3b8dabdc891efe46b9a144b400ad69e37d7e5876bdc39dee783419a69d7ca819.js?body=1" for 127.0.0.1 at 2016-03-14 21:19:02 +0200
[1m[36mSimpleCart::Delivery Load (0.2ms)[0m [1mSELECT "simple_cart_deliveries".* FROM "simple_cart_deliveries" WHERE "simple_cart_deliveries"."company" = ? LIMIT 1[0m [["company", "News"]]
[1m[35m (0.1ms)[0m begin transaction
[1m[36mSQL (0.2ms)[0m [1mDELETE FROM "simple_cart_deliveries" WHERE "simple_cart_deliveries"."id" = ?[0m [["id", 8]]
[1m[35m (70.7ms)[0m commit transaction
Started GET "/simple_cart/orders/2/checkout/delivery" for 127.0.0.1 at 2016-03-14 21:19:18 +0200
Processing by SimpleCart::CheckoutController#show as HTML
Parameters: {"order_id"=>"2", "id"=>"delivery"}
[1m[36mSimpleCart::Order Load (0.2ms)[0m [1mSELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1[0m [["id", 2]]
[1m[35mSimpleCart::ShippingAddress Load (0.1ms)[0m SELECT "simple_cart_addresses".* FROM "simple_cart_addresses" WHERE "simple_cart_addresses"."type" IN ('SimpleCart::ShippingAddress') AND "simple_cart_addresses"."order_id" = ? LIMIT 1 [["order_id", 2]]
[1m[36mSimpleCart::BillingAddress Load (0.1ms)[0m [1mSELECT "simple_cart_addresses".* FROM "simple_cart_addresses" WHERE "simple_cart_addresses"."type" IN ('SimpleCart::BillingAddress') AND "simple_cart_addresses"."order_id" = ? LIMIT 1[0m [["order_id", 2]]
[1m[35mSimpleCart::CreditCard Load (0.1ms)[0m SELECT "simple_cart_credit_cards".* FROM "simple_cart_credit_cards" WHERE "simple_cart_credit_cards"."order_id" = ? LIMIT 1 [["order_id", 2]]
Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/_progress.html.haml (1.6ms)
[1m[36mSimpleCart::Delivery Load (0.3ms)[0m [1mSELECT "simple_cart_deliveries".* FROM "simple_cart_deliveries"[0m
[1m[35mSimpleCart::Delivery Load (0.2ms)[0m SELECT "simple_cart_deliveries".* FROM "simple_cart_deliveries" ORDER BY "simple_cart_deliveries"."id" ASC LIMIT 1
[1m[36mCACHE (0.0ms)[0m [1mSELECT "simple_cart_deliveries".* FROM "simple_cart_deliveries" ORDER BY "simple_cart_deliveries"."id" ASC LIMIT 1[0m
[1m[35mSimpleCart::Delivery Load (0.1ms)[0m SELECT "simple_cart_deliveries".* FROM "simple_cart_deliveries" WHERE "simple_cart_deliveries"."id" = ? LIMIT 1 [["id", 6]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "simple_cart_deliveries".* FROM "simple_cart_deliveries" ORDER BY "simple_cart_deliveries"."id" ASC LIMIT 1[0m
[1m[35mCACHE (0.0ms)[0m SELECT "simple_cart_deliveries".* FROM "simple_cart_deliveries" ORDER BY "simple_cart_deliveries"."id" ASC LIMIT 1
[1m[36mCACHE (0.0ms)[0m [1mSELECT "simple_cart_deliveries".* FROM "simple_cart_deliveries" ORDER BY "simple_cart_deliveries"."id" ASC LIMIT 1[0m
[1m[35mCACHE (0.0ms)[0m SELECT "simple_cart_deliveries".* FROM "simple_cart_deliveries" ORDER BY "simple_cart_deliveries"."id" ASC LIMIT 1
[1m[36mCACHE (0.0ms)[0m [1mSELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1[0m [["id", "2"]]
[1m[35mCACHE (0.0ms)[0m SELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1 [["id", "2"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "simple_cart_deliveries".* FROM "simple_cart_deliveries" WHERE "simple_cart_deliveries"."id" = ? LIMIT 1[0m [["id", 6]]
[1m[35mCACHE (0.0ms)[0m SELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1 [["id", "2"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "simple_cart_deliveries".* FROM "simple_cart_deliveries" WHERE "simple_cart_deliveries"."id" = ? LIMIT 1[0m [["id", 6]]
[1m[35mCACHE (0.0ms)[0m SELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1 [["id", "2"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1[0m [["id", "2"]]
[1m[35mCACHE (0.0ms)[0m SELECT "simple_cart_deliveries".* FROM "simple_cart_deliveries" WHERE "simple_cart_deliveries"."id" = ? LIMIT 1 [["id", 6]]
Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/_summary.html.haml (3.6ms)
Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/delivery.html.haml within layouts/simple_cart/application (15.3ms)
Completed 200 OK in 38ms (Views: 31.1ms | ActiveRecord: 1.2ms)
Started GET "/assets/jquery.self-660adc51e0224b731d29f575a6f1ec167ba08ad06ed5deca4f1e8654c135bf4c.js?body=1" for 127.0.0.1 at 2016-03-14 21:19:18 +0200
Started GET "/assets/jquery_ujs.self-e87806d0cf4489aeb1bb7288016024e8de67fd18db693fe026fe3907581e53cd.js?body=1" for 127.0.0.1 at 2016-03-14 21:19:18 +0200
Started GET "/assets/simple_cart/application.self-2f12d59583468bdcee27c6046669f62a778d265fc91cf385e5d36e9189ac822e.css?body=1" for 127.0.0.1 at 2016-03-14 21:19:18 +0200
Started GET "/assets/turbolinks.self-c37727e9bd6b2735da5c311aa83fead54ed0be6cc8bd9a65309e9c5abe2cbfff.js?body=1" for 127.0.0.1 at 2016-03-14 21:19:18 +0200
Started GET "/assets/simple_cart/application.self-3b8dabdc891efe46b9a144b400ad69e37d7e5876bdc39dee783419a69d7ca819.js?body=1" for 127.0.0.1 at 2016-03-14 21:19:18 +0200
Started GET "/simple_cart/orders/2/checkout/delivery" for 127.0.0.1 at 2016-03-14 21:19:20 +0200
Processing by SimpleCart::CheckoutController#show as HTML
Parameters: {"order_id"=>"2", "id"=>"delivery"}
[1m[36mSimpleCart::Order Load (0.2ms)[0m [1mSELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1[0m [["id", 2]]
[1m[35mSimpleCart::ShippingAddress Load (0.2ms)[0m SELECT "simple_cart_addresses".* FROM "simple_cart_addresses" WHERE "simple_cart_addresses"."type" IN ('SimpleCart::ShippingAddress') AND "simple_cart_addresses"."order_id" = ? LIMIT 1 [["order_id", 2]]
[1m[36mSimpleCart::BillingAddress Load (0.2ms)[0m [1mSELECT "simple_cart_addresses".* FROM "simple_cart_addresses" WHERE "simple_cart_addresses"."type" IN ('SimpleCart::BillingAddress') AND "simple_cart_addresses"."order_id" = ? LIMIT 1[0m [["order_id", 2]]
[1m[35mSimpleCart::CreditCard Load (0.1ms)[0m SELECT "simple_cart_credit_cards".* FROM "simple_cart_credit_cards" WHERE "simple_cart_credit_cards"."order_id" = ? LIMIT 1 [["order_id", 2]]
Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/_progress.html.haml (1.6ms)
[1m[36mSimpleCart::Delivery Load (0.3ms)[0m [1mSELECT "simple_cart_deliveries".* FROM "simple_cart_deliveries"[0m
[1m[35mSimpleCart::Delivery Load (0.2ms)[0m SELECT "simple_cart_deliveries".* FROM "simple_cart_deliveries" ORDER BY "simple_cart_deliveries"."id" ASC LIMIT 1
[1m[36mCACHE (0.0ms)[0m [1mSELECT "simple_cart_deliveries".* FROM "simple_cart_deliveries" ORDER BY "simple_cart_deliveries"."id" ASC LIMIT 1[0m
[1m[35mSimpleCart::Delivery Load (0.1ms)[0m SELECT "simple_cart_deliveries".* FROM "simple_cart_deliveries" WHERE "simple_cart_deliveries"."id" = ? LIMIT 1 [["id", 6]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "simple_cart_deliveries".* FROM "simple_cart_deliveries" ORDER BY "simple_cart_deliveries"."id" ASC LIMIT 1[0m
[1m[35mCACHE (0.0ms)[0m SELECT "simple_cart_deliveries".* FROM "simple_cart_deliveries" ORDER BY "simple_cart_deliveries"."id" ASC LIMIT 1
[1m[36mCACHE (0.0ms)[0m [1mSELECT "simple_cart_deliveries".* FROM "simple_cart_deliveries" ORDER BY "simple_cart_deliveries"."id" ASC LIMIT 1[0m
[1m[35mCACHE (0.0ms)[0m SELECT "simple_cart_deliveries".* FROM "simple_cart_deliveries" ORDER BY "simple_cart_deliveries"."id" ASC LIMIT 1
[1m[36mCACHE (0.0ms)[0m [1mSELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1[0m [["id", "2"]]
[1m[35mCACHE (0.0ms)[0m SELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1 [["id", "2"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "simple_cart_deliveries".* FROM "simple_cart_deliveries" WHERE "simple_cart_deliveries"."id" = ? LIMIT 1[0m [["id", 6]]
[1m[35mCACHE (0.0ms)[0m SELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1 [["id", "2"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "simple_cart_deliveries".* FROM "simple_cart_deliveries" WHERE "simple_cart_deliveries"."id" = ? LIMIT 1[0m [["id", 6]]
[1m[35mCACHE (0.0ms)[0m SELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1 [["id", "2"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1[0m [["id", "2"]]
[1m[35mCACHE (0.0ms)[0m SELECT "simple_cart_deliveries".* FROM "simple_cart_deliveries" WHERE "simple_cart_deliveries"."id" = ? LIMIT 1 [["id", 6]]
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/delivery.html.haml within layouts/simple_cart/application (20.6ms)
Completed 200 OK in 50ms (Views: 41.6ms | ActiveRecord: 1.5ms)
Started GET "/assets/simple_cart/application.self-2f12d59583468bdcee27c6046669f62a778d265fc91cf385e5d36e9189ac822e.css?body=1" for 127.0.0.1 at 2016-03-14 21:19:20 +0200
Started GET "/assets/jquery_ujs.self-e87806d0cf4489aeb1bb7288016024e8de67fd18db693fe026fe3907581e53cd.js?body=1" for 127.0.0.1 at 2016-03-14 21:19:20 +0200
Started GET "/assets/simple_cart/application.self-3b8dabdc891efe46b9a144b400ad69e37d7e5876bdc39dee783419a69d7ca819.js?body=1" for 127.0.0.1 at 2016-03-14 21:19:20 +0200
Started GET "/assets/jquery.self-660adc51e0224b731d29f575a6f1ec167ba08ad06ed5deca4f1e8654c135bf4c.js?body=1" for 127.0.0.1 at 2016-03-14 21:19:20 +0200
Started GET "/assets/turbolinks.self-c37727e9bd6b2735da5c311aa83fead54ed0be6cc8bd9a65309e9c5abe2cbfff.js?body=1" for 127.0.0.1 at 2016-03-14 21:19:20 +0200
[1m[36mSimpleCart::Delivery Load (0.2ms)[0m [1mSELECT "simple_cart_deliveries".* FROM "simple_cart_deliveries" WHERE "simple_cart_deliveries"."company" = ? LIMIT 1[0m [["company", "New"]]
[1m[35m (0.1ms)[0m begin transaction
[1m[36mSQL (0.2ms)[0m [1mDELETE FROM "simple_cart_deliveries" WHERE "simple_cart_deliveries"."id" = ?[0m [["id", 6]]
[1m[35m (59.1ms)[0m commit transaction
Started GET "/simple_cart/orders/2/checkout/delivery" for 127.0.0.1 at 2016-03-14 21:19:27 +0200
Processing by SimpleCart::CheckoutController#show as HTML
Parameters: {"order_id"=>"2", "id"=>"delivery"}
[1m[36mSimpleCart::Order Load (0.1ms)[0m [1mSELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1[0m [["id", 2]]
[1m[35mSimpleCart::ShippingAddress Load (0.1ms)[0m SELECT "simple_cart_addresses".* FROM "simple_cart_addresses" WHERE "simple_cart_addresses"."type" IN ('SimpleCart::ShippingAddress') AND "simple_cart_addresses"."order_id" = ? LIMIT 1 [["order_id", 2]]
[1m[36mSimpleCart::BillingAddress Load (0.1ms)[0m [1mSELECT "simple_cart_addresses".* FROM "simple_cart_addresses" WHERE "simple_cart_addresses"."type" IN ('SimpleCart::BillingAddress') AND "simple_cart_addresses"."order_id" = ? LIMIT 1[0m [["order_id", 2]]
[1m[35mSimpleCart::CreditCard Load (0.1ms)[0m SELECT "simple_cart_credit_cards".* FROM "simple_cart_credit_cards" WHERE "simple_cart_credit_cards"."order_id" = ? LIMIT 1 [["order_id", 2]]
Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/_progress.html.haml (1.2ms)
[1m[36mSimpleCart::Delivery Load (0.4ms)[0m [1mSELECT "simple_cart_deliveries".* FROM "simple_cart_deliveries"[0m
[1m[35mSimpleCart::Delivery Load (0.2ms)[0m SELECT "simple_cart_deliveries".* FROM "simple_cart_deliveries" ORDER BY "simple_cart_deliveries"."id" ASC LIMIT 1
[1m[36mCACHE (0.0ms)[0m [1mSELECT "simple_cart_deliveries".* FROM "simple_cart_deliveries" ORDER BY "simple_cart_deliveries"."id" ASC LIMIT 1[0m
[1m[35mSimpleCart::Delivery Load (0.1ms)[0m SELECT "simple_cart_deliveries".* FROM "simple_cart_deliveries" WHERE "simple_cart_deliveries"."id" = ? LIMIT 1 [["id", 6]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "simple_cart_deliveries".* FROM "simple_cart_deliveries" ORDER BY "simple_cart_deliveries"."id" ASC LIMIT 1[0m
[1m[35mCACHE (0.0ms)[0m SELECT "simple_cart_deliveries".* FROM "simple_cart_deliveries" ORDER BY "simple_cart_deliveries"."id" ASC LIMIT 1
[1m[36mCACHE (0.0ms)[0m [1mSELECT "simple_cart_deliveries".* FROM "simple_cart_deliveries" ORDER BY "simple_cart_deliveries"."id" ASC LIMIT 1[0m
[1m[35mCACHE (0.0ms)[0m SELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1 [["id", "2"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1[0m [["id", "2"]]
[1m[35mCACHE (0.0ms)[0m SELECT "simple_cart_deliveries".* FROM "simple_cart_deliveries" WHERE "simple_cart_deliveries"."id" = ? LIMIT 1 [["id", 6]]
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 (12.5ms)
Completed 200 OK in 34ms (Views: 29.0ms | ActiveRecord: 1.2ms)
Started GET "/assets/simple_cart/application.self-2f12d59583468bdcee27c6046669f62a778d265fc91cf385e5d36e9189ac822e.css?body=1" for 127.0.0.1 at 2016-03-14 21:19:27 +0200
Started GET "/assets/jquery.self-660adc51e0224b731d29f575a6f1ec167ba08ad06ed5deca4f1e8654c135bf4c.js?body=1" for 127.0.0.1 at 2016-03-14 21:19:27 +0200
Started GET "/assets/jquery_ujs.self-e87806d0cf4489aeb1bb7288016024e8de67fd18db693fe026fe3907581e53cd.js?body=1" for 127.0.0.1 at 2016-03-14 21:19:27 +0200
Started GET "/assets/turbolinks.self-c37727e9bd6b2735da5c311aa83fead54ed0be6cc8bd9a65309e9c5abe2cbfff.js?body=1" for 127.0.0.1 at 2016-03-14 21:19:27 +0200
Started GET "/assets/simple_cart/application.self-3b8dabdc891efe46b9a144b400ad69e37d7e5876bdc39dee783419a69d7ca819.js?body=1" for 127.0.0.1 at 2016-03-14 21:19:27 +0200
[1m[36mSQL (81.8ms)[0m [1mDELETE FROM "simple_cart_deliveries"[0m
Started GET "/simple_cart/orders/2/checkout/delivery" for 127.0.0.1 at 2016-03-14 21:19:58 +0200
Processing by SimpleCart::CheckoutController#show as HTML
Parameters: {"order_id"=>"2", "id"=>"delivery"}
[1m[36mSimpleCart::Order Load (0.2ms)[0m [1mSELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1[0m [["id", 2]]
[1m[35mSimpleCart::ShippingAddress Load (0.2ms)[0m SELECT "simple_cart_addresses".* FROM "simple_cart_addresses" WHERE "simple_cart_addresses"."type" IN ('SimpleCart::ShippingAddress') AND "simple_cart_addresses"."order_id" = ? LIMIT 1 [["order_id", 2]]
[1m[36mSimpleCart::BillingAddress Load (0.3ms)[0m [1mSELECT "simple_cart_addresses".* FROM "simple_cart_addresses" WHERE "simple_cart_addresses"."type" IN ('SimpleCart::BillingAddress') AND "simple_cart_addresses"."order_id" = ? LIMIT 1[0m [["order_id", 2]]
[1m[35mSimpleCart::CreditCard Load (0.1ms)[0m SELECT "simple_cart_credit_cards".* FROM "simple_cart_credit_cards" WHERE "simple_cart_credit_cards"."order_id" = ? LIMIT 1 [["order_id", 2]]
Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/_progress.html.haml (1.2ms)
[1m[36mSimpleCart::Delivery Load (0.1ms)[0m [1mSELECT "simple_cart_deliveries".* FROM "simple_cart_deliveries"[0m
[1m[35mCACHE (0.0ms)[0m SELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1 [["id", "2"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1[0m [["id", "2"]]
[1m[35mSimpleCart::Delivery Load (0.1ms)[0m SELECT "simple_cart_deliveries".* FROM "simple_cart_deliveries" WHERE "simple_cart_deliveries"."id" = ? LIMIT 1 [["id", 6]]
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/delivery.html.haml within layouts/simple_cart/application (5.4ms)
Completed 200 OK in 30ms (Views: 23.9ms | ActiveRecord: 0.9ms)
Started GET "/assets/simple_cart/application.self-2f12d59583468bdcee27c6046669f62a778d265fc91cf385e5d36e9189ac822e.css?body=1" for 127.0.0.1 at 2016-03-14 21:19:59 +0200
Started GET "/assets/jquery_ujs.self-e87806d0cf4489aeb1bb7288016024e8de67fd18db693fe026fe3907581e53cd.js?body=1" for 127.0.0.1 at 2016-03-14 21:19:59 +0200
Started GET "/assets/simple_cart/application.self-3b8dabdc891efe46b9a144b400ad69e37d7e5876bdc39dee783419a69d7ca819.js?body=1" for 127.0.0.1 at 2016-03-14 21:19:59 +0200
Started GET "/assets/turbolinks.self-c37727e9bd6b2735da5c311aa83fead54ed0be6cc8bd9a65309e9c5abe2cbfff.js?body=1" for 127.0.0.1 at 2016-03-14 21:19:59 +0200
Started GET "/assets/jquery.self-660adc51e0224b731d29f575a6f1ec167ba08ad06ed5deca4f1e8654c135bf4c.js?body=1" for 127.0.0.1 at 2016-03-14 21:19:59 +0200
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
[1m[35mSQL (0.3ms)[0m INSERT INTO "simple_cart_deliveries" ("company", "costs", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["company", "UPS"], ["costs", 20.0], ["created_at", "2016-03-14 19:20:26.585099"], ["updated_at", "2016-03-14 19:20:26.585099"]]
[1m[36m (50.7ms)[0m [1mcommit transaction[0m
Started GET "/simple_cart/orders/2/checkout/delivery" for 127.0.0.1 at 2016-03-14 21:20:30 +0200
Processing by SimpleCart::CheckoutController#show as HTML
Parameters: {"order_id"=>"2", "id"=>"delivery"}
[1m[36mSimpleCart::Order Load (0.1ms)[0m [1mSELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1[0m [["id", 2]]
[1m[35mSimpleCart::ShippingAddress Load (0.1ms)[0m SELECT "simple_cart_addresses".* FROM "simple_cart_addresses" WHERE "simple_cart_addresses"."type" IN ('SimpleCart::ShippingAddress') AND "simple_cart_addresses"."order_id" = ? LIMIT 1 [["order_id", 2]]
[1m[36mSimpleCart::BillingAddress Load (0.1ms)[0m [1mSELECT "simple_cart_addresses".* FROM "simple_cart_addresses" WHERE "simple_cart_addresses"."type" IN ('SimpleCart::BillingAddress') AND "simple_cart_addresses"."order_id" = ? LIMIT 1[0m [["order_id", 2]]
[1m[35mSimpleCart::CreditCard Load (0.1ms)[0m SELECT "simple_cart_credit_cards".* FROM "simple_cart_credit_cards" WHERE "simple_cart_credit_cards"."order_id" = ? LIMIT 1 [["order_id", 2]]
Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/_progress.html.haml (1.2ms)
[1m[36mSimpleCart::Delivery Load (0.2ms)[0m [1mSELECT "simple_cart_deliveries".* FROM "simple_cart_deliveries"[0m
[1m[35mSimpleCart::Delivery Load (0.1ms)[0m SELECT "simple_cart_deliveries".* FROM "simple_cart_deliveries" ORDER BY "simple_cart_deliveries"."id" ASC LIMIT 1
[1m[36mCACHE (0.0ms)[0m [1mSELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1[0m [["id", "2"]]
[1m[35mCACHE (0.0ms)[0m SELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1 [["id", "2"]]
[1m[36mSimpleCart::Delivery Load (0.1ms)[0m [1mSELECT "simple_cart_deliveries".* FROM "simple_cart_deliveries" WHERE "simple_cart_deliveries"."id" = ? LIMIT 1[0m [["id", 6]]
Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/_summary.html.haml (1.9ms)
Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/delivery.html.haml within layouts/simple_cart/application (7.6ms)
Completed 200 OK in 29ms (Views: 24.2ms | ActiveRecord: 0.9ms)
Started GET "/assets/simple_cart/application.self-2f12d59583468bdcee27c6046669f62a778d265fc91cf385e5d36e9189ac822e.css?body=1" for 127.0.0.1 at 2016-03-14 21:20:31 +0200
Started GET "/assets/jquery.self-660adc51e0224b731d29f575a6f1ec167ba08ad06ed5deca4f1e8654c135bf4c.js?body=1" for 127.0.0.1 at 2016-03-14 21:20:31 +0200
Started GET "/assets/turbolinks.self-c37727e9bd6b2735da5c311aa83fead54ed0be6cc8bd9a65309e9c5abe2cbfff.js?body=1" for 127.0.0.1 at 2016-03-14 21:20:31 +0200
Started GET "/assets/jquery_ujs.self-e87806d0cf4489aeb1bb7288016024e8de67fd18db693fe026fe3907581e53cd.js?body=1" for 127.0.0.1 at 2016-03-14 21:20:31 +0200
Started GET "/assets/simple_cart/application.self-3b8dabdc891efe46b9a144b400ad69e37d7e5876bdc39dee783419a69d7ca819.js?body=1" for 127.0.0.1 at 2016-03-14 21:20:31 +0200
Started PATCH "/simple_cart/orders/2/checkout/delivery" for 127.0.0.1 at 2016-03-14 21:20:32 +0200
Processing by SimpleCart::CheckoutController#update as HTML
Parameters: {"utf8"=>"✓", "authenticity_token"=>"hTT4hg5HdlSPdWXxBP3C/C3EFuYfmBC88GQSbYsxdXztbr1EZX92iYN+ok2ZG9A7F1gzbquXZgZhJMFjdMC6dQ==", "order"=>{"delivery_id"=>"9"}, "commit"=>"Continue", "order_id"=>"2", "id"=>"delivery"}
[1m[35mSimpleCart::Order Load (0.5ms)[0m SELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1 [["id", 2]]
[1m[36mSimpleCart::Delivery Load (0.1ms)[0m [1mSELECT "simple_cart_deliveries".* FROM "simple_cart_deliveries" WHERE "simple_cart_deliveries"."id" = ? LIMIT 1[0m [["id", 9]]
[1m[35m (0.1ms)[0m begin transaction
[1m[36mSQL (0.2ms)[0m [1mUPDATE "simple_cart_orders" SET "delivery_id" = ?, "updated_at" = ? WHERE "simple_cart_orders"."id" = ?[0m [["delivery_id", 9], ["updated_at", "2016-03-14 19:20:32.348577"], ["id", 2]]
[1m[35m (78.4ms)[0m commit transaction
Redirected to http://localhost:3000/simple_cart/orders/2/checkout/payment
Completed 302 Found in 84ms (ActiveRecord: 79.3ms)
Started GET "/simple_cart/orders/2/checkout/payment" for 127.0.0.1 at 2016-03-14 21:20:32 +0200
Processing by SimpleCart::CheckoutController#show as HTML
Parameters: {"order_id"=>"2", "id"=>"payment"}
[1m[36mSimpleCart::Order Load (0.1ms)[0m [1mSELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1[0m [["id", 2]]
[1m[35mSimpleCart::Delivery Load (0.1ms)[0m SELECT "simple_cart_deliveries".* FROM "simple_cart_deliveries" WHERE "simple_cart_deliveries"."id" = ? LIMIT 1 [["id", 9]]
[1m[36mSimpleCart::BillingAddress Load (0.1ms)[0m [1mSELECT "simple_cart_addresses".* FROM "simple_cart_addresses" WHERE "simple_cart_addresses"."type" IN ('SimpleCart::BillingAddress') AND "simple_cart_addresses"."order_id" = ? LIMIT 1[0m [["order_id", 2]]
[1m[35mSimpleCart::ShippingAddress Load (0.1ms)[0m SELECT "simple_cart_addresses".* FROM "simple_cart_addresses" WHERE "simple_cart_addresses"."type" IN ('SimpleCart::ShippingAddress') AND "simple_cart_addresses"."order_id" = ? LIMIT 1 [["order_id", 2]]
[1m[36mSimpleCart::CreditCard Load (0.0ms)[0m [1mSELECT "simple_cart_credit_cards".* FROM "simple_cart_credit_cards" WHERE "simple_cart_credit_cards"."order_id" = ? LIMIT 1[0m [["order_id", 2]]
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 (7.2ms)
Completed 200 OK in 38ms (Views: 33.5ms | ActiveRecord: 0.5ms)
Started PATCH "/simple_cart/orders/2/checkout/payment" for 127.0.0.1 at 2016-03-14 21:20:39 +0200
Processing by SimpleCart::CheckoutController#update as HTML
Parameters: {"utf8"=>"✓", "authenticity_token"=>"oKAXENP7Tja/0QOHB0lTyUH4UpdVuS9T88uszbVD2tbI+lLSuMNO67PaxDuar0EOe2R3H+G2Welii3/DSrIV3w==", "order"=>{"credit_card_attributes"=>{"number"=>"1111111111111111", "expiration_month"=>"01", "expiration_year"=>"2017", "cvv"=>"252", "firstname"=>"125", "lastname"=>"125"}}, "commit"=>"Continue", "order_id"=>"2", "id"=>"payment"}
[1m[35mSimpleCart::Order Load (0.2ms)[0m SELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1 [["id", 2]]
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
[1m[35mSimpleCart::CreditCard Load (0.1ms)[0m SELECT "simple_cart_credit_cards".* FROM "simple_cart_credit_cards" WHERE "simple_cart_credit_cards"."order_id" = ? LIMIT 1 [["order_id", 2]]
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "simple_cart_credit_cards" ("number", "expiration_month", "expiration_year", "cvv", "firstname", "lastname", "order_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["number", "1111111111111111"], ["expiration_month", "01"], ["expiration_year", "2017"], ["cvv", "252"], ["firstname", "125"], ["lastname", "125"], ["order_id", 2], ["created_at", "2016-03-14 19:20:39.319648"], ["updated_at", "2016-03-14 19:20:39.319648"]]
[1m[35m (72.0ms)[0m commit transaction
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
[1m[35m (0.1ms)[0m commit transaction
Redirected to http://localhost:3000/simple_cart/orders/2/checkout/confirm
Completed 302 Found in 81ms (ActiveRecord: 72.9ms)
Started GET "/simple_cart/orders/2/checkout/confirm" for 127.0.0.1 at 2016-03-14 21:20:39 +0200
Processing by SimpleCart::CheckoutController#show as HTML
Parameters: {"order_id"=>"2", "id"=>"confirm"}
[1m[36mSimpleCart::Order Load (0.1ms)[0m [1mSELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1[0m [["id", 2]]
[1m[35mSimpleCart::CreditCard Load (0.1ms)[0m SELECT "simple_cart_credit_cards".* FROM "simple_cart_credit_cards" WHERE "simple_cart_credit_cards"."order_id" = ? LIMIT 1 [["order_id", 2]]
[1m[36mSimpleCart::BillingAddress Load (0.1ms)[0m [1mSELECT "simple_cart_addresses".* FROM "simple_cart_addresses" WHERE "simple_cart_addresses"."type" IN ('SimpleCart::BillingAddress') AND "simple_cart_addresses"."order_id" = ? LIMIT 1[0m [["order_id", 2]]
[1m[35mSimpleCart::ShippingAddress Load (0.1ms)[0m SELECT "simple_cart_addresses".* FROM "simple_cart_addresses" WHERE "simple_cart_addresses"."type" IN ('SimpleCart::ShippingAddress') AND "simple_cart_addresses"."order_id" = ? LIMIT 1 [["order_id", 2]]
Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/_progress.html.haml (1.1ms)
[1m[36mSimpleCart::Delivery Load (0.1ms)[0m [1mSELECT "simple_cart_deliveries".* FROM "simple_cart_deliveries" WHERE "simple_cart_deliveries"."id" = ? LIMIT 1[0m [["id", 9]]
Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/_overview.html.haml (2.3ms)
[1m[35mSimpleCart::OrderItem Exists (0.2ms)[0m SELECT 1 AS one FROM "simple_cart_order_items" WHERE "simple_cart_order_items"."order_id" = ? LIMIT 1 [["order_id", "2"]]
[1m[36mSimpleCart::OrderItem Load (0.2ms)[0m [1mSELECT "simple_cart_order_items".* FROM "simple_cart_order_items" WHERE "simple_cart_order_items"."order_id" = ?[0m [["order_id", "2"]]
[1m[35mThing Load (0.1ms)[0m SELECT "things".* FROM "things" WHERE "things"."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 (12.6ms)
Completed 200 OK in 33ms (Views: 28.9ms | ActiveRecord: 0.9ms)
Started PATCH "/simple_cart/orders/2" for 127.0.0.1 at 2016-03-14 21:20:41 +0200
Processing by SimpleCart::OrdersController#update as HTML
Parameters: {"authenticity_token"=>"LEcDnLGFQJu/WJurW5Q0105VrccnJ7aLG+BHcX8dYmpEHUZe2r1ARrNTXBfGciYQdMmIT5MowDGKoJR/gOytYw==", "id"=>"2"}
[1m[36mSimpleCart::Order Load (0.1ms)[0m [1mSELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1[0m [["id", 2]]
[1m[35m (0.1ms)[0m begin transaction
[1m[36mSQL (0.2ms)[0m [1mUPDATE "simple_cart_orders" SET "aasm_state" = ?, "updated_at" = ? WHERE "simple_cart_orders"."id" = ?[0m [["aasm_state", "in_queue"], ["updated_at", "2016-03-14 19:20:41.545591"], ["id", 2]]
[1m[35m (51.9ms)[0m commit transaction
[1m[36mSimpleCart::Delivery Load (0.1ms)[0m [1mSELECT "simple_cart_deliveries".* FROM "simple_cart_deliveries" WHERE "simple_cart_deliveries"."id" = ? LIMIT 1[0m [["id", 9]]
[1m[35m (0.1ms)[0m begin transaction
[1m[36mSQL (0.2ms)[0m [1mUPDATE "simple_cart_orders" SET "total_price" = ?, "updated_at" = ? WHERE "simple_cart_orders"."id" = ?[0m [["total_price", 104522.0], ["updated_at", "2016-03-14 19:20:41.600398"], ["id", 2]]
[1m[35m (329.0ms)[0m commit transaction
Redirected to http://localhost:3000/simple_cart/orders/2
Completed 302 Found in 391ms (ActiveRecord: 381.6ms)
Started GET "/simple_cart/orders/2" for 127.0.0.1 at 2016-03-14 21:20:41 +0200
Processing by SimpleCart::OrdersController#show as HTML
Parameters: {"id"=>"2"}
[1m[36mSimpleCart::Order Load (0.2ms)[0m [1mSELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1[0m [["id", 2]]
[1m[35mSimpleCart::BillingAddress Load (0.2ms)[0m SELECT "simple_cart_addresses".* FROM "simple_cart_addresses" WHERE "simple_cart_addresses"."type" IN ('SimpleCart::BillingAddress') AND "simple_cart_addresses"."order_id" = ? LIMIT 1 [["order_id", 2]]
[1m[36mSimpleCart::ShippingAddress Load (0.2ms)[0m [1mSELECT "simple_cart_addresses".* FROM "simple_cart_addresses" WHERE "simple_cart_addresses"."type" IN ('SimpleCart::ShippingAddress') AND "simple_cart_addresses"."order_id" = ? LIMIT 1[0m [["order_id", 2]]
[1m[35mSimpleCart::Delivery Load (0.1ms)[0m SELECT "simple_cart_deliveries".* FROM "simple_cart_deliveries" WHERE "simple_cart_deliveries"."id" = ? LIMIT 1 [["id", 9]]
[1m[36mSimpleCart::CreditCard Load (0.1ms)[0m [1mSELECT "simple_cart_credit_cards".* FROM "simple_cart_credit_cards" WHERE "simple_cart_credit_cards"."order_id" = ? LIMIT 1[0m [["order_id", 2]]
[1m[35mSimpleCart::OrderItem Exists (0.1ms)[0m SELECT 1 AS one FROM "simple_cart_order_items" WHERE "simple_cart_order_items"."order_id" = ? LIMIT 1 [["order_id", "2"]]
[1m[36mSimpleCart::OrderItem Load (0.1ms)[0m [1mSELECT "simple_cart_order_items".* FROM "simple_cart_order_items" WHERE "simple_cart_order_items"."order_id" = ?[0m [["order_id", "2"]]
[1m[35mThing Load (0.0ms)[0m SELECT "things".* FROM "things" WHERE "things"."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 (10.5ms)
Completed 200 OK in 31ms (Views: 28.7ms | ActiveRecord: 1.0ms)
Started GET "/simple_cart/orders" for 127.0.0.1 at 2016-03-14 21:20:43 +0200
Processing by SimpleCart::OrdersController#index as HTML
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "simple_cart_orders"[0m
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "simple_cart_orders" WHERE "simple_cart_orders"."aasm_state" = ? [["aasm_state", "in_progress"]]
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "simple_cart_orders" WHERE "simple_cart_orders"."aasm_state" = ?[0m [["aasm_state", "in_queue"]]
[1m[35mSimpleCart::Order Load (0.1ms)[0m 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"]]
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "simple_cart_orders" WHERE "simple_cart_orders"."aasm_state" = ?[0m [["aasm_state", "delivered"]]
Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/orders/index.html.haml within layouts/simple_cart/application (14.0ms)
Completed 200 OK in 34ms (Views: 32.1ms | ActiveRecord: 0.6ms)
Started GET "/kks" for 127.0.0.1 at 2016-03-14 22:00:01 +0200
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
ActiveRecord::PendingMigrationError (
Migrations are pending. To resolve this issue, run:
bin/rake db:migrate RAILS_ENV=development
):
activerecord (4.2.5.2) lib/active_record/migration.rb:392:in `check_pending!'
activerecord (4.2.5.2) lib/active_record/migration.rb:373: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 (2.1ms)
Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (1.2ms)
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.7ms)
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 (13.7ms)
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
Migrating to CreateKks (20160314195958)
[1m[35m (0.1ms)[0m begin transaction
[1m[36m (0.3ms)[0m [1mCREATE TABLE "kks" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "price" decimal, "qty" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20160314195958"]]
[1m[36m (47.4ms)[0m [1mcommit transaction[0m
[1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
[1m[36m (0.2ms)[0m [1m 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'
[0m
[1m[35m (0.1ms)[0m 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'
[1m[36m (0.1ms)[0m [1m 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'
[0m
[1m[35m (0.1ms)[0m 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'
Started GET "/kks" for 127.0.0.1 at 2016-03-14 22:00:07 +0200
[1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
Processing by KksController#index as HTML
[1m[36mKk Load (0.1ms)[0m [1mSELECT "kks".* FROM "kks"[0m
Rendered kks/index.html.erb within layouts/application (1.9ms)
Completed 200 OK in 264ms (Views: 256.3ms | ActiveRecord: 0.2ms)
Started GET "/assets/kks.self-e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855.css?body=1" for 127.0.0.1 at 2016-03-14 22:00:08 +0200
Started GET "/assets/kks.self-19a187bec6cdb96d6de80a61c16c857c613536adf9138476bd367db38d282635.js?body=1" for 127.0.0.1 at 2016-03-14 22:00:08 +0200
Started GET "/kks" for 127.0.0.1 at 2016-03-14 22:00:30 +0200
Processing by KksController#index as HTML
[1m[35mKk Load (0.2ms)[0m SELECT "kks".* FROM "kks"
Rendered kks/index.html.erb within layouts/application (1.2ms)
Completed 200 OK in 25ms (Views: 24.5ms | ActiveRecord: 0.2ms)
Started GET "/kks/new" for 127.0.0.1 at 2016-03-14 22:00:31 +0200
Processing by KksController#new as HTML
Rendered kks/_form.html.erb (16.8ms)
Rendered kks/new.html.erb within layouts/application (21.7ms)
Completed 200 OK in 62ms (Views: 46.7ms | ActiveRecord: 0.3ms)
Started POST "/kks" for 127.0.0.1 at 2016-03-14 22:00:34 +0200
Processing by KksController#create as HTML
Parameters: {"utf8"=>"✓", "authenticity_token"=>"IVzupvkYRjsE0x9uqPcsBIVLemgd9KGN2G1rfOoKqq5JBqtkkiBG5gjY2NI1ET7Dv9df4Kn71zdJLbhyFftlpw==", "kk"=>{"name"=>"gas", "price"=>"2", "qty"=>"5"}, "commit"=>"Create Kk"}
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
[1m[35mSQL (0.3ms)[0m INSERT INTO "kks" ("name", "price", "qty", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["name", "gas"], ["price", 2.0], ["qty", 5], ["created_at", "2016-03-14 20:00:34.147007"], ["updated_at", "2016-03-14 20:00:34.147007"]]
[1m[36m (53.0ms)[0m [1mcommit transaction[0m
Redirected to http://localhost:3000/kks/1
Completed 302 Found in 64ms (ActiveRecord: 53.5ms)
Started GET "/kks/1" for 127.0.0.1 at 2016-03-14 22:00:34 +0200
Processing by KksController#show as HTML
Parameters: {"id"=>"1"}
[1m[35mKk Load (0.2ms)[0m 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 (18.1ms)
Rendered kks/show.html.erb within layouts/application (20.2ms)
Completed 200 OK in 44ms (Views: 36.4ms | ActiveRecord: 0.2ms)
Started GET "/" for 127.0.0.1 at 2016-03-14 22:45:40 +0200
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
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 (1.2ms)
Completed 200 OK in 14ms (Views: 6.5ms | ActiveRecord: 0.0ms)
Started GET "/" for 127.0.0.1 at 2016-03-14 22:45:40 +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.0ms)
Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms)
Started GET "/admin" for 127.0.0.1 at 2016-03-14 22:45:44 +0200
ActionController::RoutingError (No route matches [GET] "/admin"):
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.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/_trace.html.erb (1.4ms)
Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/routes/_route.html.erb (1.9ms)
Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/routes/_route.html.erb (0.7ms)
Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/routes/_table.html.erb (2.2ms)
Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (1.2ms)
Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/rescues/routing_error.html.erb within rescues/layout (35.9ms)
Started GET "/credit_card/edit" for 127.0.0.1 at 2016-03-14 22:45:48 +0200
ActionController::RoutingError (No route matches [GET] "/credit_card/edit"):
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.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/_trace.html.erb (1.2ms)
Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/routes/_route.html.erb (2.0ms)
Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/routes/_route.html.erb (0.9ms)
Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/routes/_table.html.erb (1.4ms)
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.3ms)
Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/rescues/routing_error.html.erb within rescues/layout (34.4ms)
Started GET "/credit_card/" for 127.0.0.1 at 2016-03-14 22:45:50 +0200
ActionController::RoutingError (No route matches [GET] "/credit_card"):
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.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/_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/routes/_route.html.erb (2.0ms)
Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/routes/_route.html.erb (0.8ms)
Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/routes/_table.html.erb (1.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 (1.3ms)
Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/rescues/routing_error.html.erb within rescues/layout (34.9ms)
Started GET "/simple_cart/" for 127.0.0.1 at 2016-03-14 22:45:54 +0200
Processing by SimpleCart::CartsController#show as HTML
[1m[35mThing Load (0.2ms)[0m SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1[0m [["id", "1"]]
[1m[35mCACHE (0.0ms)[0m 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 (39.7ms)
Completed 200 OK in 280ms (Views: 277.3ms | ActiveRecord: 0.5ms)
Started GET "/simple_cart/" for 127.0.0.1 at 2016-03-14 22:45:55 +0200
Processing by SimpleCart::CartsController#show as HTML
[1m[36mThing Load (0.1ms)[0m [1mSELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mCACHE (0.0ms)[0m SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", "1"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1[0m [["id", "1"]]
Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml within layouts/simple_cart/application (8.8ms)
Completed 200 OK in 30ms (Views: 29.0ms | ActiveRecord: 0.1ms)
Started POST "/simple_cart/cart/checkout" for 127.0.0.1 at 2016-03-14 22:45:57 +0200
Processing by SimpleCart::CartsController#checkout as HTML
Parameters: {"authenticity_token"=>"G5zvICYXn6DeKpQ+Jkmcz2P5v2GqkmfAmkpuPlzSzy1zxqriTS+ffdIhU4K7r44IWWWa6R6dEXoLCr0woyMAJA=="}
[1m[35mThing Load (0.1ms)[0m SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1[0m [["id", "1"]]
[1m[35m (0.1ms)[0m begin transaction
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "simple_cart_orders" ("total_price", "completed_date", "aasm_state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["total_price", 104502.0], ["completed_date", "2016-03-14"], ["aasm_state", "in_progress"], ["created_at", "2016-03-14 20:45:57.485646"], ["updated_at", "2016-03-14 20:45:57.485646"]]
[1m[35mSQL (0.2ms)[0m INSERT INTO "simple_cart_order_items" ("price", "qty", "itemable_id", "itemable_type", "order_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["price", 52251.0], ["qty", 2], ["itemable_id", 1], ["itemable_type", "Thing"], ["order_id", "3"], ["created_at", "2016-03-14 20:45:57.488833"], ["updated_at", "2016-03-14 20:45:57.488833"]]
[1m[36m (205.9ms)[0m [1mcommit transaction[0m
Redirected to http://localhost:3000/simple_cart/orders/3/checkout
Completed 302 Found in 306ms (ActiveRecord: 207.7ms)
Started GET "/simple_cart/orders/3/checkout" for 127.0.0.1 at 2016-03-14 22:45:57 +0200
Processing by SimpleCart::CheckoutController#index as HTML
Parameters: {"order_id"=>"3"}
[1m[35mSimpleCart::Order Load (1.2ms)[0m SELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1 [["id", 3]]
Redirected to http://localhost:3000/simple_cart/orders/3/checkout/billing
Completed 302 Found in 3ms (ActiveRecord: 1.2ms)
Started GET "/simple_cart/orders/3/checkout/billing" for 127.0.0.1 at 2016-03-14 22:45:57 +0200
Processing by SimpleCart::CheckoutController#show as HTML
Parameters: {"order_id"=>"3", "id"=>"billing"}
[1m[36mSimpleCart::Order Load (0.1ms)[0m [1mSELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1[0m [["id", 3]]
[1m[35mSimpleCart::BillingAddress Load (0.5ms)[0m 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", 3]]
[1m[36mSimpleCart::ShippingAddress Load (0.3ms)[0m [1mSELECT "simple_cart_addresses".* FROM "simple_cart_addresses" WHERE "simple_cart_addresses"."type" IN ('SimpleCart::ShippingAddress') AND "simple_cart_addresses"."order_id" = ? LIMIT 1[0m [["order_id", 3]]
[1m[35mSimpleCart::CreditCard Load (0.2ms)[0m SELECT "simple_cart_credit_cards".* FROM "simple_cart_credit_cards" WHERE "simple_cart_credit_cards"."order_id" = ? LIMIT 1 [["order_id", 3]]
Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/_progress.html.haml (3.4ms)
Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/_address.html.haml (16.0ms)
[1m[36mCACHE (0.0ms)[0m [1mSELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1[0m [["id", "3"]]
[1m[35mCACHE (0.0ms)[0m SELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1 [["id", "3"]]
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/billing.html.haml within layouts/simple_cart/application (35.2ms)
Completed 200 OK in 122ms (Views: 61.0ms | ActiveRecord: 1.8ms)
Started GET "/simple_cart/" for 127.0.0.1 at 2016-03-14 22:46:00 +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 (13.0ms)
Completed 200 OK in 46ms (Views: 45.7ms | ActiveRecord: 0.0ms)
Started POST "/simple_cart/cart/checkout" for 127.0.0.1 at 2016-03-14 22:46:03 +0200
Processing by SimpleCart::CartsController#checkout as HTML
Parameters: {"authenticity_token"=>"B1ig4iS50PfCt1q/iyHO/u9rsiJZmNECRB8ee9JOKZRvAuUgT4HQKs68nQMWx9w51feXqu2Xp7jVX811Lb/mnQ=="}
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
[1m[35mSQL (0.3ms)[0m INSERT INTO "simple_cart_orders" ("total_price", "completed_date", "aasm_state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["total_price", 0.0], ["completed_date", "2016-03-14"], ["aasm_state", "in_progress"], ["created_at", "2016-03-14 20:46:03.106237"], ["updated_at", "2016-03-14 20:46:03.106237"]]
[1m[36m (61.4ms)[0m [1mcommit transaction[0m
Redirected to http://localhost:3000/simple_cart/orders/4/checkout
Completed 302 Found in 68ms (ActiveRecord: 61.8ms)
Started GET "/simple_cart/orders/4/checkout" for 127.0.0.1 at 2016-03-14 22:46:03 +0200
Processing by SimpleCart::CheckoutController#index as HTML
Parameters: {"order_id"=>"4"}
[1m[35mSimpleCart::Order Load (0.1ms)[0m SELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1 [["id", 4]]
Redirected to http://localhost:3000/simple_cart/orders/4/checkout/billing
Completed 302 Found in 3ms (ActiveRecord: 0.1ms)
Started GET "/simple_cart/orders/4/checkout/billing" for 127.0.0.1 at 2016-03-14 22:46:03 +0200
Processing by SimpleCart::CheckoutController#show as HTML
Parameters: {"order_id"=>"4", "id"=>"billing"}
[1m[36mSimpleCart::Order Load (0.1ms)[0m [1mSELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1[0m [["id", 4]]
[1m[35mSimpleCart::BillingAddress Load (0.1ms)[0m 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", 4]]
[1m[36mSimpleCart::ShippingAddress Load (0.1ms)[0m [1mSELECT "simple_cart_addresses".* FROM "simple_cart_addresses" WHERE "simple_cart_addresses"."type" IN ('SimpleCart::ShippingAddress') AND "simple_cart_addresses"."order_id" = ? LIMIT 1[0m [["order_id", 4]]
[1m[35mSimpleCart::CreditCard Load (0.1ms)[0m SELECT "simple_cart_credit_cards".* FROM "simple_cart_credit_cards" WHERE "simple_cart_credit_cards"."order_id" = ? LIMIT 1 [["order_id", 4]]
Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/_progress.html.haml (2.1ms)
Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/_address.html.haml (22.1ms)
[1m[36mCACHE (0.0ms)[0m [1mSELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1[0m [["id", "4"]]
[1m[35mCACHE (0.0ms)[0m SELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1 [["id", "4"]]
Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/_summary.html.haml (2.2ms)
Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/billing.html.haml within layouts/simple_cart/application (34.0ms)
Completed 200 OK in 67ms (Views: 61.2ms | ActiveRecord: 0.4ms)
Started POST "/simple_cart/cart/clear" for 127.0.0.1 at 2016-03-14 22:46:13 +0200
Processing by SimpleCart::CartsController#add as HTML
Parameters: {"authenticity_token"=>"B1ig4iS50PfCt1q/iyHO/u9rsiJZmNECRB8ee9JOKZRvAuUgT4HQKs68nQMWx9w51feXqu2Xp7jVX811Lb/mnQ==", "item_id"=>"clear"}
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-14 22:46:13 +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 (3.1ms)
Completed 500 Internal Server Error in 5ms (ActiveRecord: 0.0ms)
ActionView::Template::Error (wrong constant name ):
9: .thumbnail
10: .caption-full
11: = form_tag url_for(:controller => 'carts', :action => 'update'), method: :put do
12: - if @cart.items.nil?
13: empty
14: - else
15: %table.table.table-hover
activesupport (4.2.5.2) lib/active_support/inflector/methods.rb:254:in `const_get'
activesupport (4.2.5.2) lib/active_support/inflector/methods.rb:254:in `constantize'
activesupport (4.2.5.2) lib/active_support/core_ext/string/inflections.rb:66:in `constantize'
/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:12:in `block in __home_leksster__uby__uby_arage__mazon_simple_cart_app_views_simple_cart_carts_show_html_haml___4050748382438829409_46132660'
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___4050748382438829409_46132660'
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 (8.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.5ms)
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 (21.1ms)
Started GET "/simple_cart/cart" for 127.0.0.1 at 2016-03-14 22:48:32 +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 (1.7ms)
Completed 500 Internal Server Error in 8ms (ActiveRecord: 0.0ms)
ActionView::Template::Error (wrong constant name ):
9: .thumbnail
10: .caption-full
11: = form_tag url_for(:controller => 'carts', :action => 'update'), method: :put do
12: - if @cart.items.nil?
13: empty
14: - else
15: %table.table.table-hover
activesupport (4.2.5.2) lib/active_support/inflector/methods.rb:254:in `const_get'
activesupport (4.2.5.2) lib/active_support/inflector/methods.rb:254:in `constantize'
activesupport (4.2.5.2) lib/active_support/core_ext/string/inflections.rb:66:in `constantize'
/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:12:in `block in __home_leksster__uby__uby_arage__mazon_simple_cart_app_views_simple_cart_carts_show_html_haml___4050748382438829409_46132660'
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___4050748382438829409_46132660'
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 (6.5ms)
Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (3.2ms)
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 (20.2ms)
Started GET "/simple_cart/" for 127.0.0.1 at 2016-03-14 22:48:33 +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 (1.0ms)
Completed 500 Internal Server Error in 3ms (ActiveRecord: 0.0ms)
ActionView::Template::Error (wrong constant name ):
9: .thumbnail
10: .caption-full
11: = form_tag url_for(:controller => 'carts', :action => 'update'), method: :put do
12: - if @cart.items.nil?
13: empty
14: - else
15: %table.table.table-hover
activesupport (4.2.5.2) lib/active_support/inflector/methods.rb:254:in `const_get'
activesupport (4.2.5.2) lib/active_support/inflector/methods.rb:254:in `constantize'
activesupport (4.2.5.2) lib/active_support/core_ext/string/inflections.rb:66:in `constantize'
/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:12:in `block in __home_leksster__uby__uby_arage__mazon_simple_cart_app_views_simple_cart_carts_show_html_haml___4050748382438829409_46132660'
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___4050748382438829409_46132660'
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 (8.5ms)
Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (2.8ms)
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/template_error.html.erb within rescues/layout (21.4ms)
Started GET "/simple_cart/cart" for 127.0.0.1 at 2016-03-14 22:48:48 +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 19ms (Views: 18.7ms | ActiveRecord: 0.0ms)
Started GET "/simple_cart/cart" for 127.0.0.1 at 2016-03-14 22:48: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 (1.0ms)
Completed 200 OK in 20ms (Views: 19.6ms | ActiveRecord: 0.0ms)
Started GET "/items" for 127.0.0.1 at 2016-03-14 22:48:55 +0200
Processing by ItemsController#index as HTML
Completed 500 Internal Server Error in 2ms (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.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.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 (16.9ms)
Started GET "/items" for 127.0.0.1 at 2016-03-14 22:48:55 +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 (5.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 (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.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 (17.9ms)
Started GET "/ss" for 127.0.0.1 at 2016-03-14 22:49:00 +0200
ActionController::RoutingError (No route matches [GET] "/ss"):
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.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/_trace.html.erb (1.7ms)
Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/routes/_route.html.erb (1.9ms)
Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/routes/_route.html.erb (0.7ms)
Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/routes/_table.html.erb (1.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 (1.1ms)
Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/rescues/routing_error.html.erb within rescues/layout (34.1ms)
Started GET "/kks" for 127.0.0.1 at 2016-03-14 22:49:44 +0200
Processing by KksController#index as HTML
[1m[36mKk Load (0.4ms)[0m [1mSELECT "kks".* FROM "kks"[0m
Rendered kks/index.html.erb within layouts/application (6.7ms)
Completed 200 OK in 38ms (Views: 35.8ms | ActiveRecord: 0.7ms)
Started GET "/kks/1" for 127.0.0.1 at 2016-03-14 22:49:46 +0200
Processing by KksController#show as HTML
Parameters: {"id"=>"1"}
[1m[35mKk Load (0.3ms)[0m 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 (12.4ms)
Rendered kks/show.html.erb within layouts/application (14.7ms)
Completed 200 OK in 34ms (Views: 31.5ms | ActiveRecord: 0.3ms)
Started POST "/simple_cart/cart/1" for 127.0.0.1 at 2016-03-14 22:49:47 +0200
Processing by SimpleCart::CartsController#add as HTML
Parameters: {"utf8"=>"✓", "authenticity_token"=>"FKXaAjEG6HTZ6k9Ua26+Oo+FaiNK7rteG7oUOCGKdsQg0S2tkD7Vfh1kBGKJBBQzKSVHhwaSvvBqwAvRtrGcYg==", "qty"=>"1", "klass"=>"Kk", "commit"=>"Add to cart", "item_id"=>"1"}
Completed 500 Internal Server Error in 1ms (ActiveRecord: 0.0ms)
NoMethodError (undefined method `[]' for nil:NilClass):
/home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/models/simple_cart/cart.rb:48:in `add_item'
/home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/controllers/simple_cart/carts_controller.rb:17: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 (5.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 (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 GET "/simple_cart/cart" for 127.0.0.1 at 2016-03-14 22:52:04 +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 (1.0ms)
Completed 200 OK in 22ms (Views: 20.6ms | ActiveRecord: 0.0ms)
Started GET "/simple_cart/cart" for 127.0.0.1 at 2016-03-14 22:52:04 +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 (1.0ms)
Completed 200 OK in 29ms (Views: 28.0ms | ActiveRecord: 0.0ms)
Started GET "/kks" for 127.0.0.1 at 2016-03-14 22:52:08 +0200
Processing by KksController#index as HTML
[1m[36mKk Load (0.6ms)[0m [1mSELECT "kks".* FROM "kks"[0m
Rendered kks/index.html.erb within layouts/application (6.4ms)
Completed 200 OK in 27ms (Views: 23.9ms | ActiveRecord: 1.1ms)
Started GET "/kks/1" for 127.0.0.1 at 2016-03-14 22:52:10 +0200
Processing by KksController#show as HTML
Parameters: {"id"=>"1"}
[1m[35mKk Load (0.3ms)[0m 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.1ms)
Rendered kks/show.html.erb within layouts/application (9.8ms)
Completed 200 OK in 28ms (Views: 25.7ms | ActiveRecord: 0.3ms)
Started POST "/simple_cart/cart/1" for 127.0.0.1 at 2016-03-14 22:52:11 +0200
Processing by SimpleCart::CartsController#add as HTML
Parameters: {"utf8"=>"✓", "authenticity_token"=>"VzMDwtF5nwmiRX44QEhku9cDpKV2RxMtf426FCXsKkBjR/RtcEGiA2bLNQ6iIs6ycaOJATo7FoMO96X9stfA5g==", "qty"=>"1", "klass"=>"Kk", "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-14 22:52:11 +0200
Processing by SimpleCart::CartsController#show as HTML
[1m[36mKk Load (0.1ms)[0m [1mSELECT "kks".* FROM "kks" WHERE "kks"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mCACHE (0.0ms)[0m SELECT "kks".* FROM "kks" WHERE "kks"."id" = ? LIMIT 1 [["id", "1"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "kks".* FROM "kks" WHERE "kks"."id" = ? LIMIT 1[0m [["id", "1"]]
Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml within layouts/simple_cart/application (8.3ms)
Completed 200 OK in 26ms (Views: 25.1ms | ActiveRecord: 0.1ms)
Started GET "/simple_cart/cart/remove?id=Kk_1" for 127.0.0.1 at 2016-03-14 22:52:14 +0200
Processing by SimpleCart::CartsController#remove as HTML
Parameters: {"id"=>"Kk_1"}
Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml within layouts/simple_cart/application (8.5ms)
Completed 200 OK in 27ms (Views: 26.3ms | ActiveRecord: 0.0ms)
Started POST "/simple_cart/cart/clear" for 127.0.0.1 at 2016-03-14 22:52:21 +0200
Processing by SimpleCart::CartsController#add as HTML
Parameters: {"authenticity_token"=>"smpVwMAGejua302ayjaGiudHa6348aDnDP5a3M+QSlOGHqJvYT5HMV5RBqwoXCyDQedGCbSNpUl9hEU1WKug9Q==", "item_id"=>"clear"}
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-14 22:52:21 +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 (1.8ms)
Completed 500 Internal Server Error in 5ms (ActiveRecord: 0.0ms)
ActionView::Template::Error (wrong constant name ):
9: .thumbnail
10: .caption-full
11: = form_tag url_for(:controller => 'carts', :action => 'update'), method: :put do
12: - if @cart.items.nil?
13: empty
14: - else
15: %table.table.table-hover
activesupport (4.2.5.2) lib/active_support/inflector/methods.rb:254:in `const_get'
activesupport (4.2.5.2) lib/active_support/inflector/methods.rb:254:in `constantize'
activesupport (4.2.5.2) lib/active_support/core_ext/string/inflections.rb:66:in `constantize'
/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:12:in `block in __home_leksster__uby__uby_arage__mazon_simple_cart_app_views_simple_cart_carts_show_html_haml___4050748382438829409_46132660'
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___4050748382438829409_46132660'
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.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 (3.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/template_error.html.erb within rescues/layout (22.7ms)
Started GET "/simple_cart/cart" for 127.0.0.1 at 2016-03-14 22:52:32 +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 (1.5ms)
Completed 500 Internal Server Error in 6ms (ActiveRecord: 0.0ms)
ActionView::Template::Error (wrong constant name ):
9: .thumbnail
10: .caption-full
11: = form_tag url_for(:controller => 'carts', :action => 'update'), method: :put do
12: - if @cart.items.nil?
13: empty
14: - else
15: %table.table.table-hover
activesupport (4.2.5.2) lib/active_support/inflector/methods.rb:254:in `const_get'
activesupport (4.2.5.2) lib/active_support/inflector/methods.rb:254:in `constantize'
activesupport (4.2.5.2) lib/active_support/core_ext/string/inflections.rb:66:in `constantize'
/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:12:in `block in __home_leksster__uby__uby_arage__mazon_simple_cart_app_views_simple_cart_carts_show_html_haml___4050748382438829409_46132660'
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___4050748382438829409_46132660'
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 (8.1ms)
Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (3.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 (0.8ms)
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 (24.0ms)
Started GET "/simple_cart/cart" for 127.0.0.1 at 2016-03-14 22:52:36 +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 (1.3ms)
Completed 200 OK in 24ms (Views: 23.5ms | ActiveRecord: 0.0ms)
Started GET "/simple_cart" for 127.0.0.1 at 2016-03-14 22:52:39 +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 20ms (Views: 19.8ms | ActiveRecord: 0.0ms)
Started GET "/kks" for 127.0.0.1 at 2016-03-14 22:52:41 +0200
Processing by KksController#index as HTML
[1m[35mKk Load (0.1ms)[0m SELECT "kks".* FROM "kks"
Rendered kks/index.html.erb within layouts/application (1.1ms)
Completed 200 OK in 20ms (Views: 19.1ms | ActiveRecord: 0.1ms)
Started GET "/kks" for 127.0.0.1 at 2016-03-14 22:52:41 +0200
Processing by KksController#index as HTML
[1m[36mKk Load (0.2ms)[0m [1mSELECT "kks".* FROM "kks"[0m
Rendered kks/index.html.erb within layouts/application (1.5ms)
Completed 200 OK in 20ms (Views: 19.0ms | ActiveRecord: 0.2ms)
Started GET "/kks/1" for 127.0.0.1 at 2016-03-14 22:52:43 +0200
Processing by KksController#show as HTML
Parameters: {"id"=>"1"}
[1m[35mKk Load (0.1ms)[0m 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.6ms)
Rendered kks/show.html.erb within layouts/application (8.9ms)
Completed 200 OK in 34ms (Views: 33.2ms | ActiveRecord: 0.1ms)
Started POST "/simple_cart/cart/1" for 127.0.0.1 at 2016-03-14 22:52:45 +0200
Processing by SimpleCart::CartsController#add as HTML
Parameters: {"utf8"=>"✓", "authenticity_token"=>"3yjEcGnUoJyWHc2XzAjPLME/cduJf5SotFGUynkW+uZQRSE9OauBANzZpXC4R58YeMv/QSf4IWv2aoByFtxCaA==", "qty"=>"4", "klass"=>"Kk", "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-14 22:52:45 +0200
Processing by SimpleCart::CartsController#show as HTML
[1m[36mKk Load (0.1ms)[0m [1mSELECT "kks".* FROM "kks" WHERE "kks"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mCACHE (0.0ms)[0m SELECT "kks".* FROM "kks" WHERE "kks"."id" = ? LIMIT 1 [["id", "1"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "kks".* FROM "kks" WHERE "kks"."id" = ? LIMIT 1[0m [["id", "1"]]
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 31ms (Views: 29.7ms | ActiveRecord: 0.1ms)
Started POST "/simple_cart/cart/clear" for 127.0.0.1 at 2016-03-14 22:53:19 +0200
Processing by SimpleCart::CartsController#add as HTML
Parameters: {"authenticity_token"=>"uuhUKUmCOIiwyW5wmBFHb28BUQgY05OR/xATZm57BgE1hbFkGf0ZFPoNBpfsXhdb1vXfkrZUJlK9KwfeAbG+jw==", "item_id"=>"clear"}
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-14 22:53:19 +0200
Processing by SimpleCart::CartsController#show as HTML
[1m[35mKk Load (0.3ms)[0m 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 (9.0ms)
Completed 500 Internal Server Error in 14ms (ActiveRecord: 0.8ms)
ActionView::Template::Error (wrong constant name ):
9: .thumbnail
10: .caption-full
11: = form_tag url_for(:controller => 'carts', :action => 'update'), method: :put do
12: - if @cart.items.nil?
13: empty
14: - else
15: %table.table.table-hover
activesupport (4.2.5.2) lib/active_support/inflector/methods.rb:254:in `const_get'
activesupport (4.2.5.2) lib/active_support/inflector/methods.rb:254:in `constantize'
activesupport (4.2.5.2) lib/active_support/core_ext/string/inflections.rb:66:in `constantize'
/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:12:in `block in __home_leksster__uby__uby_arage__mazon_simple_cart_app_views_simple_cart_carts_show_html_haml___4050748382438829409_46132660'
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___4050748382438829409_46132660'
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 (8.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 (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/template_error.html.erb within rescues/layout (21.8ms)
Started GET "/simple_cart/cart" for 127.0.0.1 at 2016-03-14 22:53:57 +0200
Processing by SimpleCart::CartsController#show as HTML
[1m[36mKk Load (0.1ms)[0m [1mSELECT "kks".* FROM "kks" WHERE "kks"."id" = ? LIMIT 1[0m [["id", 1]]
Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml within layouts/simple_cart/application (2.4ms)
Completed 500 Internal Server Error in 6ms (ActiveRecord: 0.1ms)
ActionView::Template::Error (wrong constant name ):
9: .thumbnail
10: .caption-full
11: = form_tag url_for(:controller => 'carts', :action => 'update'), method: :put do
12: - if @cart.items.nil?
13: empty
14: - else
15: %table.table.table-hover
activesupport (4.2.5.2) lib/active_support/inflector/methods.rb:254:in `const_get'
activesupport (4.2.5.2) lib/active_support/inflector/methods.rb:254:in `constantize'
activesupport (4.2.5.2) lib/active_support/core_ext/string/inflections.rb:66:in `constantize'
/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:12:in `block in __home_leksster__uby__uby_arage__mazon_simple_cart_app_views_simple_cart_carts_show_html_haml___4050748382438829409_46132660'
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___4050748382438829409_46132660'
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.1ms)
Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (2.8ms)
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 (20.0ms)
Started GET "/simple_cart/cart" for 127.0.0.1 at 2016-03-14 22:54:24 +0200
Processing by SimpleCart::CartsController#show as HTML
[1m[35mKk Load (0.1ms)[0m 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.2ms)
Completed 500 Internal Server Error in 13ms (ActiveRecord: 0.7ms)
ActionView::Template::Error (wrong constant name ):
9: .thumbnail
10: .caption-full
11: = form_tag url_for(:controller => 'carts', :action => 'update'), method: :put do
12: - if @cart.items.nil?
13: empty
14: - else
15: %table.table.table-hover
activesupport (4.2.5.2) lib/active_support/inflector/methods.rb:254:in `const_get'
activesupport (4.2.5.2) lib/active_support/inflector/methods.rb:254:in `constantize'
activesupport (4.2.5.2) lib/active_support/core_ext/string/inflections.rb:66:in `constantize'
/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:12:in `block in __home_leksster__uby__uby_arage__mazon_simple_cart_app_views_simple_cart_carts_show_html_haml___4050748382438829409_46132660'
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___4050748382438829409_46132660'
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 (21.3ms)
Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (5.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 (1.5ms)
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.8ms)
Started POST "/simple_cart/cart/1" for 127.0.0.1 at 2016-03-14 22:54:29 +0200
Processing by SimpleCart::CartsController#add as HTML
Parameters: {"utf8"=>"✓", "authenticity_token"=>"3yjEcGnUoJyWHc2XzAjPLME/cduJf5SotFGUynkW+uZQRSE9OauBANzZpXC4R58YeMv/QSf4IWv2aoByFtxCaA==", "qty"=>"4", "klass"=>"Kk", "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-14 22:54:29 +0200
Processing by SimpleCart::CartsController#show as HTML
[1m[36mKk Load (0.1ms)[0m [1mSELECT "kks".* FROM "kks" WHERE "kks"."id" = ? LIMIT 1[0m [["id", 1]]
Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml within layouts/simple_cart/application (4.3ms)
Completed 500 Internal Server Error in 7ms (ActiveRecord: 0.1ms)
ActionView::Template::Error (wrong constant name ):
9: .thumbnail
10: .caption-full
11: = form_tag url_for(:controller => 'carts', :action => 'update'), method: :put do
12: - if @cart.items.nil?
13: empty
14: - else
15: %table.table.table-hover
activesupport (4.2.5.2) lib/active_support/inflector/methods.rb:254:in `const_get'
activesupport (4.2.5.2) lib/active_support/inflector/methods.rb:254:in `constantize'
activesupport (4.2.5.2) lib/active_support/core_ext/string/inflections.rb:66:in `constantize'
/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:12:in `block in __home_leksster__uby__uby_arage__mazon_simple_cart_app_views_simple_cart_carts_show_html_haml___4050748382438829409_46132660'
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___4050748382438829409_46132660'
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 (8.7ms)
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.8ms)
Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/rescues/template_error.html.erb within rescues/layout (22.5ms)
Started GET "/simple_cart/cart" for 127.0.0.1 at 2016-03-14 22:54:34 +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 (3.3ms)
Completed 200 OK in 22ms (Views: 21.8ms | ActiveRecord: 0.0ms)
Started GET "/assets/simple_cart/application.self-2f12d59583468bdcee27c6046669f62a778d265fc91cf385e5d36e9189ac822e.css?body=1" for 127.0.0.1 at 2016-03-14 22:54:34 +0200
Started GET "/assets/jquery.self-660adc51e0224b731d29f575a6f1ec167ba08ad06ed5deca4f1e8654c135bf4c.js?body=1" for 127.0.0.1 at 2016-03-14 22:54:34 +0200
Started GET "/assets/simple_cart/application.self-3b8dabdc891efe46b9a144b400ad69e37d7e5876bdc39dee783419a69d7ca819.js?body=1" for 127.0.0.1 at 2016-03-14 22:54:34 +0200
Started GET "/assets/turbolinks.self-c37727e9bd6b2735da5c311aa83fead54ed0be6cc8bd9a65309e9c5abe2cbfff.js?body=1" for 127.0.0.1 at 2016-03-14 22:54:34 +0200
Started GET "/assets/jquery_ujs.self-e87806d0cf4489aeb1bb7288016024e8de67fd18db693fe026fe3907581e53cd.js?body=1" for 127.0.0.1 at 2016-03-14 22:54:34 +0200
Started POST "/simple_cart/cart/clear" for 127.0.0.1 at 2016-03-14 22:54:37 +0200
Processing by SimpleCart::CartsController#add as HTML
Parameters: {"authenticity_token"=>"UyLa2OnpA7HMH+560ge81JWpnaUHJ1TAvCYDv2lGePeaB8qO7nHgnA+i2yHPfu6vRebzbcO+X6ujgi2rLxy0uA==", "item_id"=>"clear"}
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-14 22:54:37 +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 (1.0ms)
Completed 500 Internal Server Error in 3ms (ActiveRecord: 0.0ms)
ActionView::Template::Error (wrong constant name ):
9: .thumbnail
10: .caption-full
11: = form_tag url_for(:controller => 'carts', :action => 'update'), method: :put do
12: - if @cart.items.nil?
13: empty
14: - else
15: %table.table.table-hover
activesupport (4.2.5.2) lib/active_support/inflector/methods.rb:254:in `const_get'
activesupport (4.2.5.2) lib/active_support/inflector/methods.rb:254:in `constantize'
activesupport (4.2.5.2) lib/active_support/core_ext/string/inflections.rb:66:in `constantize'
/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:12:in `block in __home_leksster__uby__uby_arage__mazon_simple_cart_app_views_simple_cart_carts_show_html_haml___4050748382438829409_46132660'
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___4050748382438829409_46132660'
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 (8.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.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 (1.3ms)
Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/rescues/template_error.html.erb within rescues/layout (22.2ms)
Started GET "/simple_cart/cart" for 127.0.0.1 at 2016-03-14 22:56:01 +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 (1.5ms)
Completed 500 Internal Server Error in 8ms (ActiveRecord: 0.0ms)
ActionView::Template::Error (wrong constant name ):
9: .thumbnail
10: .caption-full
11: = form_tag url_for(:controller => 'carts', :action => 'update'), method: :put do
12: - if @cart.items.nil?
13: empty
14: - else
15: %table.table.table-hover
activesupport (4.2.5.2) lib/active_support/inflector/methods.rb:254:in `const_get'
activesupport (4.2.5.2) lib/active_support/inflector/methods.rb:254:in `constantize'
activesupport (4.2.5.2) lib/active_support/core_ext/string/inflections.rb:66:in `constantize'
/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:12:in `block in __home_leksster__uby__uby_arage__mazon_simple_cart_app_views_simple_cart_carts_show_html_haml___4050748382438829409_46132660'
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___4050748382438829409_46132660'
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.5ms)
Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (1.0ms)
Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/rescues/template_error.html.erb within rescues/layout (20.1ms)
Started GET "/simple_cart/cart" for 127.0.0.1 at 2016-03-14 22:56:04 +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 (4.2ms)
Completed 200 OK in 24ms (Views: 23.2ms | ActiveRecord: 0.0ms)
Started POST "/simple_cart/cart/clear" for 127.0.0.1 at 2016-03-14 22:56:06 +0200
Processing by SimpleCart::CartsController#add as HTML
Parameters: {"authenticity_token"=>"BQB+kv8Z5en/TAxfRTHd2c0jTRqgkyvxnUgz3NlSyX1kv2vZsojk4yVCk0QHssWMvRgaG9sRYLSwNTgMdqs/gA==", "item_id"=>"clear"}
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-14 22:56:06 +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 (1.1ms)
Completed 500 Internal Server Error in 3ms (ActiveRecord: 0.0ms)
ActionView::Template::Error (wrong constant name ):
9: .thumbnail
10: .caption-full
11: = form_tag url_for(:controller => 'carts', :action => 'update'), method: :put do
12: - if @cart.items.nil?
13: empty
14: - else
15: %table.table.table-hover
activesupport (4.2.5.2) lib/active_support/inflector/methods.rb:254:in `const_get'
activesupport (4.2.5.2) lib/active_support/inflector/methods.rb:254:in `constantize'
activesupport (4.2.5.2) lib/active_support/core_ext/string/inflections.rb:66:in `constantize'
/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:12:in `block in __home_leksster__uby__uby_arage__mazon_simple_cart_app_views_simple_cart_carts_show_html_haml___4050748382438829409_46132660'
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___4050748382438829409_46132660'
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.4ms)
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.7ms)
Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/rescues/template_error.html.erb within rescues/layout (19.9ms)
Started GET "/simple_cart/cart" for 127.0.0.1 at 2016-03-14 22:56:33 +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 (1.1ms)
Completed 500 Internal Server Error in 6ms (ActiveRecord: 0.0ms)
ActionView::Template::Error (wrong constant name ):
9: .thumbnail
10: .caption-full
11: = form_tag url_for(:controller => 'carts', :action => 'update'), method: :put do
12: - if @cart.items.nil?
13: empty
14: - else
15: %table.table.table-hover
activesupport (4.2.5.2) lib/active_support/inflector/methods.rb:254:in `const_get'
activesupport (4.2.5.2) lib/active_support/inflector/methods.rb:254:in `constantize'
activesupport (4.2.5.2) lib/active_support/core_ext/string/inflections.rb:66:in `constantize'
/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:12:in `block in __home_leksster__uby__uby_arage__mazon_simple_cart_app_views_simple_cart_carts_show_html_haml___4050748382438829409_46132660'
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___4050748382438829409_46132660'
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.3ms)
Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (3.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/template_error.html.erb within rescues/layout (22.1ms)
Started GET "/simple_cart/" for 127.0.0.1 at 2016-03-14 22:56:35 +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 (1.4ms)
Completed 500 Internal Server Error in 4ms (ActiveRecord: 0.0ms)
ActionView::Template::Error (wrong constant name ):
9: .thumbnail
10: .caption-full
11: = form_tag url_for(:controller => 'carts', :action => 'update'), method: :put do
12: - if @cart.items.nil?
13: empty
14: - else
15: %table.table.table-hover
activesupport (4.2.5.2) lib/active_support/inflector/methods.rb:254:in `const_get'
activesupport (4.2.5.2) lib/active_support/inflector/methods.rb:254:in `constantize'
activesupport (4.2.5.2) lib/active_support/core_ext/string/inflections.rb:66:in `constantize'
/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:12:in `block in __home_leksster__uby__uby_arage__mazon_simple_cart_app_views_simple_cart_carts_show_html_haml___4050748382438829409_46132660'
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___4050748382438829409_46132660'
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.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 (3.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 (1.3ms)
Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/rescues/template_error.html.erb within rescues/layout (22.1ms)
Started GET "/simple_cart/" for 127.0.0.1 at 2016-03-14 22:56:36 +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 (1.0ms)
Completed 500 Internal Server Error in 4ms (ActiveRecord: 0.0ms)
ActionView::Template::Error (wrong constant name ):
9: .thumbnail
10: .caption-full
11: = form_tag url_for(:controller => 'carts', :action => 'update'), method: :put do
12: - if @cart.items.nil?
13: empty
14: - else
15: %table.table.table-hover
activesupport (4.2.5.2) lib/active_support/inflector/methods.rb:254:in `const_get'
activesupport (4.2.5.2) lib/active_support/inflector/methods.rb:254:in `constantize'
activesupport (4.2.5.2) lib/active_support/core_ext/string/inflections.rb:66:in `constantize'
/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:12:in `block in __home_leksster__uby__uby_arage__mazon_simple_cart_app_views_simple_cart_carts_show_html_haml___4050748382438829409_46132660'
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___4050748382438829409_46132660'
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.1ms)
Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (3.1ms)
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/template_error.html.erb within rescues/layout (21.9ms)
Started GET "/simple_cart/" for 127.0.0.1 at 2016-03-14 22:56:41 +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 (4.4ms)
Completed 200 OK in 23ms (Views: 22.3ms | ActiveRecord: 0.0ms)
Started POST "/simple_cart/cart/clear" for 127.0.0.1 at 2016-03-14 22:56:42 +0200
Processing by SimpleCart::CartsController#add as HTML
Parameters: {"authenticity_token"=>"YHi+OAUj4mfKQzMVrWDKVniOlpknVg0JLPdIAeTvzQ6sv1riG/0N1WKz3Zw2Q5yUn8BVGZLcOXGEQ59zO6Mpcg==", "item_id"=>"clear"}
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-14 22:56:42 +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 (2.0ms)
Completed 500 Internal Server Error in 4ms (ActiveRecord: 0.0ms)
ActionView::Template::Error (wrong constant name ):
9: .thumbnail
10: .caption-full
11: = form_tag url_for(:controller => 'carts', :action => 'update'), method: :put do
12: - if @cart.items.nil?
13: empty
14: - else
15: %table.table.table-hover
activesupport (4.2.5.2) lib/active_support/inflector/methods.rb:254:in `const_get'
activesupport (4.2.5.2) lib/active_support/inflector/methods.rb:254:in `constantize'
activesupport (4.2.5.2) lib/active_support/core_ext/string/inflections.rb:66:in `constantize'
/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:12:in `block in __home_leksster__uby__uby_arage__mazon_simple_cart_app_views_simple_cart_carts_show_html_haml___4050748382438829409_46132660'
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___4050748382438829409_46132660'
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.5ms)
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.8ms)
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 (21.5ms)
Started GET "/kks" for 127.0.0.1 at 2016-03-14 22:57:14 +0200
Processing by KksController#index as HTML
[1m[35mKk Load (0.4ms)[0m SELECT "kks".* FROM "kks"
Rendered kks/index.html.erb within layouts/application (6.0ms)
Completed 200 OK in 31ms (Views: 28.4ms | ActiveRecord: 0.9ms)
Started GET "/kks" for 127.0.0.1 at 2016-03-14 22:57:15 +0200
Processing by KksController#index as HTML
[1m[36mKk Load (0.2ms)[0m [1mSELECT "kks".* FROM "kks"[0m
Rendered kks/index.html.erb within layouts/application (1.1ms)
Completed 200 OK in 17ms (Views: 16.0ms | ActiveRecord: 0.2ms)
Started GET "/kks/new" for 127.0.0.1 at 2016-03-14 22:57:16 +0200
Processing by KksController#new as HTML
Rendered kks/_form.html.erb (10.6ms)
Rendered kks/new.html.erb within layouts/application (11.9ms)
Completed 200 OK in 28ms (Views: 27.0ms | ActiveRecord: 0.0ms)
Started POST "/kks" for 127.0.0.1 at 2016-03-14 22:57:19 +0200
Processing by KksController#create as HTML
Parameters: {"utf8"=>"✓", "authenticity_token"=>"ehp/j4UlDYoUp2whdU6UczMnwlH7fAMk23Qk3XTOnejr5Yp3dSh7q/g4w5+XTqPkGNeZ2IwECmkd1wl6u5Pgiw==", "kk"=>{"name"=>"saf", "price"=>"1", "qty"=>"2"}, "commit"=>"Create Kk"}
[1m[35m (0.1ms)[0m begin transaction
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "kks" ("name", "price", "qty", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["name", "saf"], ["price", 1.0], ["qty", 2], ["created_at", "2016-03-14 20:57:19.645661"], ["updated_at", "2016-03-14 20:57:19.645661"]]
[1m[35m (77.4ms)[0m commit transaction
Redirected to http://localhost:3000/kks/2
Completed 302 Found in 82ms (ActiveRecord: 77.8ms)
Started GET "/kks/2" for 127.0.0.1 at 2016-03-14 22:57:19 +0200
Processing by KksController#show as HTML
Parameters: {"id"=>"2"}
[1m[36mKk Load (0.2ms)[0m [1mSELECT "kks".* FROM "kks" WHERE "kks"."id" = ? LIMIT 1[0m [["id", 2]]
Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/carts/_buy.html.haml (7.6ms)
Rendered kks/show.html.erb within layouts/application (9.2ms)
Completed 200 OK in 27ms (Views: 25.7ms | ActiveRecord: 0.2ms)
Started POST "/simple_cart/cart/2" for 127.0.0.1 at 2016-03-14 22:57:21 +0200
Processing by SimpleCart::CartsController#add as HTML
Parameters: {"utf8"=>"✓", "authenticity_token"=>"wHObX8qCq3a3ALRz0e4lT9QXaqPxU51wTkm7JTUIYN5RjG6nOo/dV1ufG80z7hLY/+cxKoYrlD2I6paC+lUdvQ==", "qty"=>"1", "klass"=>"Kk", "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-14 22:57:21 +0200
Processing by SimpleCart::CartsController#show as HTML
[1m[35mKk Load (0.1ms)[0m SELECT "kks".* FROM "kks" WHERE "kks"."id" = ? LIMIT 1 [["id", 2]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "kks".* FROM "kks" WHERE "kks"."id" = ? LIMIT 1[0m [["id", "2"]]
[1m[35mCACHE (0.0ms)[0m SELECT "kks".* FROM "kks" WHERE "kks"."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.8ms)
Completed 200 OK in 26ms (Views: 25.3ms | ActiveRecord: 0.1ms)
Started GET "/simple_cart/cart/remove?id=Kk_2" for 127.0.0.1 at 2016-03-14 22:58:03 +0200
Processing by SimpleCart::CartsController#remove as HTML
Parameters: {"id"=>"Kk_2"}
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 24ms (Views: 23.4ms | ActiveRecord: 0.0ms)
Started POST "/simple_cart/cart/clear" for 127.0.0.1 at 2016-03-14 22:58:04 +0200
Processing by SimpleCart::CartsController#add as HTML
Parameters: {"authenticity_token"=>"jOjWhn7UXXcnuXCTaRryID5w2EYAQShiJt3FzaTBSKsdFyN+jtkrVssm3y2LGsW3FYCDz3c5IS/gfuhqa5w1yA==", "item_id"=>"clear"}
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-14 22:58:04 +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 (7.2ms)
Completed 500 Internal Server Error in 10ms (ActiveRecord: 0.0ms)
ActionView::Template::Error (wrong constant name ):
26: Total
27: %th.col-md-1
28: %tbody
29: - @cart.items.each_with_index do |item, index|
30: %tr
31: %td
32: / = image_tag(book.cover.url)
activesupport (4.2.5.2) lib/active_support/inflector/methods.rb:254:in `const_get'
activesupport (4.2.5.2) lib/active_support/inflector/methods.rb:254:in `constantize'
activesupport (4.2.5.2) lib/active_support/core_ext/string/inflections.rb:66:in `constantize'
/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___4050748382438829409_69816551630200'
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___4050748382438829409_69816551630200'
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 (8.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 (3.4ms)
Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (1.0ms)
Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/rescues/template_error.html.erb within rescues/layout (23.1ms)
Started GET "/simple_cart/cart" for 127.0.0.1 at 2016-03-14 22:58:33 +0200
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
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 (9.1ms)
Completed 500 Internal Server Error in 24ms (ActiveRecord: 0.0ms)
ActionView::Template::Error (wrong constant name ):
26: Total
27: %th.col-md-1
28: %tbody
29: - @cart.items.each_with_index do |item, index|
30: %tr
31: %td
32: / = image_tag(book.cover.url)
activesupport (4.2.5.2) lib/active_support/inflector/methods.rb:254:in `const_get'
activesupport (4.2.5.2) lib/active_support/inflector/methods.rb:254:in `constantize'
activesupport (4.2.5.2) lib/active_support/core_ext/string/inflections.rb:66:in `constantize'
/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__2834291672789566106_38466860'
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__2834291672789566106_38466860'
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.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.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.8ms)
Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/rescues/template_error.html.erb within rescues/layout (22.3ms)
Started GET "/simple_cart/cart" for 127.0.0.1 at 2016-03-14 22:58:50 +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 (4.9ms)
Completed 200 OK in 235ms (Views: 234.6ms | ActiveRecord: 0.0ms)
Started GET "/simple_cart/cart" for 127.0.0.1 at 2016-03-14 22:59: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 (23.9ms)
Completed 500 Internal Server Error in 32ms (ActiveRecord: 0.0ms)
ActionView::Template::Error (wrong constant name ):
26: Total
27: %th.col-md-1
28: %tbody
29: - @cart.items.each_with_index do |item, index|
30: %tr
31: %td
32: / = image_tag(book.cover.url)
activesupport (4.2.5.2) lib/active_support/inflector/methods.rb:254:in `const_get'
activesupport (4.2.5.2) lib/active_support/inflector/methods.rb:254:in `constantize'
activesupport (4.2.5.2) lib/active_support/core_ext/string/inflections.rb:66:in `constantize'
/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__2834291672789566106_12193620'
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__2834291672789566106_12193620'
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 (24.3ms)
Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (5.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 (1.7ms)
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 (46.3ms)
Started GET "/simple_cart/cart" for 127.0.0.1 at 2016-03-14 22:59:25 +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 (21.7ms)
Completed 200 OK in 58ms (Views: 56.6ms | ActiveRecord: 0.0ms)
Started POST "/simple_cart/cart/clear" for 127.0.0.1 at 2016-03-14 22:59:26 +0200
Processing by SimpleCart::CartsController#add as HTML
Parameters: {"authenticity_token"=>"uOb/NpIorZcCwjxNnnCIhJSoolCp9ULuh7kkR8lsF6/+EyYCHAptd1k5orNUaW6mGUjuZg7iRpTeiwOpnvR9tg==", "item_id"=>"clear"}
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-14 22:59:26 +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 (2.6ms)
Completed 500 Internal Server Error in 8ms (ActiveRecord: 0.0ms)
ActionView::Template::Error (wrong constant name ):
26: Total
27: %th.col-md-1
28: %tbody
29: - @cart.items.each_with_index do |item, index|
30: %tr
31: %td
32: / = image_tag(book.cover.url)
activesupport (4.2.5.2) lib/active_support/inflector/methods.rb:254:in `const_get'
activesupport (4.2.5.2) lib/active_support/inflector/methods.rb:254:in `constantize'
activesupport (4.2.5.2) lib/active_support/core_ext/string/inflections.rb:66:in `constantize'
/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__2834291672789566106_12193620'
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__2834291672789566106_12193620'
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.4ms)
Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (3.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 (1.0ms)
Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/rescues/template_error.html.erb within rescues/layout (22.5ms)
Started GET "/simple_cart/cart" for 127.0.0.1 at 2016-03-14 22:59:37 +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 (3.6ms)
Completed 200 OK in 27ms (Views: 25.7ms | ActiveRecord: 0.0ms)
Started POST "/simple_cart/cart/clear" for 127.0.0.1 at 2016-03-14 22:59:38 +0200
Processing by SimpleCart::CartsController#add as HTML
Parameters: {"authenticity_token"=>"KdvmAmNsSoeqX6yZwsiB7kzy9gYSGU9wQgSibGW/+IEBAWSfmVZEUks0LQjnWPQla7hu4DCrPfV85Y6wv/fRJw==", "item_id"=>"clear"}
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-14 22:59:38 +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 (1.5ms)
Completed 500 Internal Server Error in 4ms (ActiveRecord: 0.0ms)
ActionView::Template::Error (wrong constant name ):
26: Total
27: %th.col-md-1
28: %tbody
29: - @cart.items.each_with_index do |item, index|
30: %tr
31: %td
32: / = image_tag(book.cover.url)
activesupport (4.2.5.2) lib/active_support/inflector/methods.rb:254:in `const_get'
activesupport (4.2.5.2) lib/active_support/inflector/methods.rb:254:in `constantize'
activesupport (4.2.5.2) lib/active_support/core_ext/string/inflections.rb:66:in `constantize'
/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__2834291672789566106_12193620'
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__2834291672789566106_12193620'
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.4ms)
Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (3.5ms)
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.4ms)
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 (28.5ms)
Started GET "/simple_cart/cart" for 127.0.0.1 at 2016-03-14 23:00:15 +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 (1.6ms)
Completed 500 Internal Server Error in 7ms (ActiveRecord: 0.0ms)
ActionView::Template::Error (wrong constant name ):
26: Total
27: %th.col-md-1
28: %tbody
29: - @cart.items.each_with_index do |item, index|
30: %tr
31: %td
32: / = image_tag(book.cover.url)
activesupport (4.2.5.2) lib/active_support/inflector/methods.rb:254:in `const_get'
activesupport (4.2.5.2) lib/active_support/inflector/methods.rb:254:in `constantize'
activesupport (4.2.5.2) lib/active_support/core_ext/string/inflections.rb:66:in `constantize'
/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__2834291672789566106_12193620'
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__2834291672789566106_12193620'
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 (6.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.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.8ms)
Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/rescues/template_error.html.erb within rescues/layout (20.1ms)
Started GET "/simple_cart/cart" for 127.0.0.1 at 2016-03-14 23:00:19 +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 (4.0ms)
Completed 200 OK in 23ms (Views: 22.9ms | ActiveRecord: 0.0ms)
Started POST "/simple_cart/cart/clear" for 127.0.0.1 at 2016-03-14 23:00:20 +0200
Processing by SimpleCart::CartsController#add as HTML
Parameters: {"authenticity_token"=>"oERP2pn/wAdtp4eK57UgnWvvHe4yr7EiJA/CuOowuVmveCdgkcLPH7yoOe/RD2B9Y/CsD89Z7/eNyglFxv1T3g==", "item_id"=>"clear"}
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-14 23:00: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 (1.3ms)
Completed 500 Internal Server Error in 3ms (ActiveRecord: 0.0ms)
ActionView::Template::Error (wrong constant name ):
26: Total
27: %th.col-md-1
28: %tbody
29: - @cart.items.each_with_index do |item, index|
30: %tr
31: %td
32: / = image_tag(book.cover.url)
activesupport (4.2.5.2) lib/active_support/inflector/methods.rb:254:in `const_get'
activesupport (4.2.5.2) lib/active_support/inflector/methods.rb:254:in `constantize'
activesupport (4.2.5.2) lib/active_support/core_ext/string/inflections.rb:66:in `constantize'
/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__2834291672789566106_12193620'
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__2834291672789566106_12193620'
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.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 (3.2ms)
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/template_error.html.erb within rescues/layout (20.9ms)
Started GET "/simple_cart/cart" for 127.0.0.1 at 2016-03-14 23:00:41 +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 (4.5ms)
Completed 200 OK in 24ms (Views: 22.7ms | ActiveRecord: 0.0ms)
Started POST "/simple_cart/cart/clear" for 127.0.0.1 at 2016-03-14 23:00:43 +0200
Processing by SimpleCart::CartsController#add as HTML
Parameters: {"authenticity_token"=>"dOV3IcLtWpu1X2/HVV/vbaadHPx1e02CLFebJep20FMCtLyviEmSW+dYouzCGC6VxnFpEXs//acWxt9nqyfd8Q==", "item_id"=>"clear"}
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-14 23:00:43 +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 (1.4ms)
Completed 500 Internal Server Error in 4ms (ActiveRecord: 0.0ms)
ActionView::Template::Error (wrong constant name ):
26: Total
27: %th.col-md-1
28: %tbody
29: - @cart.items.each_with_index do |item, index|
30: %tr
31: %td
32: / = image_tag(book.cover.url)
activesupport (4.2.5.2) lib/active_support/inflector/methods.rb:254:in `const_get'
activesupport (4.2.5.2) lib/active_support/inflector/methods.rb:254:in `constantize'
activesupport (4.2.5.2) lib/active_support/core_ext/string/inflections.rb:66:in `constantize'
/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__2834291672789566106_12193620'
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__2834291672789566106_12193620'
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 (8.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 (3.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/template_error.html.erb within rescues/layout (22.9ms)
Started GET "/simple_cart/cart" for 127.0.0.1 at 2016-03-14 23:00:59 +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 (4.8ms)
Completed 200 OK in 25ms (Views: 24.4ms | ActiveRecord: 0.0ms)
Started POST "/simple_cart/cart/clear" for 127.0.0.1 at 2016-03-14 23:01:01 +0200
Processing by SimpleCart::CartsController#add as HTML
Parameters: {"authenticity_token"=>"+4Qe4J+cHnd3GczTqSOnZAfQ6uYEFX6eggUqziYaCaYdmw5bRaiyghz+uKHXXNOsQjBu2Ty3+CiGyv0ilavYoA==", "item_id"=>"clear"}
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-14 23:01:01 +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 (1.7ms)
Completed 500 Internal Server Error in 4ms (ActiveRecord: 0.0ms)
ActionView::Template::Error (wrong constant name ):
26: Total
27: %th.col-md-1
28: %tbody
29: - @cart.items.each_with_index do |item, index|
30: %tr
31: %td
32: / = image_tag(book.cover.url)
activesupport (4.2.5.2) lib/active_support/inflector/methods.rb:254:in `const_get'
activesupport (4.2.5.2) lib/active_support/inflector/methods.rb:254:in `constantize'
activesupport (4.2.5.2) lib/active_support/core_ext/string/inflections.rb:66:in `constantize'
/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__2834291672789566106_12193620'
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__2834291672789566106_12193620'
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.3ms)
Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (2.8ms)
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/template_error.html.erb within rescues/layout (22.0ms)
Started GET "/simple_cart/cart" for 127.0.0.1 at 2016-03-14 23:01:41 +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 (1.5ms)
Completed 500 Internal Server Error in 7ms (ActiveRecord: 0.0ms)
ActionView::Template::Error (wrong constant name ):
26: Total
27: %th.col-md-1
28: %tbody
29: - @cart.items.each_with_index do |item, index|
30: %tr
31: %td
32: / = image_tag(book.cover.url)
activesupport (4.2.5.2) lib/active_support/inflector/methods.rb:254:in `const_get'
activesupport (4.2.5.2) lib/active_support/inflector/methods.rb:254:in `constantize'
activesupport (4.2.5.2) lib/active_support/core_ext/string/inflections.rb:66:in `constantize'
/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__2834291672789566106_12193620'
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__2834291672789566106_12193620'
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 (8.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.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.7ms)
Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/rescues/template_error.html.erb within rescues/layout (20.8ms)
Started GET "/simple_cart/cart" for 127.0.0.1 at 2016-03-14 23:01:45 +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 (3.7ms)
Completed 200 OK in 20ms (Views: 20.0ms | ActiveRecord: 0.0ms)
Started GET "/simple_cart/cart" for 127.0.0.1 at 2016-03-14 23:01:48 +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 (4.2ms)
Completed 200 OK in 24ms (Views: 23.5ms | ActiveRecord: 0.0ms)
Started POST "/simple_cart/cart/clear" for 127.0.0.1 at 2016-03-14 23:01:49 +0200
Processing by SimpleCart::CartsController#add as HTML
Parameters: {"authenticity_token"=>"yVUubJV5/tZg5QC2tXOl5j6I0Ub9RZ4r6RN4wwyopf86Tccnf6H6cXkIRKbfn50+YDp37h8nRbE0Th2GZ+EjVg==", "item_id"=>"clear"}
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-14 23:01:49 +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 (1.0ms)
Completed 500 Internal Server Error in 3ms (ActiveRecord: 0.0ms)
ActionView::Template::Error (wrong constant name ):
26: Total
27: %th.col-md-1
28: %tbody
29: - @cart.items.each_with_index do |item, index|
30: %tr
31: %td
32: / = image_tag(book.cover.url)
activesupport (4.2.5.2) lib/active_support/inflector/methods.rb:254:in `const_get'
activesupport (4.2.5.2) lib/active_support/inflector/methods.rb:254:in `constantize'
activesupport (4.2.5.2) lib/active_support/core_ext/string/inflections.rb:66:in `constantize'
/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__2834291672789566106_12193620'
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__2834291672789566106_12193620'
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.5ms)
Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (3.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.3ms)
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 (24.9ms)
Started GET "/simple_cart/cart" for 127.0.0.1 at 2016-03-14 23:02:02 +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 (16.3ms)
Completed 200 OK in 40ms (Views: 39.9ms | ActiveRecord: 0.0ms)
Started GET "/simple_cart/cart/clear" for 127.0.0.1 at 2016-03-14 23:02:03 +0200
Processing by SimpleCart::CartsController#clear as HTML
Completed 500 Internal Server Error in 1ms (ActiveRecord: 0.0ms)
NoMethodError (undefined method `session' for nil:NilClass):
/home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/controllers/simple_cart/carts_controller.rb:36:in `clear'
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: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 (5.4ms)
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.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 (19.1ms)
Started GET "/simple_cart/cart/clear" for 127.0.0.1 at 2016-03-14 23:02:03 +0200
Processing by SimpleCart::CartsController#clear as HTML
Completed 500 Internal Server Error in 1ms (ActiveRecord: 0.0ms)
NoMethodError (undefined method `session' for nil:NilClass):
/home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/controllers/simple_cart/carts_controller.rb:36:in `clear'
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: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 (5.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.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 GET "/simple_cart/cart" for 127.0.0.1 at 2016-03-14 23:49:14 +0200
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
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 (18.3ms)
Completed 200 OK in 236ms (Views: 228.1ms | ActiveRecord: 0.0ms)
Started GET "/simple_cart/cart/clear" for 127.0.0.1 at 2016-03-14 23:49:16 +0200
ActionController::RoutingError (No route matches [GET] "/simple_cart/cart/clear"):
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.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/_trace.html.erb (3.0ms)
Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/routes/_route.html.erb (3.1ms)
Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/routes/_route.html.erb (1.1ms)
Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/routes/_table.html.erb (3.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 (1.7ms)
Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/rescues/routing_error.html.erb within rescues/layout (61.8ms)
Started GET "/simple_cart/cart/clear" for 127.0.0.1 at 2016-03-14 23:49:16 +0200
ActionController::RoutingError (No route matches [GET] "/simple_cart/cart/clear"):
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.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/_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/routes/_route.html.erb (3.8ms)
Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/routes/_route.html.erb (1.2ms)
Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/routes/_table.html.erb (3.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 (2.4ms)
Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/rescues/routing_error.html.erb within rescues/layout (50.5ms)
Started GET "/simple_cart/cart" for 127.0.0.1 at 2016-03-14 23:49:36 +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 (16.2ms)
Completed 200 OK in 44ms (Views: 43.7ms | ActiveRecord: 0.0ms)
Started GET "/assets/simple_cart/application.self-2f12d59583468bdcee27c6046669f62a778d265fc91cf385e5d36e9189ac822e.css?body=1" for 127.0.0.1 at 2016-03-14 23:49:36 +0200
Started GET "/assets/jquery.self-660adc51e0224b731d29f575a6f1ec167ba08ad06ed5deca4f1e8654c135bf4c.js?body=1" for 127.0.0.1 at 2016-03-14 23:49:36 +0200
Started GET "/assets/jquery_ujs.self-e87806d0cf4489aeb1bb7288016024e8de67fd18db693fe026fe3907581e53cd.js?body=1" for 127.0.0.1 at 2016-03-14 23:49:36 +0200
Started GET "/assets/turbolinks.self-c37727e9bd6b2735da5c311aa83fead54ed0be6cc8bd9a65309e9c5abe2cbfff.js?body=1" for 127.0.0.1 at 2016-03-14 23:49:36 +0200
Started GET "/assets/simple_cart/application.self-3b8dabdc891efe46b9a144b400ad69e37d7e5876bdc39dee783419a69d7ca819.js?body=1" for 127.0.0.1 at 2016-03-14 23:49:36 +0200
Started POST "/simple_cart/cart/clear" for 127.0.0.1 at 2016-03-14 23:49:37 +0200
Processing by SimpleCart::CartsController#clear as HTML
Parameters: {"authenticity_token"=>"80ZEAdIiq1NKJXmmPCpQ3aYTyFa1AvugzTrQh+t+XTIhmIiDTCdvZre1+pVGqYaipYPA5ww1VLmIJzbcfSanKg=="}
Completed 500 Internal Server Error in 1ms (ActiveRecord: 0.0ms)
NoMethodError (undefined method `session' for nil:NilClass):
/home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/controllers/simple_cart/carts_controller.rb:36:in `clear'
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.4ms)
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.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 (16.7ms)
Started GET "/simple_cart/cart/" for 127.0.0.1 at 2016-03-14 23:50:28 +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 (3.6ms)
Completed 200 OK in 23ms (Views: 21.9ms | ActiveRecord: 0.0ms)
Started GET "/simple_cart/cart/" for 127.0.0.1 at 2016-03-14 23:50:28 +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 (5.0ms)
Completed 200 OK in 28ms (Views: 27.7ms | ActiveRecord: 0.0ms)
Started POST "/simple_cart/cart/clear" for 127.0.0.1 at 2016-03-14 23:50:30 +0200
Processing by SimpleCart::CartsController#clear as HTML
Parameters: {"authenticity_token"=>"0VCJZKBh4raruB3+8/6awt/jGRbZpQLBt0fLDsDH8dADjkXmPmQmg1Yons2JfUy93HMRp2CSrdjyWi1VVp8LyA=="}
Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml within layouts/simple_cart/application (6.4ms)
Completed 200 OK in 36ms (Views: 35.1ms | ActiveRecord: 0.0ms)
Started POST "/simple_cart/cart/clear" for 127.0.0.1 at 2016-03-14 23:50:31 +0200
Processing by SimpleCart::CartsController#clear as HTML
Parameters: {"authenticity_token"=>"gdts/GvOupjyx8QGhP6tMNeBSVX4EDMcrIEfg/aD5+JTBaB+9ct+rQ9XRzX+fXtP1BFB5EEnnAXpnPnYYNsd+g=="}
Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml within layouts/simple_cart/application (5.8ms)
Completed 200 OK in 28ms (Views: 27.0ms | ActiveRecord: 0.0ms)
Started POST "/simple_cart/cart/clear" for 127.0.0.1 at 2016-03-14 23:50:33 +0200
Processing by SimpleCart::CartsController#clear as HTML
Parameters: {"authenticity_token"=>"JbBPSdmmH8KHJoT/QFWfvwU8039Cij2mZPSCK7WllN73boPLR6Pb93q2B8w61knABqzbzvu9kr8h6WRwI/1uxg=="}
Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml within layouts/simple_cart/application (3.9ms)
Completed 200 OK in 27ms (Views: 26.1ms | ActiveRecord: 0.0ms)
Started GET "/items" for 127.0.0.1 at 2016-03-14 23:50:36 +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.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 (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 (17.0ms)
Started GET "/kks" for 127.0.0.1 at 2016-03-14 23:50:39 +0200
Processing by KksController#index as HTML
[1m[35mKk Load (0.5ms)[0m SELECT "kks".* FROM "kks"
Rendered kks/index.html.erb within layouts/application (9.5ms)
Completed 200 OK in 33ms (Views: 29.7ms | ActiveRecord: 0.9ms)
Started GET "/kks" for 127.0.0.1 at 2016-03-14 23:50:39 +0200
Processing by KksController#index as HTML
[1m[36mKk Load (0.1ms)[0m [1mSELECT "kks".* FROM "kks"[0m
Rendered kks/index.html.erb within layouts/application (1.5ms)
Completed 200 OK in 16ms (Views: 15.5ms | ActiveRecord: 0.1ms)
Started GET "/kks/1" for 127.0.0.1 at 2016-03-14 23:50:40 +0200
Processing by KksController#show as HTML
Parameters: {"id"=>"1"}
[1m[35mKk Load (0.2ms)[0m 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 (9.1ms)
Rendered kks/show.html.erb within layouts/application (10.8ms)
Completed 200 OK in 38ms (Views: 25.2ms | ActiveRecord: 0.2ms)
Started POST "/simple_cart/cart/1" for 127.0.0.1 at 2016-03-14 23:50:42 +0200
Processing by SimpleCart::CartsController#add as HTML
Parameters: {"utf8"=>"✓", "authenticity_token"=>"o5uUMG2NNyWmZhNQGnskj+wYb4LXKHAWM58K/XtodEJxRViy84jzEFv2kGNg+PLw74hnM24f3w92guym7TCOWg==", "qty"=>"1", "klass"=>"Kk", "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-14 23:50:42 +0200
Processing by SimpleCart::CartsController#show as HTML
[1m[36mKk Load (0.1ms)[0m [1mSELECT "kks".* FROM "kks" WHERE "kks"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mCACHE (0.0ms)[0m 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 (10.9ms)
Completed 200 OK in 32ms (Views: 31.7ms | ActiveRecord: 0.1ms)
Started POST "/simple_cart/cart/clear" for 127.0.0.1 at 2016-03-14 23:50:43 +0200
Processing by SimpleCart::CartsController#clear as HTML
Parameters: {"authenticity_token"=>"3EcS3xEU7ga4itzn8tfVx6iYRF0mG5QH36iExP2xoAcOmd5djxEqM0UaX9SIVAO4qwhM7J8sOx6atWKfa+laHw=="}
[1m[36mKk Load (0.1ms)[0m [1mSELECT "kks".* FROM "kks" WHERE "kks"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mCACHE (0.0ms)[0m 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 (8.2ms)
Completed 200 OK in 28ms (Views: 27.1ms | ActiveRecord: 0.1ms)
Started POST "/simple_cart/cart/clear" for 127.0.0.1 at 2016-03-14 23:50:45 +0200
Processing by SimpleCart::CartsController#clear as HTML
Parameters: {"authenticity_token"=>"iNswMv3O/xnKAnwfby7WqaaPssQ0EAsfAzNeYkNQTMdaBfywY8s7LDeS/ywVrQDWpR+6dY0npAZGLrg51Qi23w=="}
[1m[36mKk Load (0.1ms)[0m [1mSELECT "kks".* FROM "kks" WHERE "kks"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mCACHE (0.0ms)[0m 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 (8.1ms)
Completed 200 OK in 27ms (Views: 26.0ms | ActiveRecord: 0.2ms)
Started POST "/simple_cart/cart/clear" for 127.0.0.1 at 2016-03-14 23:51:22 +0200
Processing by SimpleCart::CartsController#clear as HTML
Parameters: {"authenticity_token"=>"iNswMv3O/xnKAnwfby7WqaaPssQ0EAsfAzNeYkNQTMdaBfywY8s7LDeS/ywVrQDWpR+6dY0npAZGLrg51Qi23w=="}
[1m[36mKk Load (0.2ms)[0m [1mSELECT "kks".* FROM "kks" WHERE "kks"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mCACHE (0.0ms)[0m 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 (13.9ms)
Completed 200 OK in 36ms (Views: 33.8ms | ActiveRecord: 0.8ms)
Started GET "/assets/simple_cart/application.self-2f12d59583468bdcee27c6046669f62a778d265fc91cf385e5d36e9189ac822e.css?body=1" for 127.0.0.1 at 2016-03-14 23:51:22 +0200
Started GET "/assets/jquery.self-660adc51e0224b731d29f575a6f1ec167ba08ad06ed5deca4f1e8654c135bf4c.js?body=1" for 127.0.0.1 at 2016-03-14 23:51:22 +0200
Started GET "/assets/turbolinks.self-c37727e9bd6b2735da5c311aa83fead54ed0be6cc8bd9a65309e9c5abe2cbfff.js?body=1" for 127.0.0.1 at 2016-03-14 23:51:22 +0200
Started GET "/assets/jquery_ujs.self-e87806d0cf4489aeb1bb7288016024e8de67fd18db693fe026fe3907581e53cd.js?body=1" for 127.0.0.1 at 2016-03-14 23:51:22 +0200
Started GET "/assets/simple_cart/application.self-3b8dabdc891efe46b9a144b400ad69e37d7e5876bdc39dee783419a69d7ca819.js?body=1" for 127.0.0.1 at 2016-03-14 23:51:22 +0200
Started POST "/simple_cart/cart/clear" for 127.0.0.1 at 2016-03-14 23:51:23 +0200
Processing by SimpleCart::CartsController#clear as HTML
Parameters: {"authenticity_token"=>"08A/HYoe4pdgiuevTeeKDIsGc7SO3mW2RxKo49qbPycBHvOfFBsmop0aZJw3ZFxziJZ7BTfpyq8CD064TMPFPw=="}
Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml within layouts/simple_cart/application (3.6ms)
Completed 200 OK in 23ms (Views: 22.4ms | ActiveRecord: 0.0ms)
Started POST "/simple_cart/cart/clear" for 127.0.0.1 at 2016-03-14 23:51:25 +0200
Processing by SimpleCart::CartsController#clear as HTML
Parameters: {"authenticity_token"=>"kx+7HoaLpySNzwbe1wi/os0Xk/44bThwYFco/GqritNBwXecGI5jEXBfhe2ti2ndzoebT4Fal2klSs6n/PNwyw=="}
Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml within layouts/simple_cart/application (6.4ms)
Completed 200 OK in 26ms (Views: 25.2ms | ActiveRecord: 0.0ms)
Started POST "/simple_cart/cart/clear" for 127.0.0.1 at 2016-03-14 23:51:56 +0200
Processing by SimpleCart::CartsController#clear as HTML
Parameters: {"authenticity_token"=>"kx+7HoaLpySNzwbe1wi/os0Xk/44bThwYFco/GqritNBwXecGI5jEXBfhe2ti2ndzoebT4Fal2klSs6n/PNwyw=="}
Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml within layouts/simple_cart/application (16.1ms)
Completed 200 OK in 36ms (Views: 35.5ms | ActiveRecord: 0.0ms)
Started GET "/assets/simple_cart/application.self-2f12d59583468bdcee27c6046669f62a778d265fc91cf385e5d36e9189ac822e.css?body=1" for 127.0.0.1 at 2016-03-14 23:51:57 +0200
Started GET "/assets/jquery.self-660adc51e0224b731d29f575a6f1ec167ba08ad06ed5deca4f1e8654c135bf4c.js?body=1" for 127.0.0.1 at 2016-03-14 23:51:57 +0200
Started GET "/assets/simple_cart/application.self-3b8dabdc891efe46b9a144b400ad69e37d7e5876bdc39dee783419a69d7ca819.js?body=1" for 127.0.0.1 at 2016-03-14 23:51:57 +0200
Started GET "/assets/jquery_ujs.self-e87806d0cf4489aeb1bb7288016024e8de67fd18db693fe026fe3907581e53cd.js?body=1" for 127.0.0.1 at 2016-03-14 23:51:57 +0200
Started GET "/assets/turbolinks.self-c37727e9bd6b2735da5c311aa83fead54ed0be6cc8bd9a65309e9c5abe2cbfff.js?body=1" for 127.0.0.1 at 2016-03-14 23:51:57 +0200
Started GET "/kks" for 127.0.0.1 at 2016-03-14 23:52:02 +0200
Processing by KksController#index as HTML
[1m[36mKk Load (0.2ms)[0m [1mSELECT "kks".* FROM "kks"[0m
Rendered kks/index.html.erb within layouts/application (2.5ms)
Completed 200 OK in 25ms (Views: 23.4ms | ActiveRecord: 0.2ms)
Started GET "/kss" for 127.0.0.1 at 2016-03-14 23:52:02 +0200
ActionController::RoutingError (No route matches [GET] "/kss"):
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.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/_trace.html.erb (1.4ms)
Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/routes/_route.html.erb (3.2ms)
Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/routes/_route.html.erb (0.9ms)
Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/routes/_table.html.erb (1.6ms)
Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (1.2ms)
Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/rescues/routing_error.html.erb within rescues/layout (46.7ms)
Started GET "/kks" for 127.0.0.1 at 2016-03-14 23:52:05 +0200
Processing by KksController#index as HTML
[1m[35mKk Load (0.2ms)[0m SELECT "kks".* FROM "kks"
Rendered kks/index.html.erb within layouts/application (2.1ms)
Completed 200 OK in 19ms (Views: 18.4ms | ActiveRecord: 0.2ms)
Started GET "/kks/1" for 127.0.0.1 at 2016-03-14 23:52:06 +0200
Processing by KksController#show as HTML
Parameters: {"id"=>"1"}
[1m[36mKk Load (0.1ms)[0m [1mSELECT "kks".* FROM "kks" WHERE "kks"."id" = ? LIMIT 1[0m [["id", 1]]
Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/carts/_buy.html.haml (7.1ms)
Rendered kks/show.html.erb within layouts/application (8.5ms)
Completed 200 OK in 28ms (Views: 26.7ms | ActiveRecord: 0.1ms)
Started POST "/simple_cart/cart/1" for 127.0.0.1 at 2016-03-14 23:52:09 +0200
Processing by SimpleCart::CartsController#add as HTML
Parameters: {"utf8"=>"✓", "authenticity_token"=>"b7lYEx0wW6l83VF8Of3ufLTOvv8K1nziV5PiKP6DRge9Z5SRgzWfnIFN0k9DfjgDt162TrPh0/sSjgRzaNu8Hw==", "qty"=>"4", "klass"=>"Kk", "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-14 23:52:09 +0200
Processing by SimpleCart::CartsController#show as HTML
[1m[35mKk Load (0.2ms)[0m SELECT "kks".* FROM "kks" WHERE "kks"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "kks".* FROM "kks" WHERE "kks"."id" = ? LIMIT 1[0m [["id", "1"]]
Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml within layouts/simple_cart/application (14.9ms)
Completed 200 OK in 36ms (Views: 35.4ms | ActiveRecord: 0.2ms)
Started POST "/simple_cart/cart/clear" for 127.0.0.1 at 2016-03-14 23:52:10 +0200
Processing by SimpleCart::CartsController#clear as HTML
Parameters: {"authenticity_token"=>"/wtgvyvBq+82YcRsXVQ2ot188Mb8/WmNoLHx1zWLKR4t1aw9tcRv2svxR18n1+Dd3uz4d0XKxpTlrBeMo9PTBg=="}
[1m[35mKk Load (0.1ms)[0m SELECT "kks".* FROM "kks" WHERE "kks"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "kks".* FROM "kks" WHERE "kks"."id" = ? LIMIT 1[0m [["id", "1"]]
Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml within layouts/simple_cart/application (10.0ms)
Completed 200 OK in 28ms (Views: 27.5ms | ActiveRecord: 0.1ms)
Started POST "/simple_cart/cart/clear" for 127.0.0.1 at 2016-03-14 23:52:12 +0200
Processing by SimpleCart::CartsController#clear as HTML
Parameters: {"authenticity_token"=>"uBXJ6iDTsPad44+1xi3vvMlWYQq9KieDQguhEM5iOhZqywVovtZ0w2BzDIa8rjnDysZpuwQdiJoHFkdLWDrADg=="}
Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml within layouts/simple_cart/application (0.9ms)
Completed 200 OK in 28ms (Views: 27.4ms | ActiveRecord: 0.0ms)
Started GET "/simple_cart/cart/" for 127.0.0.1 at 2016-03-14 23:52:16 +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 (1.1ms)
Completed 200 OK in 22ms (Views: 21.2ms | ActiveRecord: 0.0ms)
Started GET "/simple_cart/cart/" for 127.0.0.1 at 2016-03-14 23:52:17 +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.6ms)
Completed 200 OK in 21ms (Views: 20.3ms | ActiveRecord: 0.0ms)
Started GET "/kks/2" for 127.0.0.1 at 2016-03-14 23:52:26 +0200
Processing by KksController#show as HTML
Parameters: {"id"=>"2"}
[1m[35mKk Load (0.1ms)[0m SELECT "kks".* FROM "kks" WHERE "kks"."id" = ? LIMIT 1 [["id", 2]]
Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/carts/_buy.html.haml (4.9ms)
Rendered kks/show.html.erb within layouts/application (6.2ms)
Completed 200 OK in 23ms (Views: 21.9ms | ActiveRecord: 0.1ms)
Started POST "/simple_cart/cart/2" for 127.0.0.1 at 2016-03-14 23:52:29 +0200
Processing by SimpleCart::CartsController#add as HTML
Parameters: {"utf8"=>"✓", "authenticity_token"=>"svWCUJDeavDcznk8rfeTq6Om8k4HDYY/KR+X3KpKSY5gK07SDtuuxSFe+g/XdEXUoDb6/746KSZsAnGHPBKzlg==", "qty"=>"7", "klass"=>"Kk", "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-14 23:52:29 +0200
Processing by SimpleCart::CartsController#show as HTML
[1m[36mKk Load (0.1ms)[0m [1mSELECT "kks".* FROM "kks" WHERE "kks"."id" = ? LIMIT 1[0m [["id", 2]]
[1m[35mCACHE (0.0ms)[0m SELECT "kks".* FROM "kks" WHERE "kks"."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.1ms)
Completed 200 OK in 29ms (Views: 27.9ms | ActiveRecord: 0.1ms)
Started GET "/simple_cart/cart" for 127.0.0.1 at 2016-03-14 23:52:32 +0200
Processing by SimpleCart::CartsController#show as HTML
[1m[36mKk Load (0.2ms)[0m [1mSELECT "kks".* FROM "kks" WHERE "kks"."id" = ? LIMIT 1[0m [["id", 2]]
[1m[35mCACHE (0.0ms)[0m SELECT "kks".* FROM "kks" WHERE "kks"."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.5ms)
Completed 200 OK in 30ms (Views: 29.6ms | ActiveRecord: 0.2ms)
Started GET "/assets/simple_cart/application.self-2f12d59583468bdcee27c6046669f62a778d265fc91cf385e5d36e9189ac822e.css?body=1" for 127.0.0.1 at 2016-03-14 23:52:32 +0200
Started GET "/assets/jquery.self-660adc51e0224b731d29f575a6f1ec167ba08ad06ed5deca4f1e8654c135bf4c.js?body=1" for 127.0.0.1 at 2016-03-14 23:52:32 +0200
Started GET "/assets/jquery_ujs.self-e87806d0cf4489aeb1bb7288016024e8de67fd18db693fe026fe3907581e53cd.js?body=1" for 127.0.0.1 at 2016-03-14 23:52:32 +0200
Started GET "/assets/turbolinks.self-c37727e9bd6b2735da5c311aa83fead54ed0be6cc8bd9a65309e9c5abe2cbfff.js?body=1" for 127.0.0.1 at 2016-03-14 23:52:32 +0200
Started GET "/assets/simple_cart/application.self-3b8dabdc891efe46b9a144b400ad69e37d7e5876bdc39dee783419a69d7ca819.js?body=1" for 127.0.0.1 at 2016-03-14 23:52:32 +0200
Started POST "/simple_cart/cart/clear" for 127.0.0.1 at 2016-03-14 23:52:33 +0200
Processing by SimpleCart::CartsController#clear as HTML
Parameters: {"authenticity_token"=>"y/UEMjvHKNTptGushO4PzQScDNHIgVnY3qfSDmwWhQkZK8iwpcLs4RQk6J/+bdmyBwwEYHG29sGbujRV+k5/EQ=="}
[1m[36mKk Load (0.1ms)[0m [1mSELECT "kks".* FROM "kks" WHERE "kks"."id" = ? LIMIT 1[0m [["id", 2]]
[1m[35mCACHE (0.0ms)[0m SELECT "kks".* FROM "kks" WHERE "kks"."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 (17.1ms)
Completed 200 OK in 44ms (Views: 43.5ms | ActiveRecord: 0.2ms)
Started POST "/simple_cart/cart/clear" for 127.0.0.1 at 2016-03-14 23:52:45 +0200
Processing by SimpleCart::CartsController#clear as HTML
Parameters: {"authenticity_token"=>"y/UEMjvHKNTptGushO4PzQScDNHIgVnY3qfSDmwWhQkZK8iwpcLs4RQk6J/+bdmyBwwEYHG29sGbujRV+k5/EQ=="}
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-14 23:52:45 +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 (1.4ms)
Completed 200 OK in 23ms (Views: 22.5ms | ActiveRecord: 0.0ms)
Started GET "/assets/simple_cart/application.self-2f12d59583468bdcee27c6046669f62a778d265fc91cf385e5d36e9189ac822e.css?body=1" for 127.0.0.1 at 2016-03-14 23:52:46 +0200
Started GET "/assets/jquery.self-660adc51e0224b731d29f575a6f1ec167ba08ad06ed5deca4f1e8654c135bf4c.js?body=1" for 127.0.0.1 at 2016-03-14 23:52:46 +0200
Started GET "/assets/simple_cart/application.self-3b8dabdc891efe46b9a144b400ad69e37d7e5876bdc39dee783419a69d7ca819.js?body=1" for 127.0.0.1 at 2016-03-14 23:52:46 +0200
Started GET "/assets/turbolinks.self-c37727e9bd6b2735da5c311aa83fead54ed0be6cc8bd9a65309e9c5abe2cbfff.js?body=1" for 127.0.0.1 at 2016-03-14 23:52:46 +0200
Started GET "/assets/jquery_ujs.self-e87806d0cf4489aeb1bb7288016024e8de67fd18db693fe026fe3907581e53cd.js?body=1" for 127.0.0.1 at 2016-03-14 23:52:46 +0200
Started POST "/simple_cart/cart/2" for 127.0.0.1 at 2016-03-14 23:52:53 +0200
Processing by SimpleCart::CartsController#add as HTML
Parameters: {"utf8"=>"✓", "authenticity_token"=>"svWCUJDeavDcznk8rfeTq6Om8k4HDYY/KR+X3KpKSY5gK07SDtuuxSFe+g/XdEXUoDb6/746KSZsAnGHPBKzlg==", "qty"=>"7", "klass"=>"Kk", "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-14 23:52:53 +0200
Processing by SimpleCart::CartsController#show as HTML
[1m[36mKk Load (0.1ms)[0m [1mSELECT "kks".* FROM "kks" WHERE "kks"."id" = ? LIMIT 1[0m [["id", 2]]
[1m[35mCACHE (0.0ms)[0m SELECT "kks".* FROM "kks" WHERE "kks"."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 (15.5ms)
Completed 200 OK in 35ms (Views: 33.7ms | ActiveRecord: 0.7ms)
Started GET "/simple_cart/cart/remove?id=Kk_2" for 127.0.0.1 at 2016-03-14 23:52:55 +0200
Processing by SimpleCart::CartsController#remove as HTML
Parameters: {"id"=>"Kk_2"}
Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml within layouts/simple_cart/application (5.9ms)
Completed 200 OK in 24ms (Views: 23.6ms | ActiveRecord: 0.0ms)
Started GET "/kks/2" for 127.0.0.1 at 2016-03-14 23:52:59 +0200
Processing by KksController#show as HTML
Parameters: {"id"=>"2"}
[1m[36mKk Load (0.1ms)[0m [1mSELECT "kks".* FROM "kks" WHERE "kks"."id" = ? LIMIT 1[0m [["id", 2]]
Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/carts/_buy.html.haml (6.2ms)
Rendered kks/show.html.erb within layouts/application (7.3ms)
Completed 200 OK in 27ms (Views: 25.9ms | ActiveRecord: 0.1ms)
Started POST "/simple_cart/cart/2" for 127.0.0.1 at 2016-03-14 23:53:00 +0200
Processing by SimpleCart::CartsController#add as HTML
Parameters: {"utf8"=>"✓", "authenticity_token"=>"WFM9XDB0bqqhmawKyXuO1N6boZ4O+9ONfva5kBvERhaKjfHernGqn1wJLzmz+Fir3QupL7fMfJQ761/LjZy8Dg==", "qty"=>"1", "klass"=>"Kk", "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-14 23:53:00 +0200
Processing by SimpleCart::CartsController#show as HTML
[1m[35mKk Load (0.2ms)[0m SELECT "kks".* FROM "kks" WHERE "kks"."id" = ? LIMIT 1 [["id", 2]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "kks".* FROM "kks" WHERE "kks"."id" = ? LIMIT 1[0m [["id", "2"]]
Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml within layouts/simple_cart/application (7.6ms)
Completed 200 OK in 27ms (Views: 26.5ms | ActiveRecord: 0.2ms)
Started GET "/kks/1" for 127.0.0.1 at 2016-03-14 23:53:04 +0200
Processing by KksController#show as HTML
Parameters: {"id"=>"1"}
[1m[35mKk Load (0.1ms)[0m 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.2ms)
Rendered kks/show.html.erb within layouts/application (8.6ms)
Completed 200 OK in 26ms (Views: 25.4ms | ActiveRecord: 0.1ms)
Started POST "/simple_cart/cart/1" for 127.0.0.1 at 2016-03-14 23:53:05 +0200
Processing by SimpleCart::CartsController#add as HTML
Parameters: {"utf8"=>"✓", "authenticity_token"=>"nUnSQdTrLazUPO+wl/hGo/+njAZe+1LaPGMEicq/vb1Plx7DSu7pmSmsbIPte5Dc/DeEt+fM/cN5fuLSXOdHpQ==", "qty"=>"1", "klass"=>"Kk", "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-14 23:53:05 +0200
Processing by SimpleCart::CartsController#show as HTML
[1m[36mKk Load (0.1ms)[0m [1mSELECT "kks".* FROM "kks" WHERE "kks"."id" = ? LIMIT 1[0m [["id", 2]]
[1m[35mKk Load (0.1ms)[0m SELECT "kks".* FROM "kks" WHERE "kks"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "kks".* FROM "kks" WHERE "kks"."id" = ? LIMIT 1[0m [["id", "2"]]
[1m[35mCACHE (0.0ms)[0m 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 (28.8ms)
Completed 200 OK in 54ms (Views: 53.1ms | ActiveRecord: 0.3ms)
Started GET "/simple_cart/cart/remove?id=Kk_2" for 127.0.0.1 at 2016-03-14 23:53:07 +0200
Processing by SimpleCart::CartsController#remove as HTML
Parameters: {"id"=>"Kk_2"}
[1m[36mKk Load (0.1ms)[0m [1mSELECT "kks".* FROM "kks" WHERE "kks"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mCACHE (0.0ms)[0m 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 (9.3ms)
Completed 200 OK in 27ms (Views: 26.1ms | ActiveRecord: 0.1ms)
Started PUT "/simple_cart/cart" for 127.0.0.1 at 2016-03-14 23:53:16 +0200
Processing by SimpleCart::CartsController#update as HTML
Parameters: {"utf8"=>"✓", "authenticity_token"=>"VM6J0khXO9+I/tkupLVZvruoWyqgddHs/sbSFq6a8gKGEEVQ1lL/6nVuWh3eNo/BuDhTmxlCfvW72zRNOMIIGg==", "Kk_1"=>"1", "coupon"=>"", "commit"=>"Update"}
[1m[36mKk Load (0.1ms)[0m [1mSELECT "kks".* FROM "kks" WHERE "kks"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mCACHE (0.0ms)[0m 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 (9.8ms)
Completed 200 OK in 29ms (Views: 28.4ms | ActiveRecord: 0.2ms)
Started PUT "/simple_cart/cart" for 127.0.0.1 at 2016-03-14 23:53:18 +0200
Processing by SimpleCart::CartsController#update as HTML
Parameters: {"utf8"=>"✓", "authenticity_token"=>"7pCwY8m16ZW6qG6MopTMdwsz6pLxPVIEbE4zhkAc/y08TnzhV7AtoEc47b/YFxoICKPiI0gK/R0pU9Xd1kQFNQ==", "Kk_1"=>"3", "coupon"=>"", "commit"=>"Update"}
[1m[36mKk Load (0.1ms)[0m [1mSELECT "kks".* FROM "kks" WHERE "kks"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mCACHE (0.0ms)[0m 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 (9.1ms)
Completed 200 OK in 32ms (Views: 31.3ms | ActiveRecord: 0.1ms)
Started POST "/simple_cart/cart/checkout?coupon=" for 127.0.0.1 at 2016-03-14 23:53:40 +0200
Processing by SimpleCart::CartsController#checkout as HTML
Parameters: {"authenticity_token"=>"mQE4wQYNhKLMheR51QSjyIpV2dFpCHzPyDRbuyXT/6tL3/RDmAhAlzEVZ0qvh3W3icXRYNA/09aNKb3gs4sFsw==", "coupon"=>""}
[1m[36mKk Load (0.1ms)[0m [1mSELECT "kks".* FROM "kks" WHERE "kks"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mCACHE (0.0ms)[0m SELECT "kks".* FROM "kks" WHERE "kks"."id" = ? LIMIT 1 [["id", "1"]]
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
[1m[35mSQL (0.4ms)[0m INSERT INTO "simple_cart_orders" ("total_price", "completed_date", "aasm_state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["total_price", 6.0], ["completed_date", "2016-03-14"], ["aasm_state", "in_progress"], ["created_at", "2016-03-14 21:53:40.356713"], ["updated_at", "2016-03-14 21:53:40.356713"]]
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "simple_cart_order_items" ("price", "qty", "itemable_id", "itemable_type", "order_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["price", 2.0], ["qty", 3], ["itemable_id", 1], ["itemable_type", "Kk"], ["order_id", "5"], ["created_at", "2016-03-14 21:53:40.359127"], ["updated_at", "2016-03-14 21:53:40.359127"]]
[1m[35m (53.9ms)[0m commit transaction
Redirected to http://localhost:3000/simple_cart/orders/5/checkout
Completed 302 Found in 116ms (ActiveRecord: 55.3ms)
Started GET "/simple_cart/orders/5/checkout" for 127.0.0.1 at 2016-03-14 23:53:40 +0200
Processing by SimpleCart::CheckoutController#index as HTML
Parameters: {"order_id"=>"5"}
[1m[36mSimpleCart::Order Load (0.2ms)[0m [1mSELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1[0m [["id", 5]]
Redirected to http://localhost:3000/simple_cart/orders/5/checkout/billing
Completed 302 Found in 4ms (ActiveRecord: 0.2ms)
Started GET "/simple_cart/orders/5/checkout/billing" for 127.0.0.1 at 2016-03-14 23:53:40 +0200
Processing by SimpleCart::CheckoutController#show as HTML
Parameters: {"order_id"=>"5", "id"=>"billing"}
[1m[35mSimpleCart::Order Load (0.1ms)[0m SELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1 [["id", 5]]
[1m[36mSimpleCart::BillingAddress Load (0.2ms)[0m [1mSELECT "simple_cart_addresses".* FROM "simple_cart_addresses" WHERE "simple_cart_addresses"."type" IN ('SimpleCart::BillingAddress') AND "simple_cart_addresses"."order_id" = ? LIMIT 1[0m [["order_id", 5]]
[1m[35mSimpleCart::ShippingAddress Load (0.2ms)[0m 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", 5]]
[1m[36mSimpleCart::CreditCard Load (0.2ms)[0m [1mSELECT "simple_cart_credit_cards".* FROM "simple_cart_credit_cards" WHERE "simple_cart_credit_cards"."order_id" = ? LIMIT 1[0m [["order_id", 5]]
Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/_progress.html.haml (3.3ms)
Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/_address.html.haml (21.9ms)
[1m[35mCACHE (0.0ms)[0m SELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1 [["id", "5"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1[0m [["id", "5"]]
Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/_summary.html.haml (5.0ms)
Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/billing.html.haml within layouts/simple_cart/application (40.0ms)
Completed 200 OK in 103ms (Views: 59.5ms | ActiveRecord: 1.3ms)
Started PATCH "/simple_cart/orders/5/checkout/billing" for 127.0.0.1 at 2016-03-14 23:53:43 +0200
Processing by SimpleCart::CheckoutController#update as HTML
Parameters: {"utf8"=>"✓", "authenticity_token"=>"e3Oo2ECtLjnZbXbKci6qzebLcy/1tecZjC5GMm9ow/aprWRa3qjqDCT99fkIrXyy5Vt7nkyCSADJM6Bp+TA57g==", "order"=>{"billing_address_attributes"=>{"firstname"=>"", "lastname"=>"", "address"=>"", "zipcode"=>"", "city"=>"", "phone"=>"", "country"=>"Afghanistan"}}, "shipping"=>{"use_billing_address"=>"true"}, "commit"=>"Save and continue", "order_id"=>"5", "id"=>"billing"}
[1m[35mSimpleCart::Order Load (0.1ms)[0m SELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1 [["id", 5]]
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
[1m[35mSimpleCart::BillingAddress Load (0.1ms)[0m 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", 5]]
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/_progress.html.haml (1.8ms)
Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/_address.html.haml (10.1ms)
[1m[35mSimpleCart::Order Load (0.1ms)[0m SELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1 [["id", 5]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1[0m [["id", "5"]]
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 (22.0ms)
Completed 200 OK in 57ms (Views: 41.4ms | ActiveRecord: 0.7ms)
Started PATCH "/simple_cart/orders/5/checkout/billing" for 127.0.0.1 at 2016-03-15 00:00:34 +0200
Processing by SimpleCart::CheckoutController#update as HTML
Parameters: {"utf8"=>"✓", "authenticity_token"=>"86pr76cIylS1es7M3ILQEhHEEKipuucxKylLKzOIpm0hdKdtOQ0OYUjqTf+mAQZtElQYGRCNSChuNK1wpdBcdQ==", "order"=>{"billing_address_attributes"=>{"firstname"=>"fsg", "lastname"=>"ds", "address"=>"dsg", "zipcode"=>"gdsgsdg", "city"=>"gds", "phone"=>"dsg", "country"=>"Afghanistan"}}, "shipping"=>{"use_billing_address"=>"true"}, "commit"=>"Save and continue", "order_id"=>"5", "id"=>"billing"}
[1m[35mSimpleCart::Order Load (0.1ms)[0m SELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1 [["id", 5]]
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
[1m[35mSimpleCart::BillingAddress Load (0.1ms)[0m 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", 5]]
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "simple_cart_addresses" ("type", "firstname", "lastname", "address", "zipcode", "city", "phone", "country", "order_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["type", "SimpleCart::BillingAddress"], ["firstname", "fsg"], ["lastname", "ds"], ["address", "dsg"], ["zipcode", "gdsgsdg"], ["city", "gds"], ["phone", "dsg"], ["country", "Afghanistan"], ["order_id", 5], ["created_at", "2016-03-14 22:00:34.941623"], ["updated_at", "2016-03-14 22:00:34.941623"]]
[1m[35m (102.0ms)[0m commit transaction
[1m[36mSimpleCart::ShippingAddress Load (0.2ms)[0m [1mSELECT "simple_cart_addresses".* FROM "simple_cart_addresses" WHERE "simple_cart_addresses"."type" IN ('SimpleCart::ShippingAddress') AND "simple_cart_addresses"."order_id" = ? LIMIT 1[0m [["order_id", 5]]
[1m[35m (0.1ms)[0m begin transaction
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "simple_cart_addresses" ("type", "order_id", "address", "zipcode", "city", "phone", "country", "created_at", "updated_at", "firstname", "lastname") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["type", "SimpleCart::ShippingAddress"], ["order_id", 5], ["address", "dsg"], ["zipcode", "gdsgsdg"], ["city", "gds"], ["phone", "dsg"], ["country", "Afghanistan"], ["created_at", "2016-03-14 22:00:34.941623"], ["updated_at", "2016-03-14 22:00:34.941623"], ["firstname", "fsg"], ["lastname", "ds"]]
[1m[35m (204.2ms)[0m commit transaction
Redirected to http://localhost:3000/simple_cart/orders/5/checkout/delivery
Completed 302 Found in 322ms (ActiveRecord: 307.5ms)
Started GET "/simple_cart/orders/5/checkout/delivery" for 127.0.0.1 at 2016-03-15 00:00:35 +0200
Processing by SimpleCart::CheckoutController#show as HTML
Parameters: {"order_id"=>"5", "id"=>"delivery"}
[1m[36mSimpleCart::Order Load (0.1ms)[0m [1mSELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1[0m [["id", 5]]
[1m[35mSimpleCart::ShippingAddress Load (0.1ms)[0m 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", 5]]
[1m[36mSimpleCart::BillingAddress Load (0.1ms)[0m [1mSELECT "simple_cart_addresses".* FROM "simple_cart_addresses" WHERE "simple_cart_addresses"."type" IN ('SimpleCart::BillingAddress') AND "simple_cart_addresses"."order_id" = ? LIMIT 1[0m [["order_id", 5]]
[1m[35mSimpleCart::CreditCard Load (0.1ms)[0m SELECT "simple_cart_credit_cards".* FROM "simple_cart_credit_cards" WHERE "simple_cart_credit_cards"."order_id" = ? LIMIT 1 [["order_id", 5]]
Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/_progress.html.haml (2.2ms)
[1m[36mSimpleCart::Delivery Load (0.2ms)[0m [1mSELECT "simple_cart_deliveries".* FROM "simple_cart_deliveries"[0m
[1m[35mSimpleCart::Delivery Load (0.2ms)[0m SELECT "simple_cart_deliveries".* FROM "simple_cart_deliveries" ORDER BY "simple_cart_deliveries"."id" ASC LIMIT 1
[1m[36mCACHE (0.0ms)[0m [1mSELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1[0m [["id", "5"]]
[1m[35mCACHE (0.0ms)[0m SELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1 [["id", "5"]]
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 (19.9ms)
Completed 200 OK in 45ms (Views: 39.5ms | ActiveRecord: 1.0ms)
Started PATCH "/simple_cart/orders/5/checkout/delivery" for 127.0.0.1 at 2016-03-15 00:00:37 +0200
Processing by SimpleCart::CheckoutController#update as HTML
Parameters: {"utf8"=>"✓", "authenticity_token"=>"GuCH6F4R87vVPgY+vcbE/cUnyVK3mtRxKZWN+Y5K0KrIPktqwBQ3jiiuhQ3HRRKCxrfB4w6te2hsiGuiGBIqsg==", "order"=>{"delivery_id"=>"9"}, "commit"=>"Continue", "order_id"=>"5", "id"=>"delivery"}
[1m[36mSimpleCart::Order Load (0.1ms)[0m [1mSELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1[0m [["id", 5]]
[1m[35mSimpleCart::Delivery Load (0.2ms)[0m SELECT "simple_cart_deliveries".* FROM "simple_cart_deliveries" WHERE "simple_cart_deliveries"."id" = ? LIMIT 1 [["id", 9]]
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
[1m[35mSQL (0.3ms)[0m UPDATE "simple_cart_orders" SET "delivery_id" = ?, "updated_at" = ? WHERE "simple_cart_orders"."id" = ? [["delivery_id", 9], ["updated_at", "2016-03-14 22:00:37.182953"], ["id", 5]]
[1m[36m (209.6ms)[0m [1mcommit transaction[0m
Redirected to http://localhost:3000/simple_cart/orders/5/checkout/payment
Completed 302 Found in 218ms (ActiveRecord: 210.3ms)
Started GET "/simple_cart/orders/5/checkout/payment" for 127.0.0.1 at 2016-03-15 00:00:37 +0200
Processing by SimpleCart::CheckoutController#show as HTML
Parameters: {"order_id"=>"5", "id"=>"payment"}
[1m[35mSimpleCart::Order Load (0.1ms)[0m SELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1 [["id", 5]]
[1m[36mSimpleCart::Delivery Load (0.1ms)[0m [1mSELECT "simple_cart_deliveries".* FROM "simple_cart_deliveries" WHERE "simple_cart_deliveries"."id" = ? LIMIT 1[0m [["id", 9]]
[1m[35mSimpleCart::BillingAddress Load (0.2ms)[0m 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", 5]]
[1m[36mSimpleCart::ShippingAddress Load (0.2ms)[0m [1mSELECT "simple_cart_addresses".* FROM "simple_cart_addresses" WHERE "simple_cart_addresses"."type" IN ('SimpleCart::ShippingAddress') AND "simple_cart_addresses"."order_id" = ? LIMIT 1[0m [["order_id", 5]]
[1m[35mSimpleCart::CreditCard Load (0.1ms)[0m SELECT "simple_cart_credit_cards".* FROM "simple_cart_credit_cards" WHERE "simple_cart_credit_cards"."order_id" = ? LIMIT 1 [["order_id", 5]]
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 (14.3ms)
Completed 200 OK in 40ms (Views: 33.2ms | ActiveRecord: 0.7ms)
Started PATCH "/simple_cart/orders/5/checkout/payment" for 127.0.0.1 at 2016-03-15 00:00:43 +0200
Processing by SimpleCart::CheckoutController#update as HTML
Parameters: {"utf8"=>"✓", "authenticity_token"=>"u1MhoQk1oN85aNQuxfd2lHQlTQ5Dd6Y0JL8rY6PJeltpje0jlzBk6sT4Vx2/dKDrd7VFv/pACS1hos04NZGAQw==", "order"=>{"credit_card_attributes"=>{"number"=>"1111111111111111", "expiration_month"=>"01", "expiration_year"=>"2017", "cvv"=>"522", "firstname"=>"215", "lastname"=>"dgs"}}, "commit"=>"Continue", "order_id"=>"5", "id"=>"payment"}
[1m[36mSimpleCart::Order Load (0.1ms)[0m [1mSELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1[0m [["id", 5]]
[1m[35m (0.1ms)[0m begin transaction
[1m[36mSimpleCart::CreditCard Load (0.1ms)[0m [1mSELECT "simple_cart_credit_cards".* FROM "simple_cart_credit_cards" WHERE "simple_cart_credit_cards"."order_id" = ? LIMIT 1[0m [["order_id", 5]]
[1m[35mSQL (0.2ms)[0m 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", "522"], ["firstname", "215"], ["lastname", "dgs"], ["order_id", 5], ["created_at", "2016-03-14 22:00:43.842201"], ["updated_at", "2016-03-14 22:00:43.842201"]]
[1m[36m (96.2ms)[0m [1mcommit transaction[0m
[1m[35m (0.1ms)[0m begin transaction
[1m[36m (0.1ms)[0m [1mcommit transaction[0m
Redirected to http://localhost:3000/simple_cart/orders/5/checkout/confirm
Completed 302 Found in 104ms (ActiveRecord: 96.8ms)
Started GET "/simple_cart/orders/5/checkout/confirm" for 127.0.0.1 at 2016-03-15 00:00:43 +0200
Processing by SimpleCart::CheckoutController#show as HTML
Parameters: {"order_id"=>"5", "id"=>"confirm"}
[1m[35mSimpleCart::Order Load (0.1ms)[0m SELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1 [["id", 5]]
[1m[36mSimpleCart::CreditCard Load (0.1ms)[0m [1mSELECT "simple_cart_credit_cards".* FROM "simple_cart_credit_cards" WHERE "simple_cart_credit_cards"."order_id" = ? LIMIT 1[0m [["order_id", 5]]
[1m[35mSimpleCart::BillingAddress Load (0.1ms)[0m 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", 5]]
[1m[36mSimpleCart::ShippingAddress Load (0.1ms)[0m [1mSELECT "simple_cart_addresses".* FROM "simple_cart_addresses" WHERE "simple_cart_addresses"."type" IN ('SimpleCart::ShippingAddress') AND "simple_cart_addresses"."order_id" = ? LIMIT 1[0m [["order_id", 5]]
Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/_progress.html.haml (9.1ms)
[1m[35mSimpleCart::Delivery Load (0.1ms)[0m 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 (5.6ms)
[1m[36mSimpleCart::OrderItem Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "simple_cart_order_items" WHERE "simple_cart_order_items"."order_id" = ? LIMIT 1[0m [["order_id", "5"]]
[1m[35mSimpleCart::OrderItem Load (0.1ms)[0m SELECT "simple_cart_order_items".* FROM "simple_cart_order_items" WHERE "simple_cart_order_items"."order_id" = ? [["order_id", "5"]]
[1m[36mKk Load (0.1ms)[0m [1mSELECT "kks".* FROM "kks" WHERE "kks"."id" = ? LIMIT 1[0m [["id", 1]]
Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/confirm.html.haml within layouts/simple_cart/application (35.7ms)
Completed 200 OK in 55ms (Views: 52.3ms | ActiveRecord: 0.7ms)
Started PATCH "/simple_cart/orders/5" for 127.0.0.1 at 2016-03-15 00:00:45 +0200
Processing by SimpleCart::OrdersController#update as HTML
Parameters: {"authenticity_token"=>"yjDHlVj82eo7z9DSE1A8Yonx2Xvas0k9TSPOAZOZ5bEY7gsXxvkd38ZfU+Fp0+odimHRymOE5iQIPihaBcEfqQ==", "id"=>"5"}
[1m[35mSimpleCart::Order Load (0.1ms)[0m SELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1 [["id", 5]]
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
[1m[35mSQL (0.2ms)[0m UPDATE "simple_cart_orders" SET "aasm_state" = ?, "updated_at" = ? WHERE "simple_cart_orders"."id" = ? [["aasm_state", "in_queue"], ["updated_at", "2016-03-14 22:00:45.426291"], ["id", 5]]
[1m[36m (218.3ms)[0m [1mcommit transaction[0m
[1m[35mSimpleCart::Delivery Load (0.1ms)[0m SELECT "simple_cart_deliveries".* FROM "simple_cart_deliveries" WHERE "simple_cart_deliveries"."id" = ? LIMIT 1 [["id", 9]]
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
[1m[35mSQL (0.2ms)[0m UPDATE "simple_cart_orders" SET "total_price" = ?, "completed_date" = ?, "updated_at" = ? WHERE "simple_cart_orders"."id" = ? [["total_price", 26.0], ["completed_date", "2016-03-15"], ["updated_at", "2016-03-14 22:00:45.647500"], ["id", 5]]
[1m[36m (91.0ms)[0m [1mcommit transaction[0m
Redirected to http://localhost:3000/simple_cart/orders/5
Completed 302 Found in 316ms (ActiveRecord: 310.0ms)
Started GET "/simple_cart/orders/5" for 127.0.0.1 at 2016-03-15 00:00:45 +0200
Processing by SimpleCart::OrdersController#show as HTML
Parameters: {"id"=>"5"}
[1m[35mSimpleCart::Order Load (0.2ms)[0m SELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1 [["id", 5]]
[1m[36mSimpleCart::BillingAddress Load (0.2ms)[0m [1mSELECT "simple_cart_addresses".* FROM "simple_cart_addresses" WHERE "simple_cart_addresses"."type" IN ('SimpleCart::BillingAddress') AND "simple_cart_addresses"."order_id" = ? LIMIT 1[0m [["order_id", 5]]
[1m[35mSimpleCart::ShippingAddress Load (0.1ms)[0m 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", 5]]
[1m[36mSimpleCart::Delivery Load (0.1ms)[0m [1mSELECT "simple_cart_deliveries".* FROM "simple_cart_deliveries" WHERE "simple_cart_deliveries"."id" = ? LIMIT 1[0m [["id", 9]]
[1m[35mSimpleCart::CreditCard Load (0.1ms)[0m SELECT "simple_cart_credit_cards".* FROM "simple_cart_credit_cards" WHERE "simple_cart_credit_cards"."order_id" = ? LIMIT 1 [["order_id", 5]]
[1m[36mSimpleCart::OrderItem Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "simple_cart_order_items" WHERE "simple_cart_order_items"."order_id" = ? LIMIT 1[0m [["order_id", "5"]]
[1m[35mSimpleCart::OrderItem Load (0.1ms)[0m SELECT "simple_cart_order_items".* FROM "simple_cart_order_items" WHERE "simple_cart_order_items"."order_id" = ? [["order_id", "5"]]
[1m[36mKk Load (0.1ms)[0m [1mSELECT "kks".* FROM "kks" WHERE "kks"."id" = ? LIMIT 1[0m [["id", 1]]
Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/orders/show.html.haml within layouts/simple_cart/application (17.5ms)
Completed 200 OK in 39ms (Views: 36.8ms | ActiveRecord: 0.9ms)
Started GET "/simple_cart/orders/" for 127.0.0.1 at 2016-03-15 00:00:48 +0200
Processing by SimpleCart::OrdersController#index as HTML
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "simple_cart_orders"
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "simple_cart_orders" WHERE "simple_cart_orders"."aasm_state" = ?[0m [["aasm_state", "in_progress"]]
[1m[35mSimpleCart::Order Load (0.1ms)[0m 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"]]
[1m[36mSimpleCart::OrderItem Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "simple_cart_order_items" WHERE "simple_cart_order_items"."order_id" = ? LIMIT 1[0m [["order_id", "4"]]
[1m[35mSimpleCart::OrderItem Exists (0.1ms)[0m SELECT 1 AS one FROM "simple_cart_order_items" WHERE "simple_cart_order_items"."order_id" = ? LIMIT 1 [["order_id", "3"]]
[1m[36mSimpleCart::OrderItem Load (0.1ms)[0m [1mSELECT "simple_cart_order_items".* FROM "simple_cart_order_items" WHERE "simple_cart_order_items"."order_id" = ?[0m [["order_id", "3"]]
[1m[35mThing Load (0.1ms)[0m SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "simple_cart_orders" WHERE "simple_cart_orders"."aasm_state" = ?[0m [["aasm_state", "in_queue"]]
[1m[35mSimpleCart::Order Load (0.1ms)[0m 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"]]
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "simple_cart_orders" WHERE "simple_cart_orders"."aasm_state" = ?[0m [["aasm_state", "delivered"]]
Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/orders/index.html.haml within layouts/simple_cart/application (22.7ms)
Completed 200 OK in 40ms (Views: 38.0ms | ActiveRecord: 1.1ms)
Started GET "/simple_cart/orders/3/checkout" for 127.0.0.1 at 2016-03-15 00:01:04 +0200
Processing by SimpleCart::CheckoutController#index as HTML
Parameters: {"order_id"=>"3"}
[1m[35mSimpleCart::Order Load (0.1ms)[0m SELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1 [["id", 3]]
Redirected to http://localhost:3000/simple_cart/orders/3/checkout/billing
Completed 302 Found in 2ms (ActiveRecord: 0.1ms)
Started GET "/simple_cart/orders/3/checkout/billing" for 127.0.0.1 at 2016-03-15 00:01:04 +0200
Processing by SimpleCart::CheckoutController#show as HTML
Parameters: {"order_id"=>"3", "id"=>"billing"}
[1m[36mSimpleCart::Order Load (0.1ms)[0m [1mSELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1[0m [["id", 3]]
[1m[35mSimpleCart::BillingAddress Load (0.1ms)[0m 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", 3]]
[1m[36mSimpleCart::ShippingAddress Load (0.1ms)[0m [1mSELECT "simple_cart_addresses".* FROM "simple_cart_addresses" WHERE "simple_cart_addresses"."type" IN ('SimpleCart::ShippingAddress') AND "simple_cart_addresses"."order_id" = ? LIMIT 1[0m [["order_id", 3]]
[1m[35mSimpleCart::CreditCard Load (0.0ms)[0m SELECT "simple_cart_credit_cards".* FROM "simple_cart_credit_cards" WHERE "simple_cart_credit_cards"."order_id" = ? LIMIT 1 [["order_id", 3]]
Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/_progress.html.haml (3.6ms)
Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/_address.html.haml (9.5ms)
[1m[36mCACHE (0.0ms)[0m [1mSELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1[0m [["id", "3"]]
[1m[35mCACHE (0.0ms)[0m SELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1 [["id", "3"]]
Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/_summary.html.haml (2.7ms)
Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/billing.html.haml within layouts/simple_cart/application (24.4ms)
Completed 200 OK in 45ms (Views: 41.1ms | ActiveRecord: 0.3ms)
Started GET "/simple_cart/cart?id=1" for 127.0.0.1 at 2016-03-15 00:23:41 +0200
Processing by SimpleCart::CartsController#show as HTML
Parameters: {"id"=>"1"}
Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/carts/show.html.haml within layouts/simple_cart/application (0.9ms)
Completed 200 OK in 24ms (Views: 23.1ms | ActiveRecord: 0.0ms)
Started GET "/kks" for 127.0.0.1 at 2016-03-15 00:23:47 +0200
Processing by KksController#index as HTML
[1m[36mKk Load (0.2ms)[0m [1mSELECT "kks".* FROM "kks"[0m
Rendered kks/index.html.erb within layouts/application (1.5ms)
Completed 200 OK in 20ms (Views: 19.6ms | ActiveRecord: 0.2ms)
Started GET "/kks/1" for 127.0.0.1 at 2016-03-15 00:23:49 +0200
Processing by KksController#show as HTML
Parameters: {"id"=>"1"}
[1m[35mKk Load (0.1ms)[0m 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 (6.4ms)
Rendered kks/show.html.erb within layouts/application (7.6ms)
Completed 200 OK in 29ms (Views: 27.6ms | ActiveRecord: 0.1ms)
Started POST "/simple_cart/cart/1" for 127.0.0.1 at 2016-03-15 00:23:50 +0200
Processing by SimpleCart::CartsController#add as HTML
Parameters: {"utf8"=>"✓", "authenticity_token"=>"CKEqw8jCF874fi9qg7UcUkofgwXcEKWxkkmgA9aJ3nDaf+ZBVsfT+wXurFn5NsotSY+LtGUnCqjXVEZYQNEkaA==", "qty"=>"1", "klass"=>"Kk", "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-15 00:23:50 +0200
Processing by SimpleCart::CartsController#show as HTML
[1m[36mKk Load (0.1ms)[0m [1mSELECT "kks".* FROM "kks" WHERE "kks"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mCACHE (0.0ms)[0m 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 (8.4ms)
Completed 200 OK in 28ms (Views: 27.5ms | ActiveRecord: 0.1ms)
Started POST "/simple_cart/cart/checkout" for 127.0.0.1 at 2016-03-15 00:23:51 +0200
Processing by SimpleCart::CartsController#checkout as HTML
Parameters: {"authenticity_token"=>"E29mFVH6wqWHSc4lzc1qn+gnfFmRetQWjdveM9GsZ0PBsaqXz/8GkHrZTRa3Trzg67d06ChNew/IxjhoR/SdWw=="}
[1m[36mKk Load (0.2ms)[0m [1mSELECT "kks".* FROM "kks" WHERE "kks"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mCACHE (0.0ms)[0m SELECT "kks".* FROM "kks" WHERE "kks"."id" = ? LIMIT 1 [["id", "1"]]
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "simple_cart_orders" ("total_price", "completed_date", "aasm_state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["total_price", 2.0], ["completed_date", "2016-03-15"], ["aasm_state", "in_progress"], ["created_at", "2016-03-14 22:23:51.605397"], ["updated_at", "2016-03-14 22:23:51.605397"]]
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "simple_cart_order_items" ("price", "qty", "itemable_id", "itemable_type", "order_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["price", 2.0], ["qty", 1], ["itemable_id", 1], ["itemable_type", "Kk"], ["order_id", "6"], ["created_at", "2016-03-14 22:23:51.607445"], ["updated_at", "2016-03-14 22:23:51.607445"]]
[1m[35m (211.5ms)[0m commit transaction
Redirected to http://localhost:3000/simple_cart/orders/6/checkout
Completed 302 Found in 220ms (ActiveRecord: 212.2ms)
Started GET "/simple_cart/orders/6/checkout" for 127.0.0.1 at 2016-03-15 00:23:51 +0200
Processing by SimpleCart::CheckoutController#index as HTML
Parameters: {"order_id"=>"6"}
[1m[36mSimpleCart::Order Load (0.1ms)[0m [1mSELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1[0m [["id", 6]]
Redirected to http://localhost:3000/simple_cart/orders/6/checkout/billing
Completed 302 Found in 2ms (ActiveRecord: 0.1ms)
Started GET "/simple_cart/orders/6/checkout/billing" for 127.0.0.1 at 2016-03-15 00:23:51 +0200
Processing by SimpleCart::CheckoutController#show as HTML
Parameters: {"order_id"=>"6", "id"=>"billing"}
[1m[35mSimpleCart::Order Load (0.1ms)[0m SELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1 [["id", 6]]
[1m[36mSimpleCart::BillingAddress Load (0.1ms)[0m [1mSELECT "simple_cart_addresses".* FROM "simple_cart_addresses" WHERE "simple_cart_addresses"."type" IN ('SimpleCart::BillingAddress') AND "simple_cart_addresses"."order_id" = ? LIMIT 1[0m [["order_id", 6]]
[1m[35mSimpleCart::ShippingAddress Load (0.1ms)[0m 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", 6]]
[1m[36mSimpleCart::CreditCard Load (0.1ms)[0m [1mSELECT "simple_cart_credit_cards".* FROM "simple_cart_credit_cards" WHERE "simple_cart_credit_cards"."order_id" = ? LIMIT 1[0m [["order_id", 6]]
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 (8.1ms)
[1m[35mCACHE (0.0ms)[0m SELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1 [["id", "6"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1[0m [["id", "6"]]
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 (16.2ms)
Completed 200 OK in 42ms (Views: 35.7ms | ActiveRecord: 0.4ms)
Started GET "/simple_cart/orders/6/checkout/confirm" for 127.0.0.1 at 2016-03-15 00:23:59 +0200
Processing by SimpleCart::CheckoutController#show as HTML
Parameters: {"order_id"=>"6", "id"=>"confirm"}
[1m[35mSimpleCart::Order Load (0.2ms)[0m SELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1 [["id", 6]]
[1m[36mSimpleCart::CreditCard Load (0.1ms)[0m [1mSELECT "simple_cart_credit_cards".* FROM "simple_cart_credit_cards" WHERE "simple_cart_credit_cards"."order_id" = ? LIMIT 1[0m [["order_id", 6]]
[1m[35mSimpleCart::BillingAddress Load (0.0ms)[0m 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", 6]]
[1m[36mSimpleCart::ShippingAddress Load (0.1ms)[0m [1mSELECT "simple_cart_addresses".* FROM "simple_cart_addresses" WHERE "simple_cart_addresses"."type" IN ('SimpleCart::ShippingAddress') AND "simple_cart_addresses"."order_id" = ? LIMIT 1[0m [["order_id", 6]]
Redirected to http://localhost:3000/simple_cart/orders/6/checkout/payment
Completed 302 Found in 5ms (ActiveRecord: 0.3ms)
Started GET "/simple_cart/orders/6/checkout/payment" for 127.0.0.1 at 2016-03-15 00:23:59 +0200
Processing by SimpleCart::CheckoutController#show as HTML
Parameters: {"order_id"=>"6", "id"=>"payment"}
[1m[35mSimpleCart::Order Load (0.1ms)[0m SELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1 [["id", 6]]
[1m[36mSimpleCart::BillingAddress Load (0.1ms)[0m [1mSELECT "simple_cart_addresses".* FROM "simple_cart_addresses" WHERE "simple_cart_addresses"."type" IN ('SimpleCart::BillingAddress') AND "simple_cart_addresses"."order_id" = ? LIMIT 1[0m [["order_id", 6]]
[1m[35mSimpleCart::ShippingAddress Load (0.1ms)[0m 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", 6]]
[1m[36mSimpleCart::CreditCard Load (0.1ms)[0m [1mSELECT "simple_cart_credit_cards".* FROM "simple_cart_credit_cards" WHERE "simple_cart_credit_cards"."order_id" = ? LIMIT 1[0m [["order_id", 6]]
Redirected to http://localhost:3000/simple_cart/orders/6/checkout/delivery
Completed 302 Found in 5ms (ActiveRecord: 0.3ms)
Started GET "/simple_cart/orders/6/checkout/delivery" for 127.0.0.1 at 2016-03-15 00:23:59 +0200
Processing by SimpleCart::CheckoutController#show as HTML
Parameters: {"order_id"=>"6", "id"=>"delivery"}
[1m[35mSimpleCart::Order Load (0.1ms)[0m SELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1 [["id", 6]]
[1m[36mSimpleCart::ShippingAddress Load (0.0ms)[0m [1mSELECT "simple_cart_addresses".* FROM "simple_cart_addresses" WHERE "simple_cart_addresses"."type" IN ('SimpleCart::ShippingAddress') AND "simple_cart_addresses"."order_id" = ? LIMIT 1[0m [["order_id", 6]]
[1m[35mSimpleCart::BillingAddress Load (0.0ms)[0m 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", 6]]
[1m[36mSimpleCart::CreditCard Load (0.1ms)[0m [1mSELECT "simple_cart_credit_cards".* FROM "simple_cart_credit_cards" WHERE "simple_cart_credit_cards"."order_id" = ? LIMIT 1[0m [["order_id", 6]]
Redirected to http://localhost:3000/simple_cart/orders/6/checkout/billing
Completed 302 Found in 6ms (ActiveRecord: 0.3ms)
Started GET "/simple_cart/orders/6/checkout/billing" for 127.0.0.1 at 2016-03-15 00:23:59 +0200
Processing by SimpleCart::CheckoutController#show as HTML
Parameters: {"order_id"=>"6", "id"=>"billing"}
[1m[35mSimpleCart::Order Load (0.1ms)[0m SELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1 [["id", 6]]
[1m[36mSimpleCart::BillingAddress Load (0.1ms)[0m [1mSELECT "simple_cart_addresses".* FROM "simple_cart_addresses" WHERE "simple_cart_addresses"."type" IN ('SimpleCart::BillingAddress') AND "simple_cart_addresses"."order_id" = ? LIMIT 1[0m [["order_id", 6]]
[1m[35mSimpleCart::ShippingAddress Load (0.1ms)[0m 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", 6]]
[1m[36mSimpleCart::CreditCard Load (0.1ms)[0m [1mSELECT "simple_cart_credit_cards".* FROM "simple_cart_credit_cards" WHERE "simple_cart_credit_cards"."order_id" = ? LIMIT 1[0m [["order_id", 6]]
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 (10.5ms)
[1m[35mCACHE (0.0ms)[0m SELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1 [["id", "6"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1[0m [["id", "6"]]
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 (17.3ms)
Completed 200 OK in 51ms (Views: 45.3ms | ActiveRecord: 0.4ms)
Started GET "/simple_cart/orders/6/checkout/delivery" for 127.0.0.1 at 2016-03-15 00:24:03 +0200
Processing by SimpleCart::CheckoutController#show as HTML
Parameters: {"order_id"=>"6", "id"=>"delivery"}
[1m[35mSimpleCart::Order Load (0.1ms)[0m SELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1 [["id", 6]]
[1m[36mSimpleCart::ShippingAddress Load (0.1ms)[0m [1mSELECT "simple_cart_addresses".* FROM "simple_cart_addresses" WHERE "simple_cart_addresses"."type" IN ('SimpleCart::ShippingAddress') AND "simple_cart_addresses"."order_id" = ? LIMIT 1[0m [["order_id", 6]]
[1m[35mSimpleCart::BillingAddress Load (0.1ms)[0m 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", 6]]
[1m[36mSimpleCart::CreditCard Load (0.2ms)[0m [1mSELECT "simple_cart_credit_cards".* FROM "simple_cart_credit_cards" WHERE "simple_cart_credit_cards"."order_id" = ? LIMIT 1[0m [["order_id", 6]]
Redirected to http://localhost:3000/simple_cart/orders/6/checkout/billing
Completed 302 Found in 5ms (ActiveRecord: 0.4ms)
Started GET "/simple_cart/orders/6/checkout/billing" for 127.0.0.1 at 2016-03-15 00:24:03 +0200
Processing by SimpleCart::CheckoutController#show as HTML
Parameters: {"order_id"=>"6", "id"=>"billing"}
[1m[35mSimpleCart::Order Load (0.1ms)[0m SELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1 [["id", 6]]
[1m[36mSimpleCart::BillingAddress Load (0.1ms)[0m [1mSELECT "simple_cart_addresses".* FROM "simple_cart_addresses" WHERE "simple_cart_addresses"."type" IN ('SimpleCart::BillingAddress') AND "simple_cart_addresses"."order_id" = ? LIMIT 1[0m [["order_id", 6]]
[1m[35mSimpleCart::ShippingAddress Load (0.1ms)[0m 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", 6]]
[1m[36mSimpleCart::CreditCard Load (0.0ms)[0m [1mSELECT "simple_cart_credit_cards".* FROM "simple_cart_credit_cards" WHERE "simple_cart_credit_cards"."order_id" = ? LIMIT 1[0m [["order_id", 6]]
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.8ms)
[1m[35mCACHE (0.0ms)[0m SELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1 [["id", "6"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1[0m [["id", "6"]]
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/billing.html.haml within layouts/simple_cart/application (13.1ms)
Completed 200 OK in 34ms (Views: 29.9ms | ActiveRecord: 0.3ms)
Started GET "/simple_cart/orders/6/checkout/confirm" for 127.0.0.1 at 2016-03-15 00:24:03 +0200
Processing by SimpleCart::CheckoutController#show as HTML
Parameters: {"order_id"=>"6", "id"=>"confirm"}
[1m[35mSimpleCart::Order Load (0.1ms)[0m SELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1 [["id", 6]]
[1m[36mSimpleCart::CreditCard Load (0.1ms)[0m [1mSELECT "simple_cart_credit_cards".* FROM "simple_cart_credit_cards" WHERE "simple_cart_credit_cards"."order_id" = ? LIMIT 1[0m [["order_id", 6]]
[1m[35mSimpleCart::BillingAddress Load (0.0ms)[0m 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", 6]]
[1m[36mSimpleCart::ShippingAddress Load (0.0ms)[0m [1mSELECT "simple_cart_addresses".* FROM "simple_cart_addresses" WHERE "simple_cart_addresses"."type" IN ('SimpleCart::ShippingAddress') AND "simple_cart_addresses"."order_id" = ? LIMIT 1[0m [["order_id", 6]]
Redirected to http://localhost:3000/simple_cart/orders/6/checkout/payment
Completed 302 Found in 5ms (ActiveRecord: 0.3ms)
Started GET "/simple_cart/orders/6/checkout/payment" for 127.0.0.1 at 2016-03-15 00:24:03 +0200
Processing by SimpleCart::CheckoutController#show as HTML
Parameters: {"order_id"=>"6", "id"=>"payment"}
[1m[35mSimpleCart::Order Load (0.1ms)[0m SELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1 [["id", 6]]
[1m[36mSimpleCart::BillingAddress Load (0.1ms)[0m [1mSELECT "simple_cart_addresses".* FROM "simple_cart_addresses" WHERE "simple_cart_addresses"."type" IN ('SimpleCart::BillingAddress') AND "simple_cart_addresses"."order_id" = ? LIMIT 1[0m [["order_id", 6]]
[1m[35mSimpleCart::ShippingAddress Load (0.1ms)[0m 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", 6]]
[1m[36mSimpleCart::CreditCard Load (0.0ms)[0m [1mSELECT "simple_cart_credit_cards".* FROM "simple_cart_credit_cards" WHERE "simple_cart_credit_cards"."order_id" = ? LIMIT 1[0m [["order_id", 6]]
Redirected to http://localhost:3000/simple_cart/orders/6/checkout/delivery
Completed 302 Found in 5ms (ActiveRecord: 0.2ms)
Started GET "/simple_cart/orders/6/checkout/delivery" for 127.0.0.1 at 2016-03-15 00:24:03 +0200
Processing by SimpleCart::CheckoutController#show as HTML
Parameters: {"order_id"=>"6", "id"=>"delivery"}
[1m[35mSimpleCart::Order Load (0.1ms)[0m SELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1 [["id", 6]]
[1m[36mSimpleCart::ShippingAddress Load (0.0ms)[0m [1mSELECT "simple_cart_addresses".* FROM "simple_cart_addresses" WHERE "simple_cart_addresses"."type" IN ('SimpleCart::ShippingAddress') AND "simple_cart_addresses"."order_id" = ? LIMIT 1[0m [["order_id", 6]]
[1m[35mSimpleCart::BillingAddress Load (0.0ms)[0m 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", 6]]
[1m[36mSimpleCart::CreditCard Load (0.1ms)[0m [1mSELECT "simple_cart_credit_cards".* FROM "simple_cart_credit_cards" WHERE "simple_cart_credit_cards"."order_id" = ? LIMIT 1[0m [["order_id", 6]]
Redirected to http://localhost:3000/simple_cart/orders/6/checkout/billing
Completed 302 Found in 4ms (ActiveRecord: 0.2ms)
Started GET "/simple_cart/orders/6/checkout/billing" for 127.0.0.1 at 2016-03-15 00:24:03 +0200
Processing by SimpleCart::CheckoutController#show as HTML
Parameters: {"order_id"=>"6", "id"=>"billing"}
[1m[35mSimpleCart::Order Load (0.1ms)[0m SELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1 [["id", 6]]
[1m[36mSimpleCart::BillingAddress Load (0.0ms)[0m [1mSELECT "simple_cart_addresses".* FROM "simple_cart_addresses" WHERE "simple_cart_addresses"."type" IN ('SimpleCart::BillingAddress') AND "simple_cart_addresses"."order_id" = ? LIMIT 1[0m [["order_id", 6]]
[1m[35mSimpleCart::ShippingAddress Load (0.0ms)[0m 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", 6]]
[1m[36mSimpleCart::CreditCard Load (0.0ms)[0m [1mSELECT "simple_cart_credit_cards".* FROM "simple_cart_credit_cards" WHERE "simple_cart_credit_cards"."order_id" = ? LIMIT 1[0m [["order_id", 6]]
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.8ms)
[1m[35mCACHE (0.0ms)[0m SELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1 [["id", "6"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1[0m [["id", "6"]]
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 (14.5ms)
Completed 200 OK in 34ms (Views: 30.6ms | ActiveRecord: 0.2ms)
Started GET "/simple_cart/orders/6/checkout/payment" for 127.0.0.1 at 2016-03-15 00:24:04 +0200
Processing by SimpleCart::CheckoutController#show as HTML
Parameters: {"order_id"=>"6", "id"=>"payment"}
[1m[35mSimpleCart::Order Load (0.1ms)[0m SELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1 [["id", 6]]
[1m[36mSimpleCart::BillingAddress Load (0.1ms)[0m [1mSELECT "simple_cart_addresses".* FROM "simple_cart_addresses" WHERE "simple_cart_addresses"."type" IN ('SimpleCart::BillingAddress') AND "simple_cart_addresses"."order_id" = ? LIMIT 1[0m [["order_id", 6]]
[1m[35mSimpleCart::ShippingAddress Load (0.1ms)[0m 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", 6]]
[1m[36mSimpleCart::CreditCard Load (0.0ms)[0m [1mSELECT "simple_cart_credit_cards".* FROM "simple_cart_credit_cards" WHERE "simple_cart_credit_cards"."order_id" = ? LIMIT 1[0m [["order_id", 6]]
Redirected to http://localhost:3000/simple_cart/orders/6/checkout/delivery
Completed 302 Found in 5ms (ActiveRecord: 0.3ms)
Started GET "/simple_cart/orders/6/checkout/delivery" for 127.0.0.1 at 2016-03-15 00:24:04 +0200
Processing by SimpleCart::CheckoutController#show as HTML
Parameters: {"order_id"=>"6", "id"=>"delivery"}
[1m[35mSimpleCart::Order Load (0.1ms)[0m SELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1 [["id", 6]]
[1m[36mSimpleCart::ShippingAddress Load (0.0ms)[0m [1mSELECT "simple_cart_addresses".* FROM "simple_cart_addresses" WHERE "simple_cart_addresses"."type" IN ('SimpleCart::ShippingAddress') AND "simple_cart_addresses"."order_id" = ? LIMIT 1[0m [["order_id", 6]]
[1m[35mSimpleCart::BillingAddress Load (0.0ms)[0m 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", 6]]
[1m[36mSimpleCart::CreditCard Load (0.0ms)[0m [1mSELECT "simple_cart_credit_cards".* FROM "simple_cart_credit_cards" WHERE "simple_cart_credit_cards"."order_id" = ? LIMIT 1[0m [["order_id", 6]]
Redirected to http://localhost:3000/simple_cart/orders/6/checkout/billing
Completed 302 Found in 4ms (ActiveRecord: 0.2ms)
Started GET "/simple_cart/orders/6/checkout/billing" for 127.0.0.1 at 2016-03-15 00:24:04 +0200
Processing by SimpleCart::CheckoutController#show as HTML
Parameters: {"order_id"=>"6", "id"=>"billing"}
[1m[35mSimpleCart::Order Load (0.1ms)[0m SELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1 [["id", 6]]
[1m[36mSimpleCart::BillingAddress Load (0.1ms)[0m [1mSELECT "simple_cart_addresses".* FROM "simple_cart_addresses" WHERE "simple_cart_addresses"."type" IN ('SimpleCart::BillingAddress') AND "simple_cart_addresses"."order_id" = ? LIMIT 1[0m [["order_id", 6]]
[1m[35mSimpleCart::ShippingAddress Load (0.1ms)[0m 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", 6]]
[1m[36mSimpleCart::CreditCard Load (0.1ms)[0m [1mSELECT "simple_cart_credit_cards".* FROM "simple_cart_credit_cards" WHERE "simple_cart_credit_cards"."order_id" = ? LIMIT 1[0m [["order_id", 6]]
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 (8.4ms)
[1m[35mCACHE (0.0ms)[0m SELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1 [["id", "6"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1[0m [["id", "6"]]
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 (15.1ms)
Completed 200 OK in 36ms (Views: 31.8ms | ActiveRecord: 0.3ms)
Started GET "/simple_cart/orders/6/checkout/billing" for 127.0.0.1 at 2016-03-15 00:24:04 +0200
Processing by SimpleCart::CheckoutController#show as HTML
Parameters: {"order_id"=>"6", "id"=>"billing"}
[1m[35mSimpleCart::Order Load (0.1ms)[0m SELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1 [["id", 6]]
[1m[36mSimpleCart::BillingAddress Load (0.1ms)[0m [1mSELECT "simple_cart_addresses".* FROM "simple_cart_addresses" WHERE "simple_cart_addresses"."type" IN ('SimpleCart::BillingAddress') AND "simple_cart_addresses"."order_id" = ? LIMIT 1[0m [["order_id", 6]]
[1m[35mSimpleCart::ShippingAddress Load (0.1ms)[0m 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", 6]]
[1m[36mSimpleCart::CreditCard Load (0.1ms)[0m [1mSELECT "simple_cart_credit_cards".* FROM "simple_cart_credit_cards" WHERE "simple_cart_credit_cards"."order_id" = ? LIMIT 1[0m [["order_id", 6]]
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.5ms)
[1m[35mCACHE (0.0ms)[0m SELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1 [["id", "6"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1[0m [["id", "6"]]
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/billing.html.haml within layouts/simple_cart/application (15.0ms)
Completed 200 OK in 48ms (Views: 43.0ms | ActiveRecord: 0.3ms)
Started PATCH "/simple_cart/orders/6/checkout/billing" for 127.0.0.1 at 2016-03-15 00:24:11 +0200
Processing by SimpleCart::CheckoutController#update as HTML
Parameters: {"utf8"=>"✓", "authenticity_token"=>"RxAzLg7LCa/7N9jV1KsYG7GlhKiJEk1YQwsYrCMPTcGVzv+skM7NmganW+auKM5ksjWMGTAl4kEGFv73tVe32Q==", "order"=>{"billing_address_attributes"=>{"firstname"=>"654", "lastname"=>"654", "address"=>"654", "zipcode"=>"654", "city"=>"654", "phone"=>"654", "country"=>"Afghanistan"}}, "shipping"=>{"use_billing_address"=>"true"}, "commit"=>"Save and continue", "order_id"=>"6", "id"=>"billing"}
[1m[35mSimpleCart::Order Load (0.1ms)[0m SELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1 [["id", 6]]
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
[1m[35mSimpleCart::BillingAddress Load (0.1ms)[0m 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", 6]]
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "simple_cart_addresses" ("type", "firstname", "lastname", "address", "zipcode", "city", "phone", "country", "order_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["type", "SimpleCart::BillingAddress"], ["firstname", "654"], ["lastname", "654"], ["address", "654"], ["zipcode", "654"], ["city", "654"], ["phone", "654"], ["country", "Afghanistan"], ["order_id", 6], ["created_at", "2016-03-14 22:24:11.460815"], ["updated_at", "2016-03-14 22:24:11.460815"]]
[1m[35m (88.6ms)[0m commit transaction
[1m[36mSimpleCart::ShippingAddress Load (0.1ms)[0m [1mSELECT "simple_cart_addresses".* FROM "simple_cart_addresses" WHERE "simple_cart_addresses"."type" IN ('SimpleCart::ShippingAddress') AND "simple_cart_addresses"."order_id" = ? LIMIT 1[0m [["order_id", 6]]
[1m[35m (0.1ms)[0m begin transaction
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "simple_cart_addresses" ("type", "order_id", "address", "zipcode", "city", "phone", "country", "created_at", "updated_at", "firstname", "lastname") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["type", "SimpleCart::ShippingAddress"], ["order_id", 6], ["address", "654"], ["zipcode", "654"], ["city", "654"], ["phone", "654"], ["country", "Afghanistan"], ["created_at", "2016-03-14 22:24:11.460815"], ["updated_at", "2016-03-14 22:24:11.460815"], ["firstname", "654"], ["lastname", "654"]]
[1m[35m (187.0ms)[0m commit transaction
Redirected to http://localhost:3000/simple_cart/orders/6/checkout/delivery
Completed 302 Found in 294ms (ActiveRecord: 276.9ms)
Started GET "/simple_cart/orders/6/checkout/delivery" for 127.0.0.1 at 2016-03-15 00:24:11 +0200
Processing by SimpleCart::CheckoutController#show as HTML
Parameters: {"order_id"=>"6", "id"=>"delivery"}
[1m[36mSimpleCart::Order Load (0.1ms)[0m [1mSELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1[0m [["id", 6]]
[1m[35mSimpleCart::ShippingAddress Load (0.2ms)[0m 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", 6]]
[1m[36mSimpleCart::BillingAddress Load (0.2ms)[0m [1mSELECT "simple_cart_addresses".* FROM "simple_cart_addresses" WHERE "simple_cart_addresses"."type" IN ('SimpleCart::BillingAddress') AND "simple_cart_addresses"."order_id" = ? LIMIT 1[0m [["order_id", 6]]
[1m[35mSimpleCart::CreditCard Load (0.1ms)[0m SELECT "simple_cart_credit_cards".* FROM "simple_cart_credit_cards" WHERE "simple_cart_credit_cards"."order_id" = ? LIMIT 1 [["order_id", 6]]
Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/_progress.html.haml (1.0ms)
[1m[36mSimpleCart::Delivery Load (0.2ms)[0m [1mSELECT "simple_cart_deliveries".* FROM "simple_cart_deliveries"[0m
[1m[35mSimpleCart::Delivery Load (0.1ms)[0m SELECT "simple_cart_deliveries".* FROM "simple_cart_deliveries" ORDER BY "simple_cart_deliveries"."id" ASC LIMIT 1
[1m[36mCACHE (0.0ms)[0m [1mSELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1[0m [["id", "6"]]
[1m[35mCACHE (0.0ms)[0m SELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1 [["id", "6"]]
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.9ms)
Completed 200 OK in 30ms (Views: 24.8ms | ActiveRecord: 0.9ms)
Started PATCH "/simple_cart/orders/6/checkout/delivery" for 127.0.0.1 at 2016-03-15 00:24:13 +0200
Processing by SimpleCart::CheckoutController#update as HTML
Parameters: {"utf8"=>"✓", "authenticity_token"=>"Gy+bjWKJlY32R/LiknHv9QuV2vRwL4EjmsWuKywDk9LJ8VcP/IxRuAvXcdHo8jmKCAXSRckYLjrf2Ehwultpyg==", "order"=>{"delivery_id"=>"9"}, "commit"=>"Continue", "order_id"=>"6", "id"=>"delivery"}
[1m[36mSimpleCart::Order Load (0.1ms)[0m [1mSELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1[0m [["id", 6]]
[1m[35mSimpleCart::Delivery Load (0.1ms)[0m SELECT "simple_cart_deliveries".* FROM "simple_cart_deliveries" WHERE "simple_cart_deliveries"."id" = ? LIMIT 1 [["id", 9]]
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
[1m[35mSQL (0.1ms)[0m UPDATE "simple_cart_orders" SET "delivery_id" = ?, "updated_at" = ? WHERE "simple_cart_orders"."id" = ? [["delivery_id", 9], ["updated_at", "2016-03-14 22:24:13.203625"], ["id", 6]]
[1m[36m (85.7ms)[0m [1mcommit transaction[0m
Redirected to http://localhost:3000/simple_cart/orders/6/checkout/payment
Completed 302 Found in 90ms (ActiveRecord: 86.1ms)
Started GET "/simple_cart/orders/6/checkout/payment" for 127.0.0.1 at 2016-03-15 00:24:13 +0200
Processing by SimpleCart::CheckoutController#show as HTML
Parameters: {"order_id"=>"6", "id"=>"payment"}
[1m[35mSimpleCart::Order Load (0.1ms)[0m SELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1 [["id", 6]]
[1m[36mSimpleCart::Delivery Load (0.0ms)[0m [1mSELECT "simple_cart_deliveries".* FROM "simple_cart_deliveries" WHERE "simple_cart_deliveries"."id" = ? LIMIT 1[0m [["id", 9]]
[1m[35mSimpleCart::BillingAddress Load (0.2ms)[0m 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", 6]]
[1m[36mSimpleCart::ShippingAddress Load (0.2ms)[0m [1mSELECT "simple_cart_addresses".* FROM "simple_cart_addresses" WHERE "simple_cart_addresses"."type" IN ('SimpleCart::ShippingAddress') AND "simple_cart_addresses"."order_id" = ? LIMIT 1[0m [["order_id", 6]]
[1m[35mSimpleCart::CreditCard Load (0.1ms)[0m SELECT "simple_cart_credit_cards".* FROM "simple_cart_credit_cards" WHERE "simple_cart_credit_cards"."order_id" = ? LIMIT 1 [["order_id", 6]]
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/payment.html.haml within layouts/simple_cart/application (8.4ms)
Completed 200 OK in 35ms (Views: 29.1ms | ActiveRecord: 0.6ms)
Started PATCH "/simple_cart/orders/6/checkout/payment" for 127.0.0.1 at 2016-03-15 00:24:26 +0200
Processing by SimpleCart::CheckoutController#update as HTML
Parameters: {"utf8"=>"✓", "authenticity_token"=>"diiVFG4vQ0eLE9Gp7KxmUCZVY3PgBk0TLi/lGXyM9Qyk9lmW8CqHcnaDUpqWL7AvJcVrwlkx4gprMgNC6tQPFA==", "order"=>{"credit_card_attributes"=>{"number"=>"1111111111111111", "expiration_month"=>"01", "expiration_year"=>"2017", "cvv"=>"25", "firstname"=>"251", "lastname"=>"125"}}, "commit"=>"Continue", "order_id"=>"6", "id"=>"payment"}
[1m[36mSimpleCart::Order Load (0.1ms)[0m [1mSELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1[0m [["id", 6]]
[1m[35m (0.2ms)[0m begin transaction
[1m[36mSimpleCart::CreditCard Load (0.1ms)[0m [1mSELECT "simple_cart_credit_cards".* FROM "simple_cart_credit_cards" WHERE "simple_cart_credit_cards"."order_id" = ? LIMIT 1[0m [["order_id", 6]]
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
[1m[35m (0.1ms)[0m rollback transaction
Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/_progress.html.haml (1.3ms)
[1m[36mSimpleCart::ShippingAddress Load (0.2ms)[0m [1mSELECT "simple_cart_addresses".* FROM "simple_cart_addresses" WHERE "simple_cart_addresses"."type" IN ('SimpleCart::ShippingAddress') AND "simple_cart_addresses"."order_id" = ? LIMIT 1[0m [["order_id", 6]]
Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/payment.html.haml within layouts/simple_cart/application (11.4ms)
Completed 200 OK in 58ms (Views: 47.3ms | ActiveRecord: 0.9ms)
Started PATCH "/simple_cart/orders/6/checkout/payment" for 127.0.0.1 at 2016-03-15 00:24:29 +0200
Processing by SimpleCart::CheckoutController#update as HTML
Parameters: {"utf8"=>"✓", "authenticity_token"=>"GDtFjDEMzLTL28l3BDbq1rbmFuQQI3RuK3a+Aa7YeGLK5YkOrwkIgTZLSkR+tTyptXYeVakU23dua1haOICCeg==", "order"=>{"credit_card_attributes"=>{"number"=>"1111111111111111", "expiration_month"=>"01", "expiration_year"=>"2017", "cvv"=>"256", "firstname"=>"251", "lastname"=>"125"}}, "commit"=>"Continue", "order_id"=>"6", "id"=>"payment"}
[1m[35mSimpleCart::Order Load (0.1ms)[0m SELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1 [["id", 6]]
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
[1m[35mSimpleCart::CreditCard Load (0.1ms)[0m SELECT "simple_cart_credit_cards".* FROM "simple_cart_credit_cards" WHERE "simple_cart_credit_cards"."order_id" = ? LIMIT 1 [["order_id", 6]]
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "simple_cart_credit_cards" ("number", "expiration_month", "expiration_year", "cvv", "firstname", "lastname", "order_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["number", "1111111111111111"], ["expiration_month", "01"], ["expiration_year", "2017"], ["cvv", "256"], ["firstname", "251"], ["lastname", "125"], ["order_id", 6], ["created_at", "2016-03-14 22:24:29.684646"], ["updated_at", "2016-03-14 22:24:29.684646"]]
[1m[35m (210.2ms)[0m commit transaction
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
[1m[35m (0.0ms)[0m commit transaction
Redirected to http://localhost:3000/simple_cart/orders/6/checkout/confirm
Completed 302 Found in 218ms (ActiveRecord: 210.7ms)
Started GET "/simple_cart/orders/6/checkout/confirm" for 127.0.0.1 at 2016-03-15 00:24:29 +0200
Processing by SimpleCart::CheckoutController#show as HTML
Parameters: {"order_id"=>"6", "id"=>"confirm"}
[1m[36mSimpleCart::Order Load (0.1ms)[0m [1mSELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1[0m [["id", 6]]
[1m[35mSimpleCart::CreditCard Load (0.5ms)[0m SELECT "simple_cart_credit_cards".* FROM "simple_cart_credit_cards" WHERE "simple_cart_credit_cards"."order_id" = ? LIMIT 1 [["order_id", 6]]
[1m[36mSimpleCart::BillingAddress Load (0.1ms)[0m [1mSELECT "simple_cart_addresses".* FROM "simple_cart_addresses" WHERE "simple_cart_addresses"."type" IN ('SimpleCart::BillingAddress') AND "simple_cart_addresses"."order_id" = ? LIMIT 1[0m [["order_id", 6]]
[1m[35mSimpleCart::ShippingAddress Load (0.1ms)[0m 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", 6]]
Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/_progress.html.haml (1.3ms)
[1m[36mSimpleCart::Delivery Load (0.1ms)[0m [1mSELECT "simple_cart_deliveries".* FROM "simple_cart_deliveries" WHERE "simple_cart_deliveries"."id" = ? LIMIT 1[0m [["id", 9]]
Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/_overview.html.haml (3.0ms)
[1m[35mSimpleCart::OrderItem Exists (0.1ms)[0m SELECT 1 AS one FROM "simple_cart_order_items" WHERE "simple_cart_order_items"."order_id" = ? LIMIT 1 [["order_id", "6"]]
[1m[36mSimpleCart::OrderItem Load (0.1ms)[0m [1mSELECT "simple_cart_order_items".* FROM "simple_cart_order_items" WHERE "simple_cart_order_items"."order_id" = ?[0m [["order_id", "6"]]
[1m[35mKk Load (0.1ms)[0m 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 (13.2ms)
Completed 200 OK in 44ms (Views: 38.8ms | ActiveRecord: 1.2ms)
Started PATCH "/simple_cart/orders/6" for 127.0.0.1 at 2016-03-15 00:24:33 +0200
Processing by SimpleCart::OrdersController#update as HTML
Parameters: {"authenticity_token"=>"oFTAjiPyw0MZVSODiC4SakT84TsKoJnOQcKP+MTpThpyigwMvfcHduTFoLDyrcQVR2zpirOXNtcE32mjUrG0Ag==", "id"=>"6"}
[1m[36mSimpleCart::Order Load (0.1ms)[0m [1mSELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1[0m [["id", 6]]
[1m[35m (0.1ms)[0m begin transaction
[1m[36mSQL (0.2ms)[0m [1mUPDATE "simple_cart_orders" SET "aasm_state" = ?, "updated_at" = ? WHERE "simple_cart_orders"."id" = ?[0m [["aasm_state", "in_queue"], ["updated_at", "2016-03-14 22:24:33.131567"], ["id", 6]]
[1m[35m (54.9ms)[0m commit transaction
[1m[36mSimpleCart::Delivery Load (0.8ms)[0m [1mSELECT "simple_cart_deliveries".* FROM "simple_cart_deliveries" WHERE "simple_cart_deliveries"."id" = ? LIMIT 1[0m [["id", 9]]
[1m[35m (0.1ms)[0m begin transaction
[1m[36mSQL (0.2ms)[0m [1mUPDATE "simple_cart_orders" SET "total_price" = ?, "updated_at" = ? WHERE "simple_cart_orders"."id" = ?[0m [["total_price", 22.0], ["updated_at", "2016-03-14 22:24:33.190332"], ["id", 6]]
[1m[35m (108.2ms)[0m commit transaction
Redirected to http://localhost:3000/simple_cart/orders/6
Completed 302 Found in 172ms (ActiveRecord: 164.5ms)
Started GET "/simple_cart/orders/6" for 127.0.0.1 at 2016-03-15 00:24:33 +0200
Processing by SimpleCart::OrdersController#show as HTML
Parameters: {"id"=>"6"}
[1m[36mSimpleCart::Order Load (0.1ms)[0m [1mSELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1[0m [["id", 6]]
[1m[35mSimpleCart::BillingAddress Load (0.1ms)[0m 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", 6]]
[1m[36mSimpleCart::ShippingAddress Load (0.1ms)[0m [1mSELECT "simple_cart_addresses".* FROM "simple_cart_addresses" WHERE "simple_cart_addresses"."type" IN ('SimpleCart::ShippingAddress') AND "simple_cart_addresses"."order_id" = ? LIMIT 1[0m [["order_id", 6]]
[1m[35mSimpleCart::Delivery Load (0.1ms)[0m SELECT "simple_cart_deliveries".* FROM "simple_cart_deliveries" WHERE "simple_cart_deliveries"."id" = ? LIMIT 1 [["id", 9]]
[1m[36mSimpleCart::CreditCard Load (0.6ms)[0m [1mSELECT "simple_cart_credit_cards".* FROM "simple_cart_credit_cards" WHERE "simple_cart_credit_cards"."order_id" = ? LIMIT 1[0m [["order_id", 6]]
[1m[35mSimpleCart::OrderItem Exists (0.1ms)[0m SELECT 1 AS one FROM "simple_cart_order_items" WHERE "simple_cart_order_items"."order_id" = ? LIMIT 1 [["order_id", "6"]]
[1m[36mSimpleCart::OrderItem Load (0.1ms)[0m [1mSELECT "simple_cart_order_items".* FROM "simple_cart_order_items" WHERE "simple_cart_order_items"."order_id" = ?[0m [["order_id", "6"]]
[1m[35mKk Load (0.1ms)[0m 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 (11.0ms)
Completed 200 OK in 38ms (Views: 35.2ms | ActiveRecord: 1.2ms)
Started GET "/simple_cart/o" for 127.0.0.1 at 2016-03-15 00:24:36 +0200
ActionController::RoutingError (No route matches [GET] "/simple_cart/o"):
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.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/_trace.html.erb (1.5ms)
Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/routes/_route.html.erb (1.9ms)
Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/routes/_route.html.erb (0.8ms)
Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/routes/_table.html.erb (1.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 (1.3ms)
Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/rescues/routing_error.html.erb within rescues/layout (34.8ms)
Started GET "/simple_cart/" for 127.0.0.1 at 2016-03-15 00:24:38 +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 21ms (Views: 20.1ms | ActiveRecord: 0.0ms)
Started GET "/" for 127.0.0.1 at 2016-03-15 12:01:33 +0200
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
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 (1.3ms)
Completed 200 OK in 52ms (Views: 40.8ms | ActiveRecord: 0.0ms)
Started GET "/shits" for 127.0.0.1 at 2016-03-15 12:01:34 +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.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/_trace.html.erb (1.4ms)
Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/routes/_route.html.erb (2.3ms)
Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/routes/_route.html.erb (0.7ms)
Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/routes/_table.html.erb (36.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.2ms)
Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/rescues/routing_error.html.erb within rescues/layout (353.8ms)
Started GET "/shits" for 127.0.0.1 at 2016-03-15 12:01:35 +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.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/_trace.html.erb (1.2ms)
Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/routes/_route.html.erb (2.0ms)
Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/routes/_route.html.erb (0.8ms)
Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/routes/_table.html.erb (1.2ms)
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.3ms)
Rendered /home/leksster/.rvm/gems/ruby-2.2.2/gems/actionpack-4.2.5.2/lib/action_dispatch/middleware/templates/rescues/routing_error.html.erb within rescues/layout (33.7ms)
Started GET "/" for 127.0.0.1 at 2016-03-15 12:01:39 +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.1ms)
Completed 200 OK in 2ms (Views: 1.3ms | ActiveRecord: 0.0ms)
Started GET "/things" for 127.0.0.1 at 2016-03-15 12:01:43 +0200
Processing by ThingsController#index as HTML
[1m[35mThing Load (0.2ms)[0m SELECT "things".* FROM "things"
Rendered things/index.html.erb within layouts/application (6.3ms)
Completed 200 OK in 523ms (Views: 520.0ms | ActiveRecord: 0.5ms)
Started GET "/things" for 127.0.0.1 at 2016-03-15 12:01:44 +0200
Processing by ThingsController#index as HTML
[1m[36mThing Load (0.1ms)[0m [1mSELECT "things".* FROM "things"[0m
Rendered things/index.html.erb within layouts/application (1.0ms)
Completed 200 OK in 17ms (Views: 16.8ms | ActiveRecord: 0.1ms)
Started GET "/things/1" for 127.0.0.1 at 2016-03-15 12:01:45 +0200
Processing by ThingsController#show as HTML
Parameters: {"id"=>"1"}
[1m[35mThing Load (0.2ms)[0m 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 (655.7ms)
Rendered things/show.html.erb within layouts/application (667.3ms)
Completed 200 OK in 726ms (Views: 682.1ms | ActiveRecord: 0.2ms)
Started POST "/simple_cart/cart/1" for 127.0.0.1 at 2016-03-15 12:01:47 +0200
Processing by SimpleCart::CartsController#add as HTML
Parameters: {"utf8"=>"✓", "authenticity_token"=>"iWNgLvftPArLp7LhqEU+0empwL4vwX69STaClhxbwUdbvaysaej4PzY3MdLSxuiu6jnID5b20aQMK2TNigM7Xw==", "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-15 12:01:47 +0200
Processing by SimpleCart::CartsController#show as HTML
[1m[36mThing Load (0.2ms)[0m [1mSELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mCACHE (0.0ms)[0m 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 (18.9ms)
Completed 200 OK in 76ms (Views: 75.4ms | ActiveRecord: 0.2ms)
Started POST "/simple_cart/cart/checkout" for 127.0.0.1 at 2016-03-15 12:01:49 +0200
Processing by SimpleCart::CartsController#checkout as HTML
Parameters: {"authenticity_token"=>"x+1RD9kP57J3EGT023rKANORy35NbVFYs3OrSWQiJjYVM52NRwojh4qA58eh+Rx/0AHDz/Ra/kH2bk0S8nrcLg=="}
[1m[36mThing Load (0.1ms)[0m [1mSELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mCACHE (0.0ms)[0m SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", "1"]]
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
[1m[35mSQL (0.3ms)[0m INSERT INTO "simple_cart_orders" ("total_price", "completed_date", "aasm_state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["total_price", 52251.0], ["completed_date", "2016-03-15"], ["aasm_state", "in_progress"], ["created_at", "2016-03-15 10:01:49.612646"], ["updated_at", "2016-03-15 10:01:49.612646"]]
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "simple_cart_order_items" ("price", "qty", "itemable_id", "itemable_type", "order_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["price", 52251.0], ["qty", 1], ["itemable_id", 1], ["itemable_type", "Thing"], ["order_id", "7"], ["created_at", "2016-03-15 10:01:49.614279"], ["updated_at", "2016-03-15 10:01:49.614279"]]
[1m[35m (64.3ms)[0m commit transaction
Redirected to http://localhost:3000/simple_cart/orders/7/checkout
Completed 302 Found in 220ms (ActiveRecord: 65.4ms)
Started GET "/simple_cart/orders/7/checkout" for 127.0.0.1 at 2016-03-15 12:01:49 +0200
Processing by SimpleCart::CheckoutController#index as HTML
Parameters: {"order_id"=>"7"}
[1m[36mSimpleCart::Order Load (0.3ms)[0m [1mSELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1[0m [["id", 7]]
Redirected to http://localhost:3000/simple_cart/orders/7/checkout/billing
Completed 302 Found in 2ms (ActiveRecord: 0.3ms)
Started GET "/simple_cart/orders/7/checkout/billing" for 127.0.0.1 at 2016-03-15 12:01:49 +0200
Processing by SimpleCart::CheckoutController#show as HTML
Parameters: {"order_id"=>"7", "id"=>"billing"}
[1m[35mSimpleCart::Order Load (0.8ms)[0m SELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1 [["id", 7]]
[1m[36mSimpleCart::BillingAddress Load (0.2ms)[0m [1mSELECT "simple_cart_addresses".* FROM "simple_cart_addresses" WHERE "simple_cart_addresses"."type" IN ('SimpleCart::BillingAddress') AND "simple_cart_addresses"."order_id" = ? LIMIT 1[0m [["order_id", 7]]
[1m[35mSimpleCart::ShippingAddress Load (0.2ms)[0m 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", 7]]
[1m[36mSimpleCart::CreditCard Load (0.1ms)[0m [1mSELECT "simple_cart_credit_cards".* FROM "simple_cart_credit_cards" WHERE "simple_cart_credit_cards"."order_id" = ? LIMIT 1[0m [["order_id", 7]]
Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/_progress.html.haml (2.8ms)
Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/_address.html.haml (36.8ms)
[1m[35mCACHE (0.0ms)[0m SELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1 [["id", "7"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1[0m [["id", "7"]]
Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/_summary.html.haml (15.6ms)
Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/billing.html.haml within layouts/simple_cart/application (105.7ms)
Completed 200 OK in 257ms (Views: 132.9ms | ActiveRecord: 1.9ms)
Started GET "/" for 127.0.0.1 at 2016-03-15 12:45:16 +0200
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
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 (1.0ms)
Completed 200 OK in 13ms (Views: 6.4ms | ActiveRecord: 0.0ms)
Started GET "/items" for 127.0.0.1 at 2016-03-15 12:45:18 +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.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.3ms)
Started GET "/things" for 127.0.0.1 at 2016-03-15 12:45:21 +0200
Processing by ThingsController#index as HTML
[1m[35mThing Load (0.2ms)[0m SELECT "things".* FROM "things"
Rendered things/index.html.erb within layouts/application (8.8ms)
Completed 200 OK in 190ms (Views: 187.6ms | ActiveRecord: 0.6ms)
Started GET "/things/new" for 127.0.0.1 at 2016-03-15 12:45:23 +0200
Processing by ThingsController#new as HTML
Rendered things/_form.html.erb (51.7ms)
Rendered things/new.html.erb within layouts/application (57.1ms)
Completed 200 OK in 75ms (Views: 74.3ms | ActiveRecord: 0.0ms)
Started POST "/things" for 127.0.0.1 at 2016-03-15 12:45:27 +0200
Processing by ThingsController#create as HTML
Parameters: {"utf8"=>"✓", "authenticity_token"=>"fiKX4Ip5dt85Hixv2OkU6lvPphnytqmdWIwTiYikC22s/FtiFHyy6sSOr1yiasKVWF+uqEuBBoQdkfXSHvzxdQ==", "thing"=>{"name"=>"gds", "price"=>"hgsd", "qty"=>""}, "commit"=>"Create Thing"}
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
[1m[35mSQL (0.3ms)[0m INSERT INTO "things" ("name", "price", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "gds"], ["price", 0.0], ["created_at", "2016-03-15 10:45:27.834871"], ["updated_at", "2016-03-15 10:45:27.834871"]]
[1m[36m (75.7ms)[0m [1mcommit transaction[0m
Redirected to http://localhost:3000/things/2
Completed 302 Found in 81ms (ActiveRecord: 76.0ms)
Started GET "/things/2" for 127.0.0.1 at 2016-03-15 12:45:27 +0200
Processing by ThingsController#show as HTML
Parameters: {"id"=>"2"}
[1m[35mThing Load (0.3ms)[0m 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 (12.6ms)
Rendered things/show.html.erb within layouts/application (14.5ms)
Completed 200 OK in 40ms (Views: 33.3ms | ActiveRecord: 0.3ms)
Started POST "/simple_cart/cart/2" for 127.0.0.1 at 2016-03-15 12:45:30 +0200
Processing by SimpleCart::CartsController#add as HTML
Parameters: {"utf8"=>"✓", "authenticity_token"=>"nOQJxpD8m9zz7NLO13xLdzcl/0ydHwIkbYXYlNWSumxOOsVEDvlf6Q58Uf2t/50INLX3/SQorT0omD7PQ8pAdA==", "qty"=>"1", "klass"=>"Thing", "commit"=>"Add to cart", "item_id"=>"2"}
Redirected to http://localhost:3000/simple_cart/cart
Completed 302 Found in 4ms (ActiveRecord: 0.0ms)
Started GET "/simple_cart/cart" for 127.0.0.1 at 2016-03-15 12:45:30 +0200
Processing by SimpleCart::CartsController#show as HTML
[1m[36mThing Load (0.1ms)[0m [1mSELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1[0m [["id", 2]]
[1m[35mCACHE (0.0ms)[0m 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 (35.7ms)
Completed 200 OK in 89ms (Views: 88.6ms | ActiveRecord: 0.1ms)
Started PUT "/simple_cart/cart" for 127.0.0.1 at 2016-03-15 12:45:35 +0200
Processing by SimpleCart::CartsController#update as HTML
Parameters: {"utf8"=>"✓", "authenticity_token"=>"v9aoddUW/0pWDNxfa6lFLB4JEoE0FF+h52VQQr1IM3NtCGT3SxM7f6ucX2wRKpNTHZkaMI0j8LiieLYZKxDJaw==", "Thing_2"=>"4", "coupon"=>"", "commit"=>"Update"}
[1m[36mThing Load (0.1ms)[0m [1mSELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1[0m [["id", 2]]
[1m[35mCACHE (0.0ms)[0m 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.8ms)
Completed 200 OK in 38ms (Views: 37.1ms | ActiveRecord: 0.1ms)
Started PUT "/simple_cart/cart" for 127.0.0.1 at 2016-03-15 12:45:44 +0200
Processing by SimpleCart::CartsController#update as HTML
Parameters: {"utf8"=>"✓", "authenticity_token"=>"xmXaaQHUlGHnnjhvGcJeCGBeAczvn/a3r+ltuQe+bxgUuxbrn9FQVBoOu1xjQYh3Y84JfVaoWa7q9IvikeaVAA==", "Thing_2"=>"4", "coupon"=>"A2016", "commit"=>"Update"}
[1m[36mThing Load (0.2ms)[0m [1mSELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1[0m [["id", 2]]
[1m[35mCACHE (0.0ms)[0m 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 (14.2ms)
Completed 200 OK in 36ms (Views: 34.9ms | ActiveRecord: 0.2ms)
Started POST "/simple_cart/cart/checkout?coupon=A2016" for 127.0.0.1 at 2016-03-15 12:45:45 +0200
Processing by SimpleCart::CartsController#checkout as HTML
Parameters: {"authenticity_token"=>"RGlydmCfD2POap5U6VffxxRbdpAvnTPQaM8AbucftfGWt770/prLVjP6HWeT1Am4F8t+IZaqnMkt0uY1cUdP6Q==", "coupon"=>"A2016"}
[1m[36mThing Load (0.1ms)[0m [1mSELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1[0m [["id", 2]]
[1m[35mCACHE (0.0ms)[0m SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", "2"]]
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "simple_cart_orders" ("total_price", "completed_date", "aasm_state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["total_price", 0.0], ["completed_date", "2016-03-15"], ["aasm_state", "in_progress"], ["created_at", "2016-03-15 10:45:45.934534"], ["updated_at", "2016-03-15 10:45:45.934534"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "simple_cart_order_items" ("price", "qty", "itemable_id", "itemable_type", "order_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["price", 0.0], ["qty", 4], ["itemable_id", 2], ["itemable_type", "Thing"], ["order_id", "8"], ["created_at", "2016-03-15 10:45:45.936171"], ["updated_at", "2016-03-15 10:45:45.936171"]]
[1m[35m (58.8ms)[0m commit transaction
Redirected to http://localhost:3000/simple_cart/orders/8/checkout
Completed 302 Found in 132ms (ActiveRecord: 59.9ms)
Started GET "/simple_cart/orders/8/checkout" for 127.0.0.1 at 2016-03-15 12:45:46 +0200
Processing by SimpleCart::CheckoutController#index as HTML
Parameters: {"order_id"=>"8"}
[1m[36mSimpleCart::Order Load (0.3ms)[0m [1mSELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1[0m [["id", 8]]
Redirected to http://localhost:3000/simple_cart/orders/8/checkout/billing
Completed 302 Found in 3ms (ActiveRecord: 0.3ms)
Started GET "/simple_cart/orders/8/checkout/billing" for 127.0.0.1 at 2016-03-15 12:45:46 +0200
Processing by SimpleCart::CheckoutController#show as HTML
Parameters: {"order_id"=>"8", "id"=>"billing"}
[1m[35mSimpleCart::Order Load (0.1ms)[0m SELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1 [["id", 8]]
[1m[36mSimpleCart::BillingAddress Load (0.2ms)[0m [1mSELECT "simple_cart_addresses".* FROM "simple_cart_addresses" WHERE "simple_cart_addresses"."type" IN ('SimpleCart::BillingAddress') AND "simple_cart_addresses"."order_id" = ? LIMIT 1[0m [["order_id", 8]]
[1m[35mSimpleCart::ShippingAddress Load (0.2ms)[0m 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", 8]]
[1m[36mSimpleCart::CreditCard Load (0.2ms)[0m [1mSELECT "simple_cart_credit_cards".* FROM "simple_cart_credit_cards" WHERE "simple_cart_credit_cards"."order_id" = ? LIMIT 1[0m [["order_id", 8]]
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 (11.6ms)
[1m[35mCACHE (0.0ms)[0m SELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1 [["id", "8"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1[0m [["id", "8"]]
Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/_summary.html.haml (4.1ms)
Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/billing.html.haml within layouts/simple_cart/application (26.9ms)
Completed 200 OK in 93ms (Views: 46.4ms | ActiveRecord: 1.3ms)
Started GET "/simple_cart/cart" for 127.0.0.1 at 2016-03-15 12:45: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.9ms)
Completed 200 OK in 21ms (Views: 20.1ms | ActiveRecord: 0.0ms)
Started POST "/simple_cart/cart/2" for 127.0.0.1 at 2016-03-15 12:45:56 +0200
Processing by SimpleCart::CartsController#add as HTML
Parameters: {"utf8"=>"✓", "authenticity_token"=>"nOQJxpD8m9zz7NLO13xLdzcl/0ydHwIkbYXYlNWSumxOOsVEDvlf6Q58Uf2t/50INLX3/SQorT0omD7PQ8pAdA==", "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-15 12:45:56 +0200
Processing by SimpleCart::CartsController#show as HTML
[1m[35mThing Load (0.1ms)[0m SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1[0m [["id", "2"]]
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 33ms (Views: 32.8ms | ActiveRecord: 0.1ms)
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
[1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
[1m[36m (0.1ms)[0m [1m 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'
[0m
[1m[35m (0.1ms)[0m 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'
[1m[36m (0.1ms)[0m [1m 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'
[0m
[1m[35m (0.1ms)[0m 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'
Started GET "/items" for 127.0.0.1 at 2016-03-15 12:53:16 +0200
[1m[36mActiveRecord::SchemaMigration Load (0.2ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
Processing by ItemsController#index as HTML
Completed 500 Internal Server Error in 8ms (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.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 (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 (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 "/things" for 127.0.0.1 at 2016-03-15 12:53:19 +0200
Processing by ThingsController#index as HTML
[1m[35mThing Load (0.2ms)[0m SELECT "things".* FROM "things"
Rendered things/index.html.erb within layouts/application (6.2ms)
Completed 200 OK in 234ms (Views: 231.1ms | ActiveRecord: 0.4ms)
Started GET "/" for 127.0.0.1 at 2016-03-15 14:12:11 +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.7ms)
Completed 200 OK in 4ms (Views: 3.9ms | ActiveRecord: 0.0ms)
Started GET "/items" for 127.0.0.1 at 2016-03-15 14:12:12 +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 (5.1ms)
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.5ms)
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 GET "/things" for 127.0.0.1 at 2016-03-15 14:12:15 +0200
Processing by ThingsController#index as HTML
[1m[36mThing Load (0.5ms)[0m [1mSELECT "things".* FROM "things"[0m
Rendered things/index.html.erb within layouts/application (10.6ms)
Completed 200 OK in 39ms (Views: 35.8ms | ActiveRecord: 0.9ms)
Started GET "/things/1" for 127.0.0.1 at 2016-03-15 14:12:17 +0200
Processing by ThingsController#show as HTML
Parameters: {"id"=>"1"}
[1m[35mThing Load (0.6ms)[0m 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 (351.6ms)
Rendered things/show.html.erb within layouts/application (356.5ms)
Completed 200 OK in 380ms (Views: 369.4ms | ActiveRecord: 0.6ms)
Started POST "/simple_cart/cart/1" for 127.0.0.1 at 2016-03-15 14:12:19 +0200
Processing by SimpleCart::CartsController#add as HTML
Parameters: {"utf8"=>"✓", "authenticity_token"=>"ku0n7RxBfyJFH4AHaO/xHfjSM78HgrfxzvZnqB0iKuZAM+tvgkS7F7iPAzQSbCdi+0I7Dr61GOiL64Hzi3rQ/g==", "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-15 14:12:19 +0200
Processing by SimpleCart::CartsController#show as HTML
[1m[36mThing Load (0.2ms)[0m [1mSELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1[0m [["id", 2]]
[1m[35mThing Load (0.1ms)[0m SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1[0m [["id", "2"]]
[1m[35mCACHE (0.0ms)[0m 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 (33.6ms)
Completed 200 OK in 63ms (Views: 62.5ms | ActiveRecord: 0.3ms)
Started POST "/simple_cart/cart/checkout" for 127.0.0.1 at 2016-03-15 14:12:20 +0200
Processing by SimpleCart::CartsController#checkout as HTML
Parameters: {"authenticity_token"=>"bqSsWay5BWMhUEaif//jT/bZ8itPAahv8/m6QSaUTGW8emDbMrzBVtzAxZEFfDUw9Un6mvY2B3a25FwasMy2fQ=="}
[1m[36mThing Load (0.1ms)[0m [1mSELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1[0m [["id", 2]]
[1m[35mThing Load (0.0ms)[0m SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1[0m [["id", "2"]]
[1m[35mCACHE (0.0ms)[0m SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", "1"]]
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "simple_cart_orders" ("total_price", "completed_date", "aasm_state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["total_price", 52251.0], ["completed_date", "2016-03-15"], ["aasm_state", "in_progress"], ["created_at", "2016-03-15 12:12:20.787619"], ["updated_at", "2016-03-15 12:12:20.787619"]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "simple_cart_order_items" ("price", "qty", "itemable_id", "itemable_type", "order_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["price", 0.0], ["qty", 1], ["itemable_id", 2], ["itemable_type", "Thing"], ["order_id", "9"], ["created_at", "2016-03-15 12:12:20.789021"], ["updated_at", "2016-03-15 12:12:20.789021"]]
[1m[35mSQL (0.0ms)[0m 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", "9"], ["created_at", "2016-03-15 12:12:20.790009"], ["updated_at", "2016-03-15 12:12:20.790009"]]
[1m[36m (210.6ms)[0m [1mcommit transaction[0m
Redirected to http://localhost:3000/simple_cart/orders/9/checkout
Completed 302 Found in 258ms (ActiveRecord: 211.7ms)
Started GET "/simple_cart/orders/9/checkout" for 127.0.0.1 at 2016-03-15 14:12:21 +0200
Processing by SimpleCart::CheckoutController#index as HTML
Parameters: {"order_id"=>"9"}
[1m[35mSimpleCart::Order Load (0.2ms)[0m SELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1 [["id", 9]]
Redirected to http://localhost:3000/simple_cart/orders/9/checkout/billing
Completed 302 Found in 2ms (ActiveRecord: 0.2ms)
Started GET "/simple_cart/orders/9/checkout/billing" for 127.0.0.1 at 2016-03-15 14:12:21 +0200
Processing by SimpleCart::CheckoutController#show as HTML
Parameters: {"order_id"=>"9", "id"=>"billing"}
[1m[36mSimpleCart::Order Load (0.1ms)[0m [1mSELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1[0m [["id", 9]]
[1m[35mSimpleCart::BillingAddress Load (0.3ms)[0m 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", 9]]
[1m[36mSimpleCart::ShippingAddress Load (0.2ms)[0m [1mSELECT "simple_cart_addresses".* FROM "simple_cart_addresses" WHERE "simple_cart_addresses"."type" IN ('SimpleCart::ShippingAddress') AND "simple_cart_addresses"."order_id" = ? LIMIT 1[0m [["order_id", 9]]
[1m[35mSimpleCart::CreditCard Load (0.2ms)[0m SELECT "simple_cart_credit_cards".* FROM "simple_cart_credit_cards" WHERE "simple_cart_credit_cards"."order_id" = ? LIMIT 1 [["order_id", 9]]
Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/_progress.html.haml (2.4ms)
Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/_address.html.haml (18.2ms)
[1m[36mCACHE (0.0ms)[0m [1mSELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1[0m [["id", "9"]]
[1m[35mCACHE (0.0ms)[0m SELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1 [["id", "9"]]
Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/_summary.html.haml (3.7ms)
Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/billing.html.haml within layouts/simple_cart/application (35.2ms)
Completed 200 OK in 96ms (Views: 55.0ms | ActiveRecord: 1.4ms)
Started PATCH "/simple_cart/orders/9/checkout/billing" for 127.0.0.1 at 2016-03-15 14:12:27 +0200
Processing by SimpleCart::CheckoutController#update as HTML
Parameters: {"utf8"=>"✓", "authenticity_token"=>"zcoHp2+GwGfbgteVeBkDQ04TLjLJc1/6Fk8gVW+x4AQfFMsl8YMEUiYSVKYCmtU8TYMmg3BE8ONTUsYO+ekaHA==", "order"=>{"billing_address_attributes"=>{"firstname"=>"fsa", "lastname"=>"gsa", "address"=>"gsa", "zipcode"=>"sagsga", "city"=>"sgasgas", "phone"=>"gagsaasg", "country"=>"Afghanistan"}}, "shipping"=>{"use_billing_address"=>"true"}, "commit"=>"Save and continue", "order_id"=>"9", "id"=>"billing"}
[1m[36mSimpleCart::Order Load (0.1ms)[0m [1mSELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1[0m [["id", 9]]
[1m[35m (0.1ms)[0m begin transaction
[1m[36mSimpleCart::BillingAddress Load (0.1ms)[0m [1mSELECT "simple_cart_addresses".* FROM "simple_cart_addresses" WHERE "simple_cart_addresses"."type" IN ('SimpleCart::BillingAddress') AND "simple_cart_addresses"."order_id" = ? LIMIT 1[0m [["order_id", 9]]
[1m[35mSQL (0.3ms)[0m INSERT INTO "simple_cart_addresses" ("type", "firstname", "lastname", "address", "zipcode", "city", "phone", "country", "order_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["type", "SimpleCart::BillingAddress"], ["firstname", "fsa"], ["lastname", "gsa"], ["address", "gsa"], ["zipcode", "sagsga"], ["city", "sgasgas"], ["phone", "gagsaasg"], ["country", "Afghanistan"], ["order_id", 9], ["created_at", "2016-03-15 12:12:27.277404"], ["updated_at", "2016-03-15 12:12:27.277404"]]
[1m[36m (281.9ms)[0m [1mcommit transaction[0m
[1m[35mSimpleCart::ShippingAddress Load (0.1ms)[0m 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", 9]]
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
[1m[35mSQL (0.3ms)[0m 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", 9], ["address", "gsa"], ["zipcode", "sagsga"], ["city", "sgasgas"], ["phone", "gagsaasg"], ["country", "Afghanistan"], ["created_at", "2016-03-15 12:12:27.277404"], ["updated_at", "2016-03-15 12:12:27.277404"], ["firstname", "fsa"], ["lastname", "gsa"]]
[1m[36m (101.3ms)[0m [1mcommit transaction[0m
Redirected to http://localhost:3000/simple_cart/orders/9/checkout/delivery
Completed 302 Found in 395ms (ActiveRecord: 384.2ms)
Started GET "/simple_cart/orders/9/checkout/delivery" for 127.0.0.1 at 2016-03-15 14:12:27 +0200
Processing by SimpleCart::CheckoutController#show as HTML
Parameters: {"order_id"=>"9", "id"=>"delivery"}
[1m[35mSimpleCart::Order Load (0.1ms)[0m SELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1 [["id", 9]]
[1m[36mSimpleCart::ShippingAddress Load (0.1ms)[0m [1mSELECT "simple_cart_addresses".* FROM "simple_cart_addresses" WHERE "simple_cart_addresses"."type" IN ('SimpleCart::ShippingAddress') AND "simple_cart_addresses"."order_id" = ? LIMIT 1[0m [["order_id", 9]]
[1m[35mSimpleCart::BillingAddress Load (0.1ms)[0m 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", 9]]
[1m[36mSimpleCart::CreditCard Load (0.1ms)[0m [1mSELECT "simple_cart_credit_cards".* FROM "simple_cart_credit_cards" WHERE "simple_cart_credit_cards"."order_id" = ? LIMIT 1[0m [["order_id", 9]]
Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/_progress.html.haml (1.1ms)
[1m[35mSimpleCart::Delivery Load (0.2ms)[0m SELECT "simple_cart_deliveries".* FROM "simple_cart_deliveries"
[1m[36mSimpleCart::Delivery Load (0.2ms)[0m [1mSELECT "simple_cart_deliveries".* FROM "simple_cart_deliveries" ORDER BY "simple_cart_deliveries"."id" ASC LIMIT 1[0m
[1m[35mCACHE (0.0ms)[0m SELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1 [["id", "9"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1[0m [["id", "9"]]
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/delivery.html.haml within layouts/simple_cart/application (38.3ms)
Completed 200 OK in 93ms (Views: 89.3ms | ActiveRecord: 0.8ms)
Started PATCH "/simple_cart/orders/9/checkout/delivery" for 127.0.0.1 at 2016-03-15 14:12:28 +0200
Processing by SimpleCart::CheckoutController#update as HTML
Parameters: {"utf8"=>"✓", "authenticity_token"=>"wwBJ4Uz/wKVXMNLOeqAAOcrxQdlIgNSlrkbgC9VTel4R3oVj0voEkKqgUf0AI9ZGyWFJaPG3e7zrWwZQQwuARg==", "order"=>{"delivery_id"=>"9"}, "commit"=>"Continue", "order_id"=>"9", "id"=>"delivery"}
[1m[35mSimpleCart::Order Load (0.1ms)[0m SELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1 [["id", 9]]
[1m[36mSimpleCart::Delivery Load (0.2ms)[0m [1mSELECT "simple_cart_deliveries".* FROM "simple_cart_deliveries" WHERE "simple_cart_deliveries"."id" = ? LIMIT 1[0m [["id", 9]]
[1m[35m (0.1ms)[0m begin transaction
[1m[36mSQL (0.3ms)[0m [1mUPDATE "simple_cart_orders" SET "delivery_id" = ?, "updated_at" = ? WHERE "simple_cart_orders"."id" = ?[0m [["delivery_id", 9], ["updated_at", "2016-03-15 12:12:28.940293"], ["id", 9]]
[1m[35m (223.8ms)[0m commit transaction
Redirected to http://localhost:3000/simple_cart/orders/9/checkout/payment
Completed 302 Found in 229ms (ActiveRecord: 224.4ms)
Started GET "/simple_cart/orders/9/checkout/payment" for 127.0.0.1 at 2016-03-15 14:12:29 +0200
Processing by SimpleCart::CheckoutController#show as HTML
Parameters: {"order_id"=>"9", "id"=>"payment"}
[1m[36mSimpleCart::Order Load (0.1ms)[0m [1mSELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1[0m [["id", 9]]
[1m[35mSimpleCart::Delivery Load (0.1ms)[0m SELECT "simple_cart_deliveries".* FROM "simple_cart_deliveries" WHERE "simple_cart_deliveries"."id" = ? LIMIT 1 [["id", 9]]
[1m[36mSimpleCart::BillingAddress Load (0.1ms)[0m [1mSELECT "simple_cart_addresses".* FROM "simple_cart_addresses" WHERE "simple_cart_addresses"."type" IN ('SimpleCart::BillingAddress') AND "simple_cart_addresses"."order_id" = ? LIMIT 1[0m [["order_id", 9]]
[1m[35mSimpleCart::ShippingAddress Load (0.1ms)[0m 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", 9]]
[1m[36mSimpleCart::CreditCard Load (0.0ms)[0m [1mSELECT "simple_cart_credit_cards".* FROM "simple_cart_credit_cards" WHERE "simple_cart_credit_cards"."order_id" = ? LIMIT 1[0m [["order_id", 9]]
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 (11.9ms)
Completed 200 OK in 58ms (Views: 53.7ms | ActiveRecord: 0.5ms)
Started PATCH "/simple_cart/orders/9/checkout/payment" for 127.0.0.1 at 2016-03-15 14:12:34 +0200
Processing by SimpleCart::CheckoutController#update as HTML
Parameters: {"utf8"=>"✓", "authenticity_token"=>"5JnMAwDlpsU5fzjLBijRZXPndpb+7OuJHBqo+qaJST42RwCBnuBi8MTvu/h8qwcacHd+J0fbRJBZB06hMNGzJg==", "order"=>{"credit_card_attributes"=>{"number"=>"1111111111111111", "expiration_month"=>"01", "expiration_year"=>"2017", "cvv"=>"521", "firstname"=>"124125", "lastname"=>"215215"}}, "commit"=>"Continue", "order_id"=>"9", "id"=>"payment"}
[1m[35mSimpleCart::Order Load (0.1ms)[0m SELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1 [["id", 9]]
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
[1m[35mSimpleCart::CreditCard Load (0.1ms)[0m SELECT "simple_cart_credit_cards".* FROM "simple_cart_credit_cards" WHERE "simple_cart_credit_cards"."order_id" = ? LIMIT 1 [["order_id", 9]]
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "simple_cart_credit_cards" ("number", "expiration_month", "expiration_year", "cvv", "firstname", "lastname", "order_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["number", "1111111111111111"], ["expiration_month", "01"], ["expiration_year", "2017"], ["cvv", "521"], ["firstname", "124125"], ["lastname", "215215"], ["order_id", 9], ["created_at", "2016-03-15 12:12:34.233476"], ["updated_at", "2016-03-15 12:12:34.233476"]]
[1m[35m (89.2ms)[0m commit transaction
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
[1m[35m (0.1ms)[0m commit transaction
Redirected to http://localhost:3000/simple_cart/orders/9/checkout/confirm
Completed 302 Found in 98ms (ActiveRecord: 89.9ms)
Started GET "/simple_cart/orders/9/checkout/confirm" for 127.0.0.1 at 2016-03-15 14:12:34 +0200
Processing by SimpleCart::CheckoutController#show as HTML
Parameters: {"order_id"=>"9", "id"=>"confirm"}
[1m[36mSimpleCart::Order Load (0.1ms)[0m [1mSELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1[0m [["id", 9]]
[1m[35mSimpleCart::CreditCard Load (0.1ms)[0m SELECT "simple_cart_credit_cards".* FROM "simple_cart_credit_cards" WHERE "simple_cart_credit_cards"."order_id" = ? LIMIT 1 [["order_id", 9]]
[1m[36mSimpleCart::BillingAddress Load (0.1ms)[0m [1mSELECT "simple_cart_addresses".* FROM "simple_cart_addresses" WHERE "simple_cart_addresses"."type" IN ('SimpleCart::BillingAddress') AND "simple_cart_addresses"."order_id" = ? LIMIT 1[0m [["order_id", 9]]
[1m[35mSimpleCart::ShippingAddress Load (0.2ms)[0m 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", 9]]
Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/_progress.html.haml (0.9ms)
[1m[36mSimpleCart::Delivery Load (0.1ms)[0m [1mSELECT "simple_cart_deliveries".* FROM "simple_cart_deliveries" WHERE "simple_cart_deliveries"."id" = ? LIMIT 1[0m [["id", 9]]
Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/_overview.html.haml (5.0ms)
[1m[35mSimpleCart::OrderItem Exists (0.2ms)[0m SELECT 1 AS one FROM "simple_cart_order_items" WHERE "simple_cart_order_items"."order_id" = ? LIMIT 1 [["order_id", "9"]]
[1m[36mSimpleCart::OrderItem Load (0.1ms)[0m [1mSELECT "simple_cart_order_items".* FROM "simple_cart_order_items" WHERE "simple_cart_order_items"."order_id" = ?[0m [["order_id", "9"]]
[1m[35mThing Load (0.1ms)[0m SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]]
[1m[36mThing Load (0.0ms)[0m [1mSELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1[0m [["id", 1]]
Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/confirm.html.haml within layouts/simple_cart/application (87.2ms)
Completed 200 OK in 135ms (Views: 130.5ms | ActiveRecord: 1.0ms)
Started PATCH "/simple_cart/orders/9" for 127.0.0.1 at 2016-03-15 14:12:55 +0200
Processing by SimpleCart::OrdersController#update as HTML
Parameters: {"authenticity_token"=>"XrfEhfGxuSalXOtLW8HRj48ecz3AigfBBDUPhzTnMwuMaQgHb7R9E1jMaHghQgfwjI57jHm9qNhBKOncor/JEw==", "id"=>"9"}
[1m[35mSimpleCart::Order Load (0.1ms)[0m SELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1 [["id", 9]]
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
[1m[35mSQL (0.2ms)[0m UPDATE "simple_cart_orders" SET "aasm_state" = ?, "updated_at" = ? WHERE "simple_cart_orders"."id" = ? [["aasm_state", "in_queue"], ["updated_at", "2016-03-15 12:12:55.531718"], ["id", 9]]
[1m[36m (62.6ms)[0m [1mcommit transaction[0m
[1m[35mSimpleCart::Delivery Load (0.1ms)[0m SELECT "simple_cart_deliveries".* FROM "simple_cart_deliveries" WHERE "simple_cart_deliveries"."id" = ? LIMIT 1 [["id", 9]]
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
[1m[35mSQL (0.2ms)[0m UPDATE "simple_cart_orders" SET "total_price" = ?, "updated_at" = ? WHERE "simple_cart_orders"."id" = ? [["total_price", 52271.0], ["updated_at", "2016-03-15 12:12:55.597253"], ["id", 9]]
[1m[36m (97.9ms)[0m [1mcommit transaction[0m
Redirected to http://localhost:3000/simple_cart/orders/9
Completed 302 Found in 167ms (ActiveRecord: 161.3ms)
Started GET "/simple_cart/orders/9" for 127.0.0.1 at 2016-03-15 14:12:55 +0200
Processing by SimpleCart::OrdersController#show as HTML
Parameters: {"id"=>"9"}
[1m[35mSimpleCart::Order Load (0.1ms)[0m SELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1 [["id", 9]]
[1m[36mSimpleCart::BillingAddress Load (0.1ms)[0m [1mSELECT "simple_cart_addresses".* FROM "simple_cart_addresses" WHERE "simple_cart_addresses"."type" IN ('SimpleCart::BillingAddress') AND "simple_cart_addresses"."order_id" = ? LIMIT 1[0m [["order_id", 9]]
[1m[35mSimpleCart::ShippingAddress Load (0.1ms)[0m 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", 9]]
[1m[36mSimpleCart::Delivery Load (0.1ms)[0m [1mSELECT "simple_cart_deliveries".* FROM "simple_cart_deliveries" WHERE "simple_cart_deliveries"."id" = ? LIMIT 1[0m [["id", 9]]
[1m[35mSimpleCart::CreditCard Load (0.1ms)[0m SELECT "simple_cart_credit_cards".* FROM "simple_cart_credit_cards" WHERE "simple_cart_credit_cards"."order_id" = ? LIMIT 1 [["order_id", 9]]
[1m[36mSimpleCart::OrderItem Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "simple_cart_order_items" WHERE "simple_cart_order_items"."order_id" = ? LIMIT 1[0m [["order_id", "9"]]
[1m[35mSimpleCart::OrderItem Load (0.1ms)[0m SELECT "simple_cart_order_items".* FROM "simple_cart_order_items" WHERE "simple_cart_order_items"."order_id" = ? [["order_id", "9"]]
[1m[36mThing Load (0.0ms)[0m [1mSELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1[0m [["id", 2]]
[1m[35mThing Load (0.0ms)[0m SELECT "things".* FROM "things" WHERE "things"."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.5ms)
Completed 200 OK in 57ms (Views: 55.1ms | ActiveRecord: 0.8ms)
Started GET "/things" for 127.0.0.1 at 2016-03-15 14:17:35 +0200
Processing by ThingsController#index as HTML
[1m[36mThing Load (0.1ms)[0m [1mSELECT "things".* FROM "things"[0m
Rendered things/index.html.erb within layouts/application (1.2ms)
Completed 200 OK in 16ms (Views: 15.8ms | ActiveRecord: 0.1ms)
Started GET "/things/1" for 127.0.0.1 at 2016-03-15 14:17:37 +0200
Processing by ThingsController#show as HTML
Parameters: {"id"=>"1"}
[1m[35mThing Load (0.1ms)[0m 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.4ms)
Rendered things/show.html.erb within layouts/application (6.0ms)
Completed 200 OK in 24ms (Views: 22.9ms | ActiveRecord: 0.1ms)
Started POST "/simple_cart/cart/1" for 127.0.0.1 at 2016-03-15 14:17:39 +0200
Processing by SimpleCart::CartsController#add as HTML
Parameters: {"utf8"=>"✓", "authenticity_token"=>"kqoGke3gedIjE/457+PrXAlpcxnug8B+QSpAcme3NO5AdMoTc+W9596DfQqVYD0jCvl7qFe0b2cEN6Yp8e/O9g==", "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-15 14:17:39 +0200
Processing by SimpleCart::CartsController#show as HTML
[1m[36mThing Load (0.1ms)[0m [1mSELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mCACHE (0.0ms)[0m 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
[1m[36mActiveRecord::SchemaMigration Load (0.2ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
Processing by ThingsController#index as HTML
[1m[35mThing Load (0.2ms)[0m 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"}
[1m[36mThing Load (0.2ms)[0m [1mSELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1[0m [["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
[1m[35mThing Load (0.2ms)[0m SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1[0m [["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"}
[1m[35mThing Load (0.1ms)[0m 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=>#, 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"}
[1m[36mThing Load (0.1ms)[0m [1mSELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1[0m [["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
[1m[35mThing Load (0.1ms)[0m SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mThing Load (0.2ms)[0m [1mSELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1[0m [["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"}
[1m[35mThing Load (0.2ms)[0m 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
[1m[36mThing Load (0.1ms)[0m [1mSELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mThing Load (0.1ms)[0m 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"}
[1m[36mThing Load (0.1ms)[0m [1mSELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1[0m [["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
[1m[35mThing Load (0.1ms)[0m SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1[0m [["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"}
[1m[35mThing Load (0.1ms)[0m SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1[0m [["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"=>""}
[1m[35mThing Load (0.1ms)[0m SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1[0m [["id", "1"]]
[1m[35m (0.1ms)[0m begin transaction
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "simple_cart_orders" ("total_price", "completed_date", "aasm_state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
[1m[35mSQL (0.2ms)[0m 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"]]
[1m[36m (211.9ms)[0m [1mcommit transaction[0m
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"}
[1m[35mSimpleCart::Order Load (0.2ms)[0m 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"}
[1m[36mSimpleCart::Order Load (0.1ms)[0m [1mSELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1[0m [["id", 10]]
[1m[35mSimpleCart::BillingAddress Load (0.2ms)[0m 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]]
[1m[36mSimpleCart::ShippingAddress Load (0.2ms)[0m [1mSELECT "simple_cart_addresses".* FROM "simple_cart_addresses" WHERE "simple_cart_addresses"."type" IN ('SimpleCart::ShippingAddress') AND "simple_cart_addresses"."order_id" = ? LIMIT 1[0m [["order_id", 10]]
[1m[35mSimpleCart::CreditCard Load (0.2ms)[0m 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)
[1m[36mCACHE (0.0ms)[0m [1mSELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1[0m [["id", "10"]]
[1m[35mCACHE (0.0ms)[0m 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
[1m[36mThing Load (0.2ms)[0m [1mSELECT "things".* FROM "things"[0m
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
[1m[35mThing Load (0.3ms)[0m 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"}
[1m[36mThing Load (0.1ms)[0m [1mSELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1[0m [["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
[1m[35mThing Load (0.1ms)[0m SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1[0m [["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"}
[1m[35mThing Load (0.2ms)[0m 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 #):
/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"}
[1m[36mThing Load (0.1ms)[0m [1mSELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1[0m [["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"}
[1m[35mThing Load (0.1ms)[0m 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
[1m[36mThing Load (0.1ms)[0m [1mSELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1[0m [["id", 2]]
[1m[35mCACHE (0.0ms)[0m 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"}
[1m[36mThing Load (0.1ms)[0m [1mSELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1[0m [["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"}
[1m[35mThing Load (0.1ms)[0m 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
[1m[36mThing Load (0.1ms)[0m [1mSELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1[0m [["id", 2]]
[1m[35mThing Load (0.1ms)[0m SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1[0m [["id", "2"]]
[1m[35mCACHE (0.0ms)[0m 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"}
[1m[36mThing Load (0.2ms)[0m [1mSELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1[0m [["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 #):
/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
[1m[35mThing Load (0.2ms)[0m SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]]
[1m[36mThing Load (0.1ms)[0m [1mSELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mCACHE (0.0ms)[0m SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", "2"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1[0m [["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"}
[1m[35mThing Load (0.1ms)[0m 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
[1m[36mThing Load (0.1ms)[0m [1mSELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1[0m [["id", 2]]
[1m[35mThing Load (0.1ms)[0m SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1[0m [["id", "2"]]
[1m[35mCACHE (0.0ms)[0m 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"}
[1m[36mThing Load (0.2ms)[0m [1mSELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1[0m [["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
[1m[35mThing Load (0.2ms)[0m SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]]
[1m[36mThing Load (0.1ms)[0m [1mSELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mCACHE (0.0ms)[0m SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", "2"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1[0m [["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"}
[1m[35mThing Load (0.1ms)[0m 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
[1m[36mThing Load (0.1ms)[0m [1mSELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1[0m [["id", 2]]
[1m[35mThing Load (0.0ms)[0m SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1[0m [["id", "2"]]
[1m[35mCACHE (0.0ms)[0m 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"}
[1m[36mThing Load (0.1ms)[0m [1mSELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1[0m [["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
[1m[35mThing Load (0.1ms)[0m SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]]
[1m[36mThing Load (0.1ms)[0m [1mSELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mCACHE (0.0ms)[0m SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", "2"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1[0m [["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
[1m[35mKk Load (0.2ms)[0m 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
[1m[36mKk Load (0.2ms)[0m [1mSELECT "kks".* FROM "kks"[0m
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"}
[1m[35mKk Load (0.3ms)[0m 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
[1m[36mThing Load (0.1ms)[0m [1mSELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1[0m [["id", 2]]
[1m[35mThing Load (0.1ms)[0m SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mKk Load (0.1ms)[0m [1mSELECT "kks".* FROM "kks" WHERE "kks"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mCACHE (0.0ms)[0m SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", "2"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1[0m [["id", "1"]]
[1m[35mCACHE (0.0ms)[0m 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=="}
[1m[36mThing Load (0.1ms)[0m [1mSELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1[0m [["id", 2]]
[1m[35mThing Load (0.1ms)[0m SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mKk Load (0.1ms)[0m [1mSELECT "kks".* FROM "kks" WHERE "kks"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mCACHE (0.0ms)[0m SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", "2"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1[0m [["id", "1"]]
[1m[35mCACHE (0.0ms)[0m SELECT "kks".* FROM "kks" WHERE "kks"."id" = ? LIMIT 1 [["id", "1"]]
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
[1m[35mSQL (0.3ms)[0m 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"]]
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "simple_cart_order_items" ("price", "qty", "itemable_id", "itemable_type", "order_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["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"]]
[1m[35mSQL (0.1ms)[0m 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"]]
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "simple_cart_order_items" ("price", "qty", "itemable_id", "itemable_type", "order_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["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"]]
[1m[35m (104.7ms)[0m 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"}
[1m[36mSimpleCart::Order Load (0.3ms)[0m [1mSELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1[0m [["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"}
[1m[35mSimpleCart::Order Load (0.1ms)[0m SELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1 [["id", 11]]
[1m[36mSimpleCart::BillingAddress Load (0.2ms)[0m [1mSELECT "simple_cart_addresses".* FROM "simple_cart_addresses" WHERE "simple_cart_addresses"."type" IN ('SimpleCart::BillingAddress') AND "simple_cart_addresses"."order_id" = ? LIMIT 1[0m [["order_id", 11]]
[1m[35mSimpleCart::ShippingAddress Load (0.2ms)[0m 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]]
[1m[36mSimpleCart::CreditCard Load (0.2ms)[0m [1mSELECT "simple_cart_credit_cards".* FROM "simple_cart_credit_cards" WHERE "simple_cart_credit_cards"."order_id" = ? LIMIT 1[0m [["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)
[1m[35mCACHE (0.0ms)[0m SELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1 [["id", "11"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1[0m [["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=="}
[1m[35m (0.1ms)[0m begin transaction
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "simple_cart_orders" ("total_price", "completed_date", "aasm_state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
[1m[35m (74.2ms)[0m 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"}
[1m[36mSimpleCart::Order Load (0.2ms)[0m [1mSELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1[0m [["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"}
[1m[35mSimpleCart::Order Load (0.1ms)[0m SELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1 [["id", 12]]
[1m[36mSimpleCart::BillingAddress Load (0.1ms)[0m [1mSELECT "simple_cart_addresses".* FROM "simple_cart_addresses" WHERE "simple_cart_addresses"."type" IN ('SimpleCart::BillingAddress') AND "simple_cart_addresses"."order_id" = ? LIMIT 1[0m [["order_id", 12]]
[1m[35mSimpleCart::ShippingAddress Load (0.1ms)[0m 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]]
[1m[36mSimpleCart::CreditCard Load (0.1ms)[0m [1mSELECT "simple_cart_credit_cards".* FROM "simple_cart_credit_cards" WHERE "simple_cart_credit_cards"."order_id" = ? LIMIT 1[0m [["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)
[1m[35mCACHE (0.0ms)[0m SELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1 [["id", "12"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1[0m [["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"}
[1m[35mSimpleCart::Order Load (0.2ms)[0m SELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1 [["id", 12]]
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
[1m[35mSimpleCart::BillingAddress Load (0.2ms)[0m 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]]
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "simple_cart_addresses" ("type", "firstname", "lastname", "address", "zipcode", "city", "phone", "country", "order_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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"]]
[1m[35m (206.9ms)[0m commit transaction
[1m[36mSimpleCart::ShippingAddress Load (0.2ms)[0m [1mSELECT "simple_cart_addresses".* FROM "simple_cart_addresses" WHERE "simple_cart_addresses"."type" IN ('SimpleCart::ShippingAddress') AND "simple_cart_addresses"."order_id" = ? LIMIT 1[0m [["order_id", 12]]
[1m[35m (0.1ms)[0m begin transaction
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "simple_cart_addresses" ("type", "order_id", "address", "zipcode", "city", "phone", "country", "created_at", "updated_at", "firstname", "lastname") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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"]]
[1m[35m (97.4ms)[0m 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"}
[1m[36mSimpleCart::Order Load (0.2ms)[0m [1mSELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1[0m [["id", 12]]
[1m[35mSimpleCart::ShippingAddress Load (0.1ms)[0m 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]]
[1m[36mSimpleCart::BillingAddress Load (0.1ms)[0m [1mSELECT "simple_cart_addresses".* FROM "simple_cart_addresses" WHERE "simple_cart_addresses"."type" IN ('SimpleCart::BillingAddress') AND "simple_cart_addresses"."order_id" = ? LIMIT 1[0m [["order_id", 12]]
[1m[35mSimpleCart::CreditCard Load (0.1ms)[0m 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)
[1m[36mSimpleCart::Delivery Load (0.2ms)[0m [1mSELECT "simple_cart_deliveries".* FROM "simple_cart_deliveries"[0m
[1m[35mSimpleCart::Delivery Load (0.2ms)[0m SELECT "simple_cart_deliveries".* FROM "simple_cart_deliveries" ORDER BY "simple_cart_deliveries"."id" ASC LIMIT 1
[1m[36mCACHE (0.0ms)[0m [1mSELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1[0m [["id", "12"]]
[1m[35mCACHE (0.0ms)[0m 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"}
[1m[36mSimpleCart::Order Load (0.2ms)[0m [1mSELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1[0m [["id", 12]]
[1m[35mSimpleCart::Delivery Load (0.2ms)[0m SELECT "simple_cart_deliveries".* FROM "simple_cart_deliveries" WHERE "simple_cart_deliveries"."id" = ? LIMIT 1 [["id", 9]]
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
[1m[35mSQL (0.3ms)[0m 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]]
[1m[36m (275.4ms)[0m [1mcommit transaction[0m
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"}
[1m[35mSimpleCart::Order Load (0.1ms)[0m SELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1 [["id", 12]]
[1m[36mSimpleCart::Delivery Load (0.1ms)[0m [1mSELECT "simple_cart_deliveries".* FROM "simple_cart_deliveries" WHERE "simple_cart_deliveries"."id" = ? LIMIT 1[0m [["id", 9]]
[1m[35mSimpleCart::BillingAddress Load (0.1ms)[0m 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]]
[1m[36mSimpleCart::ShippingAddress Load (0.1ms)[0m [1mSELECT "simple_cart_addresses".* FROM "simple_cart_addresses" WHERE "simple_cart_addresses"."type" IN ('SimpleCart::ShippingAddress') AND "simple_cart_addresses"."order_id" = ? LIMIT 1[0m [["order_id", 12]]
[1m[35mSimpleCart::CreditCard Load (0.1ms)[0m 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"}
[1m[36mSimpleCart::Order Load (0.1ms)[0m [1mSELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1[0m [["id", 12]]
[1m[35m (0.1ms)[0m begin transaction
[1m[36mSimpleCart::CreditCard Load (0.1ms)[0m [1mSELECT "simple_cart_credit_cards".* FROM "simple_cart_credit_cards" WHERE "simple_cart_credit_cards"."order_id" = ? LIMIT 1[0m [["order_id", 12]]
[1m[35mSQL (0.3ms)[0m 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"]]
[1m[36m (88.8ms)[0m [1mcommit transaction[0m
[1m[35m (0.1ms)[0m begin transaction
[1m[36m (0.1ms)[0m [1mcommit transaction[0m
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"}
[1m[35mSimpleCart::Order Load (0.1ms)[0m SELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1 [["id", 12]]
[1m[36mSimpleCart::CreditCard Load (0.1ms)[0m [1mSELECT "simple_cart_credit_cards".* FROM "simple_cart_credit_cards" WHERE "simple_cart_credit_cards"."order_id" = ? LIMIT 1[0m [["order_id", 12]]
[1m[35mSimpleCart::BillingAddress Load (0.2ms)[0m 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]]
[1m[36mSimpleCart::ShippingAddress Load (0.1ms)[0m [1mSELECT "simple_cart_addresses".* FROM "simple_cart_addresses" WHERE "simple_cart_addresses"."type" IN ('SimpleCart::ShippingAddress') AND "simple_cart_addresses"."order_id" = ? LIMIT 1[0m [["order_id", 12]]
Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/_progress.html.haml (1.0ms)
[1m[35mSimpleCart::Delivery Load (0.1ms)[0m 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)
[1m[36mSimpleCart::OrderItem Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "simple_cart_order_items" WHERE "simple_cart_order_items"."order_id" = ? LIMIT 1[0m [["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"}
[1m[35mSimpleCart::Order Load (0.1ms)[0m SELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1 [["id", 12]]
[1m[36mSimpleCart::BillingAddress Load (0.1ms)[0m [1mSELECT "simple_cart_addresses".* FROM "simple_cart_addresses" WHERE "simple_cart_addresses"."type" IN ('SimpleCart::BillingAddress') AND "simple_cart_addresses"."order_id" = ? LIMIT 1[0m [["order_id", 12]]
[1m[35mSimpleCart::ShippingAddress Load (0.1ms)[0m 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]]
[1m[36mSimpleCart::CreditCard Load (0.1ms)[0m [1mSELECT "simple_cart_credit_cards".* FROM "simple_cart_credit_cards" WHERE "simple_cart_credit_cards"."order_id" = ? LIMIT 1[0m [["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)
[1m[35mCACHE (0.0ms)[0m SELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1 [["id", "12"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1[0m [["id", "12"]]
[1m[35mSimpleCart::Delivery Load (0.1ms)[0m SELECT "simple_cart_deliveries".* FROM "simple_cart_deliveries" WHERE "simple_cart_deliveries"."id" = ? LIMIT 1 [["id", 9]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1[0m [["id", "12"]]
[1m[35mCACHE (0.0ms)[0m SELECT "simple_cart_deliveries".* FROM "simple_cart_deliveries" WHERE "simple_cart_deliveries"."id" = ? LIMIT 1 [["id", 9]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1[0m [["id", "12"]]
[1m[35mCACHE (0.0ms)[0m SELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1 [["id", "12"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "simple_cart_deliveries".* FROM "simple_cart_deliveries" WHERE "simple_cart_deliveries"."id" = ? LIMIT 1[0m [["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
[1m[35mKk Load (0.2ms)[0m 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
[1m[36mKk Load (0.1ms)[0m [1mSELECT "kks".* FROM "kks"[0m
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"}
[1m[35mKk Load (0.2ms)[0m 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
[1m[36mKk Load (0.2ms)[0m [1mSELECT "kks".* FROM "kks" WHERE "kks"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mCACHE (0.0ms)[0m 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=="}
[1m[36mKk Load (0.1ms)[0m [1mSELECT "kks".* FROM "kks" WHERE "kks"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mCACHE (0.0ms)[0m SELECT "kks".* FROM "kks" WHERE "kks"."id" = ? LIMIT 1 [["id", "1"]]
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
[1m[35mSQL (0.2ms)[0m 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"]]
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "simple_cart_order_items" ("price", "qty", "itemable_id", "itemable_type", "order_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["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"]]
[1m[35m (348.2ms)[0m 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"}
[1m[36mSimpleCart::Order Load (0.2ms)[0m [1mSELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1[0m [["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"}
[1m[35mSimpleCart::Order Load (0.1ms)[0m SELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1 [["id", 13]]
[1m[36mSimpleCart::BillingAddress Load (0.1ms)[0m [1mSELECT "simple_cart_addresses".* FROM "simple_cart_addresses" WHERE "simple_cart_addresses"."type" IN ('SimpleCart::BillingAddress') AND "simple_cart_addresses"."order_id" = ? LIMIT 1[0m [["order_id", 13]]
[1m[35mSimpleCart::ShippingAddress Load (0.1ms)[0m 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]]
[1m[36mSimpleCart::CreditCard Load (0.1ms)[0m [1mSELECT "simple_cart_credit_cards".* FROM "simple_cart_credit_cards" WHERE "simple_cart_credit_cards"."order_id" = ? LIMIT 1[0m [["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)
[1m[35mCACHE (0.0ms)[0m SELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1 [["id", "13"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1[0m [["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"}
[1m[35mSimpleCart::Order Load (0.1ms)[0m SELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1 [["id", 13]]
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
[1m[35mSimpleCart::BillingAddress Load (0.0ms)[0m 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]]
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "simple_cart_addresses" ("type", "firstname", "lastname", "address", "zipcode", "city", "phone", "country", "order_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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"]]
[1m[35m (76.7ms)[0m commit transaction
[1m[36mSimpleCart::ShippingAddress Load (0.1ms)[0m [1mSELECT "simple_cart_addresses".* FROM "simple_cart_addresses" WHERE "simple_cart_addresses"."type" IN ('SimpleCart::ShippingAddress') AND "simple_cart_addresses"."order_id" = ? LIMIT 1[0m [["order_id", 13]]
[1m[35m (0.1ms)[0m begin transaction
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "simple_cart_addresses" ("type", "order_id", "address", "zipcode", "city", "phone", "country", "created_at", "updated_at", "firstname", "lastname") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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"]]
[1m[35m (256.8ms)[0m 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"}
[1m[36mSimpleCart::Order Load (0.1ms)[0m [1mSELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1[0m [["id", 13]]
[1m[35mSimpleCart::ShippingAddress Load (0.2ms)[0m 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]]
[1m[36mSimpleCart::BillingAddress Load (0.4ms)[0m [1mSELECT "simple_cart_addresses".* FROM "simple_cart_addresses" WHERE "simple_cart_addresses"."type" IN ('SimpleCart::BillingAddress') AND "simple_cart_addresses"."order_id" = ? LIMIT 1[0m [["order_id", 13]]
[1m[35mSimpleCart::CreditCard Load (0.1ms)[0m 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)
[1m[36mSimpleCart::Delivery Load (0.1ms)[0m [1mSELECT "simple_cart_deliveries".* FROM "simple_cart_deliveries"[0m
[1m[35mSimpleCart::Delivery Load (0.1ms)[0m SELECT "simple_cart_deliveries".* FROM "simple_cart_deliveries" ORDER BY "simple_cart_deliveries"."id" ASC LIMIT 1
[1m[36mCACHE (0.0ms)[0m [1mSELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1[0m [["id", "13"]]
[1m[35mCACHE (0.0ms)[0m 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"}
[1m[36mSimpleCart::Order Load (0.2ms)[0m [1mSELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1[0m [["id", 13]]
[1m[35mSimpleCart::Delivery Load (0.2ms)[0m SELECT "simple_cart_deliveries".* FROM "simple_cart_deliveries" WHERE "simple_cart_deliveries"."id" = ? LIMIT 1 [["id", 9]]
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
[1m[35mSQL (0.2ms)[0m 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]]
[1m[36m (252.6ms)[0m [1mcommit transaction[0m
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"}
[1m[35mSimpleCart::Order Load (0.1ms)[0m SELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1 [["id", 13]]
[1m[36mSimpleCart::Delivery Load (0.1ms)[0m [1mSELECT "simple_cart_deliveries".* FROM "simple_cart_deliveries" WHERE "simple_cart_deliveries"."id" = ? LIMIT 1[0m [["id", 9]]
[1m[35mSimpleCart::BillingAddress Load (0.1ms)[0m 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]]
[1m[36mSimpleCart::ShippingAddress Load (0.1ms)[0m [1mSELECT "simple_cart_addresses".* FROM "simple_cart_addresses" WHERE "simple_cart_addresses"."type" IN ('SimpleCart::ShippingAddress') AND "simple_cart_addresses"."order_id" = ? LIMIT 1[0m [["order_id", 13]]
[1m[35mSimpleCart::CreditCard Load (0.0ms)[0m 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"}
[1m[36mSimpleCart::Order Load (0.1ms)[0m [1mSELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1[0m [["id", 13]]
[1m[35mSimpleCart::ShippingAddress Load (0.1ms)[0m 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]]
[1m[36mSimpleCart::BillingAddress Load (0.1ms)[0m [1mSELECT "simple_cart_addresses".* FROM "simple_cart_addresses" WHERE "simple_cart_addresses"."type" IN ('SimpleCart::BillingAddress') AND "simple_cart_addresses"."order_id" = ? LIMIT 1[0m [["order_id", 13]]
[1m[35mSimpleCart::CreditCard Load (0.1ms)[0m 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)
[1m[36mSimpleCart::Delivery Load (0.1ms)[0m [1mSELECT "simple_cart_deliveries".* FROM "simple_cart_deliveries"[0m
[1m[35mSimpleCart::Delivery Load (0.1ms)[0m SELECT "simple_cart_deliveries".* FROM "simple_cart_deliveries" ORDER BY "simple_cart_deliveries"."id" ASC LIMIT 1
[1m[36mCACHE (0.0ms)[0m [1mSELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1[0m [["id", "13"]]
[1m[35mCACHE (0.0ms)[0m SELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1 [["id", "13"]]
[1m[36mSimpleCart::Delivery Load (0.1ms)[0m [1mSELECT "simple_cart_deliveries".* FROM "simple_cart_deliveries" WHERE "simple_cart_deliveries"."id" = ? LIMIT 1[0m [["id", 9]]
[1m[35mCACHE (0.0ms)[0m SELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1 [["id", "13"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "simple_cart_deliveries".* FROM "simple_cart_deliveries" WHERE "simple_cart_deliveries"."id" = ? LIMIT 1[0m [["id", 9]]
[1m[35mCACHE (0.0ms)[0m SELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1 [["id", "13"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1[0m [["id", "13"]]
[1m[35mCACHE (0.0ms)[0m 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"}
[1m[36mSimpleCart::Order Load (0.1ms)[0m [1mSELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1[0m [["id", 13]]
[1m[35mSimpleCart::Delivery Load (0.1ms)[0m SELECT "simple_cart_deliveries".* FROM "simple_cart_deliveries" WHERE "simple_cart_deliveries"."id" = ? LIMIT 1 [["id", 9]]
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
[1m[35m (0.1ms)[0m 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"}
[1m[36mSimpleCart::Order Load (0.1ms)[0m [1mSELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1[0m [["id", 13]]
[1m[35mSimpleCart::Delivery Load (0.0ms)[0m SELECT "simple_cart_deliveries".* FROM "simple_cart_deliveries" WHERE "simple_cart_deliveries"."id" = ? LIMIT 1 [["id", 9]]
[1m[36mSimpleCart::BillingAddress Load (0.1ms)[0m [1mSELECT "simple_cart_addresses".* FROM "simple_cart_addresses" WHERE "simple_cart_addresses"."type" IN ('SimpleCart::BillingAddress') AND "simple_cart_addresses"."order_id" = ? LIMIT 1[0m [["order_id", 13]]
[1m[35mSimpleCart::ShippingAddress Load (0.2ms)[0m 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]]
[1m[36mSimpleCart::CreditCard Load (0.1ms)[0m [1mSELECT "simple_cart_credit_cards".* FROM "simple_cart_credit_cards" WHERE "simple_cart_credit_cards"."order_id" = ? LIMIT 1[0m [["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"}
[1m[35mSimpleCart::Order Load (0.1ms)[0m SELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1 [["id", 13]]
[1m[36mSimpleCart::ShippingAddress Load (0.1ms)[0m [1mSELECT "simple_cart_addresses".* FROM "simple_cart_addresses" WHERE "simple_cart_addresses"."type" IN ('SimpleCart::ShippingAddress') AND "simple_cart_addresses"."order_id" = ? LIMIT 1[0m [["order_id", 13]]
[1m[35mSimpleCart::BillingAddress Load (0.1ms)[0m 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]]
[1m[36mSimpleCart::CreditCard Load (0.1ms)[0m [1mSELECT "simple_cart_credit_cards".* FROM "simple_cart_credit_cards" WHERE "simple_cart_credit_cards"."order_id" = ? LIMIT 1[0m [["order_id", 13]]
Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/_progress.html.haml (1.0ms)
[1m[35mSimpleCart::Delivery Load (0.1ms)[0m SELECT "simple_cart_deliveries".* FROM "simple_cart_deliveries"
[1m[36mSimpleCart::Delivery Load (0.1ms)[0m [1mSELECT "simple_cart_deliveries".* FROM "simple_cart_deliveries" ORDER BY "simple_cart_deliveries"."id" ASC LIMIT 1[0m
[1m[35mCACHE (0.0ms)[0m SELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1 [["id", "13"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1[0m [["id", "13"]]
[1m[35mSimpleCart::Delivery Load (0.1ms)[0m SELECT "simple_cart_deliveries".* FROM "simple_cart_deliveries" WHERE "simple_cart_deliveries"."id" = ? LIMIT 1 [["id", 9]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1[0m [["id", "13"]]
[1m[35mCACHE (0.0ms)[0m SELECT "simple_cart_deliveries".* FROM "simple_cart_deliveries" WHERE "simple_cart_deliveries"."id" = ? LIMIT 1 [["id", 9]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1[0m [["id", "13"]]
[1m[35mCACHE (0.0ms)[0m SELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1 [["id", "13"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "simple_cart_deliveries".* FROM "simple_cart_deliveries" WHERE "simple_cart_deliveries"."id" = ? LIMIT 1[0m [["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"}
[1m[35mSimpleCart::Order Load (0.1ms)[0m SELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1 [["id", 13]]
[1m[36mSimpleCart::BillingAddress Load (0.1ms)[0m [1mSELECT "simple_cart_addresses".* FROM "simple_cart_addresses" WHERE "simple_cart_addresses"."type" IN ('SimpleCart::BillingAddress') AND "simple_cart_addresses"."order_id" = ? LIMIT 1[0m [["order_id", 13]]
[1m[35mSimpleCart::ShippingAddress Load (0.1ms)[0m 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]]
[1m[36mSimpleCart::CreditCard Load (0.0ms)[0m [1mSELECT "simple_cart_credit_cards".* FROM "simple_cart_credit_cards" WHERE "simple_cart_credit_cards"."order_id" = ? LIMIT 1[0m [["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)
[1m[35mCACHE (0.0ms)[0m SELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1 [["id", "13"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1[0m [["id", "13"]]
[1m[35mSimpleCart::Delivery Load (0.1ms)[0m SELECT "simple_cart_deliveries".* FROM "simple_cart_deliveries" WHERE "simple_cart_deliveries"."id" = ? LIMIT 1 [["id", 9]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1[0m [["id", "13"]]
[1m[35mCACHE (0.0ms)[0m SELECT "simple_cart_deliveries".* FROM "simple_cart_deliveries" WHERE "simple_cart_deliveries"."id" = ? LIMIT 1 [["id", 9]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1[0m [["id", "13"]]
[1m[35mCACHE (0.0ms)[0m SELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1 [["id", "13"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "simple_cart_deliveries".* FROM "simple_cart_deliveries" WHERE "simple_cart_deliveries"."id" = ? LIMIT 1[0m [["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"}
[1m[35mSimpleCart::Order Load (0.1ms)[0m SELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1 [["id", 13]]
[1m[36mSimpleCart::ShippingAddress Load (0.1ms)[0m [1mSELECT "simple_cart_addresses".* FROM "simple_cart_addresses" WHERE "simple_cart_addresses"."type" IN ('SimpleCart::ShippingAddress') AND "simple_cart_addresses"."order_id" = ? LIMIT 1[0m [["order_id", 13]]
[1m[35mSimpleCart::BillingAddress Load (0.1ms)[0m 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]]
[1m[36mSimpleCart::CreditCard Load (0.1ms)[0m [1mSELECT "simple_cart_credit_cards".* FROM "simple_cart_credit_cards" WHERE "simple_cart_credit_cards"."order_id" = ? LIMIT 1[0m [["order_id", 13]]
Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/_progress.html.haml (1.2ms)
[1m[35mSimpleCart::Delivery Load (0.2ms)[0m SELECT "simple_cart_deliveries".* FROM "simple_cart_deliveries"
[1m[36mSimpleCart::Delivery Load (0.1ms)[0m [1mSELECT "simple_cart_deliveries".* FROM "simple_cart_deliveries" ORDER BY "simple_cart_deliveries"."id" ASC LIMIT 1[0m
[1m[35mCACHE (0.0ms)[0m SELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1 [["id", "13"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1[0m [["id", "13"]]
[1m[35mSimpleCart::Delivery Load (0.1ms)[0m SELECT "simple_cart_deliveries".* FROM "simple_cart_deliveries" WHERE "simple_cart_deliveries"."id" = ? LIMIT 1 [["id", 9]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1[0m [["id", "13"]]
[1m[35mCACHE (0.0ms)[0m SELECT "simple_cart_deliveries".* FROM "simple_cart_deliveries" WHERE "simple_cart_deliveries"."id" = ? LIMIT 1 [["id", 9]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1[0m [["id", "13"]]
[1m[35mCACHE (0.0ms)[0m SELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1 [["id", "13"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "simple_cart_deliveries".* FROM "simple_cart_deliveries" WHERE "simple_cart_deliveries"."id" = ? LIMIT 1[0m [["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"}
[1m[35mSimpleCart::Order Load (0.1ms)[0m SELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1 [["id", 13]]
[1m[36mSimpleCart::Delivery Load (0.1ms)[0m [1mSELECT "simple_cart_deliveries".* FROM "simple_cart_deliveries" WHERE "simple_cart_deliveries"."id" = ? LIMIT 1[0m [["id", 9]]
[1m[35mSimpleCart::BillingAddress Load (0.1ms)[0m 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]]
[1m[36mSimpleCart::ShippingAddress Load (0.1ms)[0m [1mSELECT "simple_cart_addresses".* FROM "simple_cart_addresses" WHERE "simple_cart_addresses"."type" IN ('SimpleCart::ShippingAddress') AND "simple_cart_addresses"."order_id" = ? LIMIT 1[0m [["order_id", 13]]
[1m[35mSimpleCart::CreditCard Load (0.1ms)[0m 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"}
[1m[36mSimpleCart::Order Load (0.1ms)[0m [1mSELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1[0m [["id", 13]]
[1m[35mSimpleCart::ShippingAddress Load (0.1ms)[0m 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]]
[1m[36mSimpleCart::BillingAddress Load (0.1ms)[0m [1mSELECT "simple_cart_addresses".* FROM "simple_cart_addresses" WHERE "simple_cart_addresses"."type" IN ('SimpleCart::BillingAddress') AND "simple_cart_addresses"."order_id" = ? LIMIT 1[0m [["order_id", 13]]
[1m[35mSimpleCart::CreditCard Load (0.1ms)[0m 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)
[1m[36mSimpleCart::Delivery Load (0.1ms)[0m [1mSELECT "simple_cart_deliveries".* FROM "simple_cart_deliveries"[0m
[1m[35mSimpleCart::Delivery Load (0.1ms)[0m SELECT "simple_cart_deliveries".* FROM "simple_cart_deliveries" ORDER BY "simple_cart_deliveries"."id" ASC LIMIT 1
[1m[36mCACHE (0.0ms)[0m [1mSELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1[0m [["id", "13"]]
[1m[35mCACHE (0.0ms)[0m SELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1 [["id", "13"]]
[1m[36mSimpleCart::Delivery Load (0.1ms)[0m [1mSELECT "simple_cart_deliveries".* FROM "simple_cart_deliveries" WHERE "simple_cart_deliveries"."id" = ? LIMIT 1[0m [["id", 9]]
[1m[35mCACHE (0.0ms)[0m SELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1 [["id", "13"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "simple_cart_deliveries".* FROM "simple_cart_deliveries" WHERE "simple_cart_deliveries"."id" = ? LIMIT 1[0m [["id", 9]]
[1m[35mCACHE (0.0ms)[0m SELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1 [["id", "13"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1[0m [["id", "13"]]
[1m[35mCACHE (0.0ms)[0m 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"}
[1m[36mSimpleCart::Order Load (0.1ms)[0m [1mSELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1[0m [["id", 13]]
[1m[35mSimpleCart::Delivery Load (0.1ms)[0m SELECT "simple_cart_deliveries".* FROM "simple_cart_deliveries" WHERE "simple_cart_deliveries"."id" = ? LIMIT 1 [["id", 9]]
[1m[36mSimpleCart::BillingAddress Load (0.1ms)[0m [1mSELECT "simple_cart_addresses".* FROM "simple_cart_addresses" WHERE "simple_cart_addresses"."type" IN ('SimpleCart::BillingAddress') AND "simple_cart_addresses"."order_id" = ? LIMIT 1[0m [["order_id", 13]]
[1m[35mSimpleCart::ShippingAddress Load (0.1ms)[0m 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]]
[1m[36mSimpleCart::CreditCard Load (0.1ms)[0m [1mSELECT "simple_cart_credit_cards".* FROM "simple_cart_credit_cards" WHERE "simple_cart_credit_cards"."order_id" = ? LIMIT 1[0m [["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"}
[1m[35mSimpleCart::Order Load (0.2ms)[0m SELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1 [["id", 13]]
[1m[36mSimpleCart::Delivery Load (0.1ms)[0m [1mSELECT "simple_cart_deliveries".* FROM "simple_cart_deliveries" WHERE "simple_cart_deliveries"."id" = ? LIMIT 1[0m [["id", 9]]
[1m[35mSimpleCart::BillingAddress Load (0.1ms)[0m 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]]
[1m[36mSimpleCart::ShippingAddress Load (0.1ms)[0m [1mSELECT "simple_cart_addresses".* FROM "simple_cart_addresses" WHERE "simple_cart_addresses"."type" IN ('SimpleCart::ShippingAddress') AND "simple_cart_addresses"."order_id" = ? LIMIT 1[0m [["order_id", 13]]
[1m[35mSimpleCart::CreditCard Load (0.1ms)[0m 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)
[1m[36mCACHE (0.0ms)[0m [1mSELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1[0m [["id", "13"]]
[1m[35mCACHE (0.9ms)[0m SELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1 [["id", "13"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "simple_cart_deliveries".* FROM "simple_cart_deliveries" WHERE "simple_cart_deliveries"."id" = ? LIMIT 1[0m [["id", 9]]
[1m[35mCACHE (0.0ms)[0m SELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1 [["id", "13"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "simple_cart_deliveries".* FROM "simple_cart_deliveries" WHERE "simple_cart_deliveries"."id" = ? LIMIT 1[0m [["id", 9]]
[1m[35mCACHE (0.0ms)[0m SELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1 [["id", "13"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1[0m [["id", "13"]]
[1m[35mCACHE (0.0ms)[0m 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"}
[1m[36mSimpleCart::Order Load (0.2ms)[0m [1mSELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1[0m [["id", 13]]
[1m[35m (0.1ms)[0m begin transaction
[1m[36mSimpleCart::CreditCard Load (0.1ms)[0m [1mSELECT "simple_cart_credit_cards".* FROM "simple_cart_credit_cards" WHERE "simple_cart_credit_cards"."order_id" = ? LIMIT 1[0m [["order_id", 13]]
[1m[35mSQL (0.3ms)[0m 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"]]
[1m[36m (82.0ms)[0m [1mcommit transaction[0m
[1m[35m (0.1ms)[0m begin transaction
[1m[36m (0.1ms)[0m [1mcommit transaction[0m
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"}
[1m[35mSimpleCart::Order Load (0.1ms)[0m SELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1 [["id", 13]]
[1m[36mSimpleCart::CreditCard Load (0.1ms)[0m [1mSELECT "simple_cart_credit_cards".* FROM "simple_cart_credit_cards" WHERE "simple_cart_credit_cards"."order_id" = ? LIMIT 1[0m [["order_id", 13]]
[1m[35mSimpleCart::BillingAddress Load (0.1ms)[0m 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]]
[1m[36mSimpleCart::ShippingAddress Load (0.1ms)[0m [1mSELECT "simple_cart_addresses".* FROM "simple_cart_addresses" WHERE "simple_cart_addresses"."type" IN ('SimpleCart::ShippingAddress') AND "simple_cart_addresses"."order_id" = ? LIMIT 1[0m [["order_id", 13]]
Rendered /home/leksster/Ruby/RubyGarage/Amazon/simple_cart/app/views/simple_cart/checkout/_progress.html.haml (1.0ms)
[1m[35mSimpleCart::Delivery Load (0.1ms)[0m 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)
[1m[36mSimpleCart::OrderItem Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "simple_cart_order_items" WHERE "simple_cart_order_items"."order_id" = ? LIMIT 1[0m [["order_id", "13"]]
[1m[35mSimpleCart::OrderItem Load (0.2ms)[0m SELECT "simple_cart_order_items".* FROM "simple_cart_order_items" WHERE "simple_cart_order_items"."order_id" = ? [["order_id", "13"]]
[1m[36mKk Load (0.1ms)[0m [1mSELECT "kks".* FROM "kks" WHERE "kks"."id" = ? LIMIT 1[0m [["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"}
[1m[35mSimpleCart::Order Load (0.1ms)[0m SELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1 [["id", 13]]
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
[1m[35mSQL (0.2ms)[0m 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]]
[1m[36m (128.5ms)[0m [1mcommit transaction[0m
[1m[35mSimpleCart::Delivery Load (0.1ms)[0m SELECT "simple_cart_deliveries".* FROM "simple_cart_deliveries" WHERE "simple_cart_deliveries"."id" = ? LIMIT 1 [["id", 9]]
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
[1m[35mSQL (0.2ms)[0m 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]]
[1m[36m (66.8ms)[0m [1mcommit transaction[0m
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"}
[1m[35mSimpleCart::Order Load (0.1ms)[0m SELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1 [["id", 13]]
[1m[36mSimpleCart::BillingAddress Load (0.2ms)[0m [1mSELECT "simple_cart_addresses".* FROM "simple_cart_addresses" WHERE "simple_cart_addresses"."type" IN ('SimpleCart::BillingAddress') AND "simple_cart_addresses"."order_id" = ? LIMIT 1[0m [["order_id", 13]]
[1m[35mSimpleCart::ShippingAddress Load (0.1ms)[0m 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]]
[1m[36mSimpleCart::Delivery Load (0.1ms)[0m [1mSELECT "simple_cart_deliveries".* FROM "simple_cart_deliveries" WHERE "simple_cart_deliveries"."id" = ? LIMIT 1[0m [["id", 9]]
[1m[35mSimpleCart::CreditCard Load (0.1ms)[0m SELECT "simple_cart_credit_cards".* FROM "simple_cart_credit_cards" WHERE "simple_cart_credit_cards"."order_id" = ? LIMIT 1 [["order_id", 13]]
[1m[36mSimpleCart::OrderItem Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "simple_cart_order_items" WHERE "simple_cart_order_items"."order_id" = ? LIMIT 1[0m [["order_id", "13"]]
[1m[35mSimpleCart::OrderItem Load (0.1ms)[0m SELECT "simple_cart_order_items".* FROM "simple_cart_order_items" WHERE "simple_cart_order_items"."order_id" = ? [["order_id", "13"]]
[1m[36mKk Load (0.1ms)[0m [1mSELECT "kks".* FROM "kks" WHERE "kks"."id" = ? LIMIT 1[0m [["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
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "simple_cart_orders"
[1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "simple_cart_orders" WHERE "simple_cart_orders"."aasm_state" = ?[0m [["aasm_state", "in_progress"]]
[1m[35mSimpleCart::Order Load (0.3ms)[0m 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"]]
[1m[36mSimpleCart::OrderItem Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "simple_cart_order_items" WHERE "simple_cart_order_items"."order_id" = ? LIMIT 1[0m [["order_id", "12"]]
[1m[35mSimpleCart::OrderItem Exists (0.1ms)[0m SELECT 1 AS one FROM "simple_cart_order_items" WHERE "simple_cart_order_items"."order_id" = ? LIMIT 1 [["order_id", "11"]]
[1m[36mSimpleCart::OrderItem Load (0.1ms)[0m [1mSELECT "simple_cart_order_items".* FROM "simple_cart_order_items" WHERE "simple_cart_order_items"."order_id" = ?[0m [["order_id", "11"]]
[1m[35mThing Load (0.1ms)[0m SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]]
[1m[36mThing Load (0.1ms)[0m [1mSELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mKk Load (0.0ms)[0m SELECT "kks".* FROM "kks" WHERE "kks"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mSimpleCart::OrderItem Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "simple_cart_order_items" WHERE "simple_cart_order_items"."order_id" = ? LIMIT 1[0m [["order_id", "10"]]
[1m[35mSimpleCart::OrderItem Load (0.1ms)[0m SELECT "simple_cart_order_items".* FROM "simple_cart_order_items" WHERE "simple_cart_order_items"."order_id" = ? [["order_id", "10"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mSimpleCart::OrderItem Exists (0.1ms)[0m SELECT 1 AS one FROM "simple_cart_order_items" WHERE "simple_cart_order_items"."order_id" = ? LIMIT 1 [["order_id", "8"]]
[1m[36mSimpleCart::OrderItem Load (0.0ms)[0m [1mSELECT "simple_cart_order_items".* FROM "simple_cart_order_items" WHERE "simple_cart_order_items"."order_id" = ?[0m [["order_id", "8"]]
[1m[35mCACHE (0.0ms)[0m SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]]
[1m[36mSimpleCart::OrderItem Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "simple_cart_order_items" WHERE "simple_cart_order_items"."order_id" = ? LIMIT 1[0m [["order_id", "7"]]
[1m[35mSimpleCart::OrderItem Load (0.0ms)[0m SELECT "simple_cart_order_items".* FROM "simple_cart_order_items" WHERE "simple_cart_order_items"."order_id" = ? [["order_id", "7"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mSimpleCart::OrderItem Exists (0.1ms)[0m SELECT 1 AS one FROM "simple_cart_order_items" WHERE "simple_cart_order_items"."order_id" = ? LIMIT 1 [["order_id", "4"]]
[1m[36mSimpleCart::OrderItem Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "simple_cart_order_items" WHERE "simple_cart_order_items"."order_id" = ? LIMIT 1[0m [["order_id", "3"]]
[1m[35mSimpleCart::OrderItem Load (0.1ms)[0m SELECT "simple_cart_order_items".* FROM "simple_cart_order_items" WHERE "simple_cart_order_items"."order_id" = ? [["order_id", "3"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "simple_cart_orders" WHERE "simple_cart_orders"."aasm_state" = ? [["aasm_state", "in_queue"]]
[1m[36mSimpleCart::Order Load (0.1ms)[0m [1mSELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."aasm_state" = ? ORDER BY "simple_cart_orders"."id" DESC[0m [["aasm_state", "in_queue"]]
[1m[35m (0.1ms)[0m 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"}
[1m[36mSimpleCart::Order Load (0.1ms)[0m [1mSELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1[0m [["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"}
[1m[35mSimpleCart::Order Load (0.1ms)[0m SELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1 [["id", 11]]
[1m[36mSimpleCart::BillingAddress Load (0.1ms)[0m [1mSELECT "simple_cart_addresses".* FROM "simple_cart_addresses" WHERE "simple_cart_addresses"."type" IN ('SimpleCart::BillingAddress') AND "simple_cart_addresses"."order_id" = ? LIMIT 1[0m [["order_id", 11]]
[1m[35mSimpleCart::ShippingAddress Load (0.1ms)[0m 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]]
[1m[36mSimpleCart::CreditCard Load (0.1ms)[0m [1mSELECT "simple_cart_credit_cards".* FROM "simple_cart_credit_cards" WHERE "simple_cart_credit_cards"."order_id" = ? LIMIT 1[0m [["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)
[1m[35mCACHE (0.0ms)[0m SELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1 [["id", "11"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1[0m [["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"}
[1m[35mSimpleCart::Order Load (0.1ms)[0m SELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1 [["id", 11]]
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
[1m[35mSimpleCart::BillingAddress Load (0.1ms)[0m 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]]
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "simple_cart_addresses" ("type", "firstname", "lastname", "address", "zipcode", "city", "phone", "country", "order_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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"]]
[1m[35m (221.5ms)[0m commit transaction
[1m[36mSimpleCart::ShippingAddress Load (0.1ms)[0m [1mSELECT "simple_cart_addresses".* FROM "simple_cart_addresses" WHERE "simple_cart_addresses"."type" IN ('SimpleCart::ShippingAddress') AND "simple_cart_addresses"."order_id" = ? LIMIT 1[0m [["order_id", 11]]
[1m[35m (0.1ms)[0m begin transaction
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "simple_cart_addresses" ("type", "order_id", "address", "zipcode", "city", "phone", "country", "created_at", "updated_at", "firstname", "lastname") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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"]]
[1m[35m (80.0ms)[0m 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"}
[1m[36mSimpleCart::Order Load (0.2ms)[0m [1mSELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1[0m [["id", 11]]
[1m[35mSimpleCart::ShippingAddress Load (0.2ms)[0m 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]]
[1m[36mSimpleCart::BillingAddress Load (0.1ms)[0m [1mSELECT "simple_cart_addresses".* FROM "simple_cart_addresses" WHERE "simple_cart_addresses"."type" IN ('SimpleCart::BillingAddress') AND "simple_cart_addresses"."order_id" = ? LIMIT 1[0m [["order_id", 11]]
[1m[35mSimpleCart::CreditCard Load (0.1ms)[0m 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)
[1m[36mSimpleCart::Delivery Load (0.1ms)[0m [1mSELECT "simple_cart_deliveries".* FROM "simple_cart_deliveries"[0m
[1m[35mSimpleCart::Delivery Load (0.1ms)[0m SELECT "simple_cart_deliveries".* FROM "simple_cart_deliveries" ORDER BY "simple_cart_deliveries"."id" ASC LIMIT 1
[1m[36mCACHE (0.0ms)[0m [1mSELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1[0m [["id", "11"]]
[1m[35mCACHE (0.0ms)[0m 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"}
[1m[36mSimpleCart::Order Load (0.1ms)[0m [1mSELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1[0m [["id", 11]]
[1m[35mSimpleCart::ShippingAddress Load (0.2ms)[0m 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]]
[1m[36mSimpleCart::BillingAddress Load (0.3ms)[0m [1mSELECT "simple_cart_addresses".* FROM "simple_cart_addresses" WHERE "simple_cart_addresses"."type" IN ('SimpleCart::BillingAddress') AND "simple_cart_addresses"."order_id" = ? LIMIT 1[0m [["order_id", 11]]
[1m[35mSimpleCart::CreditCard Load (0.1ms)[0m 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)
[1m[36mSimpleCart::Delivery Load (0.2ms)[0m [1mSELECT "simple_cart_deliveries".* FROM "simple_cart_deliveries"[0m
[1m[35mSimpleCart::Delivery Load (0.2ms)[0m SELECT "simple_cart_deliveries".* FROM "simple_cart_deliveries" ORDER BY "simple_cart_deliveries"."id" ASC LIMIT 1
[1m[36mCACHE (0.0ms)[0m [1mSELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1[0m [["id", "11"]]
[1m[35mCACHE (0.0ms)[0m 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
[1m[36mKk Load (0.2ms)[0m [1mSELECT "kks".* FROM "kks"[0m
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
[1m[35mKk Load (0.2ms)[0m 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"}
[1m[36mKk Load (0.4ms)[0m [1mSELECT "kks".* FROM "kks" WHERE "kks"."id" = ? LIMIT 1[0m [["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
[1m[35mKk Load (0.1ms)[0m SELECT "kks".* FROM "kks" WHERE "kks"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "kks".* FROM "kks" WHERE "kks"."id" = ? LIMIT 1[0m [["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
[1m[35mKk Load (0.1ms)[0m SELECT "kks".* FROM "kks" WHERE "kks"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "kks".* FROM "kks" WHERE "kks"."id" = ? LIMIT 1[0m [["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"}
[1m[35mKk Load (0.2ms)[0m SELECT "kks".* FROM "kks" WHERE "kks"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "kks".* FROM "kks" WHERE "kks"."id" = ? LIMIT 1[0m [["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"}
[1m[35mKk Load (0.2ms)[0m SELECT "kks".* FROM "kks" WHERE "kks"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "kks".* FROM "kks" WHERE "kks"."id" = ? LIMIT 1[0m [["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
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
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
[1m[35mThing Load (0.2ms)[0m 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
[1m[36mThing Load (0.1ms)[0m [1mSELECT "things".* FROM "things"[0m
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"}
[1m[35mThing Load (0.2ms)[0m 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
[1m[36mThing Load (0.1ms)[0m [1mSELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1[0m [["id", 2]]
[1m[35mCACHE (0.0ms)[0m 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"}
[1m[36mThing Load (0.2ms)[0m [1mSELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1[0m [["id", 2]]
[1m[35mCACHE (0.0ms)[0m 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"}
[1m[36mThing Load (0.1ms)[0m [1mSELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1[0m [["id", 2]]
[1m[35mCACHE (0.0ms)[0m 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"=>""}
[1m[36mThing Load (0.1ms)[0m [1mSELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1[0m [["id", 2]]
[1m[35mCACHE (0.0ms)[0m SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", "2"]]
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
[1m[35mSQL (0.2ms)[0m 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"]]
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "simple_cart_order_items" ("price", "qty", "itemable_id", "itemable_type", "order_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["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"]]
[1m[35m (210.7ms)[0m 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"}
[1m[36mSimpleCart::Order Load (0.2ms)[0m [1mSELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1[0m [["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"}
[1m[35mSimpleCart::Order Load (0.1ms)[0m SELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1 [["id", 14]]
[1m[36mSimpleCart::BillingAddress Load (0.2ms)[0m [1mSELECT "simple_cart_addresses".* FROM "simple_cart_addresses" WHERE "simple_cart_addresses"."type" IN ('SimpleCart::BillingAddress') AND "simple_cart_addresses"."order_id" = ? LIMIT 1[0m [["order_id", 14]]
[1m[35mSimpleCart::ShippingAddress Load (0.3ms)[0m 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]]
[1m[36mSimpleCart::CreditCard Load (0.2ms)[0m [1mSELECT "simple_cart_credit_cards".* FROM "simple_cart_credit_cards" WHERE "simple_cart_credit_cards"."order_id" = ? LIMIT 1[0m [["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)
[1m[35mCACHE (0.0ms)[0m SELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1 [["id", "14"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1[0m [["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"}
[1m[35mSimpleCart::Order Load (0.1ms)[0m SELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1 [["id", 14]]
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
[1m[35mSimpleCart::BillingAddress Load (0.1ms)[0m 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]]
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
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)
[1m[35mSimpleCart::Order Load (0.1ms)[0m SELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1 [["id", 14]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1[0m [["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"}
[1m[35mSimpleCart::Order Load (0.1ms)[0m SELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1 [["id", 14]]
[1m[36mSimpleCart::BillingAddress Load (0.1ms)[0m [1mSELECT "simple_cart_addresses".* FROM "simple_cart_addresses" WHERE "simple_cart_addresses"."type" IN ('SimpleCart::BillingAddress') AND "simple_cart_addresses"."order_id" = ? LIMIT 1[0m [["order_id", 14]]
[1m[35mSimpleCart::ShippingAddress Load (0.1ms)[0m 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]]
[1m[36mSimpleCart::CreditCard Load (0.1ms)[0m [1mSELECT "simple_cart_credit_cards".* FROM "simple_cart_credit_cards" WHERE "simple_cart_credit_cards"."order_id" = ? LIMIT 1[0m [["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)
[1m[35mCACHE (0.0ms)[0m SELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1 [["id", "14"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1[0m [["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
[1m[35mThing Load (0.3ms)[0m 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
[1m[36mThing Load (0.1ms)[0m [1mSELECT "things".* FROM "things"[0m
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"}
[1m[35mThing Load (0.1ms)[0m 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
[1m[36mThing Load (0.1ms)[0m [1mSELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mCACHE (0.0ms)[0m 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
[1m[36mThing Load (0.1ms)[0m [1mSELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mCACHE (0.0ms)[0m 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
[1m[36mThing Load (0.1ms)[0m [1mSELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mCACHE (0.0ms)[0m 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
[1m[36mThing Load (0.1ms)[0m [1mSELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mCACHE (0.0ms)[0m 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
[1m[36mThing Load (0.1ms)[0m [1mSELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mCACHE (0.0ms)[0m 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
[1m[36mThing Load (0.1ms)[0m [1mSELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mCACHE (0.0ms)[0m 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
[1m[36mThing Load (0.1ms)[0m [1mSELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mCACHE (0.0ms)[0m 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
[1m[36mThing Load (0.2ms)[0m [1mSELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mCACHE (0.0ms)[0m 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
[1m[36mThing Load (0.1ms)[0m [1mSELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mCACHE (0.0ms)[0m 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
[1m[36mThing Load (0.1ms)[0m [1mSELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mCACHE (0.0ms)[0m 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
[1m[36mThing Load (0.1ms)[0m [1mSELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mCACHE (0.0ms)[0m 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=="}
[1m[36mThing Load (0.1ms)[0m [1mSELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mCACHE (0.0ms)[0m SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", "1"]]
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
[1m[35mSQL (0.2ms)[0m 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"]]
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "simple_cart_order_items" ("price", "qty", "itemable_id", "itemable_type", "order_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["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"]]
[1m[35m (62.6ms)[0m 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"}
[1m[36mSimpleCart::Order Load (0.1ms)[0m [1mSELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1[0m [["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"}
[1m[35mSimpleCart::Order Load (0.1ms)[0m SELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1 [["id", 15]]
[1m[36mSimpleCart::BillingAddress Load (0.1ms)[0m [1mSELECT "simple_cart_addresses".* FROM "simple_cart_addresses" WHERE "simple_cart_addresses"."type" IN ('SimpleCart::BillingAddress') AND "simple_cart_addresses"."order_id" = ? LIMIT 1[0m [["order_id", 15]]
[1m[35mSimpleCart::ShippingAddress Load (0.0ms)[0m 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]]
[1m[36mSimpleCart::CreditCard Load (0.1ms)[0m [1mSELECT "simple_cart_credit_cards".* FROM "simple_cart_credit_cards" WHERE "simple_cart_credit_cards"."order_id" = ? LIMIT 1[0m [["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)
[1m[35mCACHE (0.0ms)[0m SELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1 [["id", "15"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1[0m [["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"}
[1m[35mSimpleCart::Order Load (0.1ms)[0m SELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1 [["id", 15]]
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
[1m[35mSimpleCart::BillingAddress Load (0.1ms)[0m 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]]
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.1ms)[0m begin transaction
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
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)
[1m[35mSimpleCart::Order Load (0.3ms)[0m SELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1 [["id", 15]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1[0m [["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"}
[1m[35mSimpleCart::Order Load (0.1ms)[0m SELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1 [["id", 15]]
[1m[36mSimpleCart::BillingAddress Load (0.1ms)[0m [1mSELECT "simple_cart_addresses".* FROM "simple_cart_addresses" WHERE "simple_cart_addresses"."type" IN ('SimpleCart::BillingAddress') AND "simple_cart_addresses"."order_id" = ? LIMIT 1[0m [["order_id", 15]]
[1m[35mSimpleCart::ShippingAddress Load (0.1ms)[0m 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]]
[1m[36mSimpleCart::CreditCard Load (0.1ms)[0m [1mSELECT "simple_cart_credit_cards".* FROM "simple_cart_credit_cards" WHERE "simple_cart_credit_cards"."order_id" = ? LIMIT 1[0m [["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)
[1m[35mCACHE (0.0ms)[0m SELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1 [["id", "15"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1[0m [["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"}
[1m[35mThing Load (0.1ms)[0m 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
[1m[36mThing Load (0.1ms)[0m [1mSELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mCACHE (0.0ms)[0m 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
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
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
[1m[35mThing Load (0.2ms)[0m 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"}
[1m[36mThing Load (0.2ms)[0m [1mSELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1[0m [["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
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
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 #):
app/models/thing.rb:2:in `'
app/models/thing.rb:1:in `'
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)
[1m[36mThing Load (0.2ms)[0m [1mSELECT "things".* FROM "things" ORDER BY "things"."id" ASC LIMIT 1[0m
[1m[35mThing Load (0.3ms)[0m SELECT "things".* FROM "things" ORDER BY "things"."id" ASC LIMIT 1
[1m[36mSimpleCart::OrderItem Load (0.2ms)[0m [1mSELECT "simple_cart_order_items".* FROM "simple_cart_order_items" WHERE "simple_cart_order_items"."itemable_id" = ? AND "simple_cart_order_items"."itemable_type" = ?[0m [["itemable_id", 1], ["itemable_type", "Thing"]]
[1m[36mThing Load (0.2ms)[0m [1mSELECT "things".* FROM "things" ORDER BY "things"."id" ASC LIMIT 1[0m
[1m[35mSimpleCart::OrderItem Load (0.2ms)[0m 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"]]
[1m[36mThing Load (0.2ms)[0m [1mSELECT "things".* FROM "things" ORDER BY "things"."id" ASC LIMIT 1[0m
[1m[35mSimpleCart::OrderItem Load (0.2ms)[0m 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
[1m[36mActiveRecord::SchemaMigration Load (0.2ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
Processing by ThingsController#index as HTML
[1m[35mThing Load (0.2ms)[0m 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"}
[1m[36mThing Load (0.2ms)[0m [1mSELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1[0m [["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
[1m[35mThing Load (0.1ms)[0m SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1[0m [["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=="}
[1m[35mThing Load (0.1ms)[0m SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1[0m [["id", "1"]]
[1m[35m (0.1ms)[0m begin transaction
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "simple_cart_orders" ("total_price", "completed_date", "aasm_state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
[1m[35mSQL (0.1ms)[0m 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"]]
[1m[36m (217.2ms)[0m [1mcommit transaction[0m
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"}
[1m[35mSimpleCart::Order Load (0.2ms)[0m 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"}
[1m[36mSimpleCart::Order Load (0.1ms)[0m [1mSELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1[0m [["id", 16]]
[1m[35mSimpleCart::BillingAddress Load (0.2ms)[0m 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]]
[1m[36mSimpleCart::ShippingAddress Load (0.2ms)[0m [1mSELECT "simple_cart_addresses".* FROM "simple_cart_addresses" WHERE "simple_cart_addresses"."type" IN ('SimpleCart::ShippingAddress') AND "simple_cart_addresses"."order_id" = ? LIMIT 1[0m [["order_id", 16]]
[1m[35mSimpleCart::CreditCard Load (0.2ms)[0m 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)
[1m[36mCACHE (0.0ms)[0m [1mSELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1[0m [["id", "16"]]
[1m[35mCACHE (0.0ms)[0m 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"}
[1m[36mSimpleCart::Order Load (0.2ms)[0m [1mSELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1[0m [["id", 16]]
[1m[35m (0.1ms)[0m begin transaction
[1m[36mSimpleCart::BillingAddress Load (0.3ms)[0m [1mSELECT "simple_cart_addresses".* FROM "simple_cart_addresses" WHERE "simple_cart_addresses"."type" IN ('SimpleCart::BillingAddress') AND "simple_cart_addresses"."order_id" = ? LIMIT 1[0m [["order_id", 16]]
[1m[35mSQL (0.2ms)[0m 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"]]
[1m[36m (66.1ms)[0m [1mcommit transaction[0m
[1m[35mSimpleCart::ShippingAddress Load (0.2ms)[0m 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]]
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
[1m[35mSQL (0.3ms)[0m 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"]]
[1m[36m (102.1ms)[0m [1mcommit transaction[0m
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"}
[1m[35mSimpleCart::Order Load (0.1ms)[0m SELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1 [["id", 16]]
[1m[36mSimpleCart::ShippingAddress Load (0.1ms)[0m [1mSELECT "simple_cart_addresses".* FROM "simple_cart_addresses" WHERE "simple_cart_addresses"."type" IN ('SimpleCart::ShippingAddress') AND "simple_cart_addresses"."order_id" = ? LIMIT 1[0m [["order_id", 16]]
[1m[35mSimpleCart::BillingAddress Load (0.1ms)[0m 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]]
[1m[36mSimpleCart::CreditCard Load (0.1ms)[0m [1mSELECT "simple_cart_credit_cards".* FROM "simple_cart_credit_cards" WHERE "simple_cart_credit_cards"."order_id" = ? LIMIT 1[0m [["order_id", 16]]
Rendered simple_cart/checkout/_progress.html.haml (1.1ms)
[1m[35mSimpleCart::Delivery Load (0.2ms)[0m SELECT "simple_cart_deliveries".* FROM "simple_cart_deliveries"
[1m[36mSimpleCart::Delivery Load (0.2ms)[0m [1mSELECT "simple_cart_deliveries".* FROM "simple_cart_deliveries" ORDER BY "simple_cart_deliveries"."id" ASC LIMIT 1[0m
[1m[35mCACHE (0.0ms)[0m SELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1 [["id", "16"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1[0m [["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"}
[1m[35mSimpleCart::Order Load (0.1ms)[0m SELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1 [["id", 16]]
[1m[36mSimpleCart::BillingAddress Load (0.1ms)[0m [1mSELECT "simple_cart_addresses".* FROM "simple_cart_addresses" WHERE "simple_cart_addresses"."type" IN ('SimpleCart::BillingAddress') AND "simple_cart_addresses"."order_id" = ? LIMIT 1[0m [["order_id", 16]]
[1m[35mSimpleCart::ShippingAddress Load (0.1ms)[0m 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]]
[1m[36mSimpleCart::CreditCard Load (0.1ms)[0m [1mSELECT "simple_cart_credit_cards".* FROM "simple_cart_credit_cards" WHERE "simple_cart_credit_cards"."order_id" = ? LIMIT 1[0m [["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"}
[1m[35mSimpleCart::Order Load (0.1ms)[0m SELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1 [["id", 16]]
[1m[36mSimpleCart::ShippingAddress Load (0.1ms)[0m [1mSELECT "simple_cart_addresses".* FROM "simple_cart_addresses" WHERE "simple_cart_addresses"."type" IN ('SimpleCart::ShippingAddress') AND "simple_cart_addresses"."order_id" = ? LIMIT 1[0m [["order_id", 16]]
[1m[35mSimpleCart::BillingAddress Load (0.1ms)[0m 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]]
[1m[36mSimpleCart::CreditCard Load (0.0ms)[0m [1mSELECT "simple_cart_credit_cards".* FROM "simple_cart_credit_cards" WHERE "simple_cart_credit_cards"."order_id" = ? LIMIT 1[0m [["order_id", 16]]
Rendered simple_cart/checkout/_progress.html.haml (2.2ms)
[1m[35mSimpleCart::Delivery Load (0.2ms)[0m SELECT "simple_cart_deliveries".* FROM "simple_cart_deliveries"
[1m[36mSimpleCart::Delivery Load (0.1ms)[0m [1mSELECT "simple_cart_deliveries".* FROM "simple_cart_deliveries" ORDER BY "simple_cart_deliveries"."id" ASC LIMIT 1[0m
[1m[35mCACHE (0.0ms)[0m SELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1 [["id", "16"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1[0m [["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"}
[1m[35mSimpleCart::Order Load (0.1ms)[0m SELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1 [["id", 16]]
[1m[36mSimpleCart::CreditCard Load (0.1ms)[0m [1mSELECT "simple_cart_credit_cards".* FROM "simple_cart_credit_cards" WHERE "simple_cart_credit_cards"."order_id" = ? LIMIT 1[0m [["order_id", 16]]
[1m[35mSimpleCart::BillingAddress Load (0.1ms)[0m 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]]
[1m[36mSimpleCart::ShippingAddress Load (0.1ms)[0m [1mSELECT "simple_cart_addresses".* FROM "simple_cart_addresses" WHERE "simple_cart_addresses"."type" IN ('SimpleCart::ShippingAddress') AND "simple_cart_addresses"."order_id" = ? LIMIT 1[0m [["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"}
[1m[35mSimpleCart::Order Load (0.1ms)[0m SELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1 [["id", 16]]
[1m[36mSimpleCart::BillingAddress Load (0.1ms)[0m [1mSELECT "simple_cart_addresses".* FROM "simple_cart_addresses" WHERE "simple_cart_addresses"."type" IN ('SimpleCart::BillingAddress') AND "simple_cart_addresses"."order_id" = ? LIMIT 1[0m [["order_id", 16]]
[1m[35mSimpleCart::ShippingAddress Load (0.1ms)[0m 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]]
[1m[36mSimpleCart::CreditCard Load (0.1ms)[0m [1mSELECT "simple_cart_credit_cards".* FROM "simple_cart_credit_cards" WHERE "simple_cart_credit_cards"."order_id" = ? LIMIT 1[0m [["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"}
[1m[35mSimpleCart::Order Load (0.1ms)[0m SELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1 [["id", 16]]
[1m[36mSimpleCart::ShippingAddress Load (0.1ms)[0m [1mSELECT "simple_cart_addresses".* FROM "simple_cart_addresses" WHERE "simple_cart_addresses"."type" IN ('SimpleCart::ShippingAddress') AND "simple_cart_addresses"."order_id" = ? LIMIT 1[0m [["order_id", 16]]
[1m[35mSimpleCart::BillingAddress Load (0.1ms)[0m 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]]
[1m[36mSimpleCart::CreditCard Load (0.0ms)[0m [1mSELECT "simple_cart_credit_cards".* FROM "simple_cart_credit_cards" WHERE "simple_cart_credit_cards"."order_id" = ? LIMIT 1[0m [["order_id", 16]]
Rendered simple_cart/checkout/_progress.html.haml (0.8ms)
[1m[35mSimpleCart::Delivery Load (0.1ms)[0m SELECT "simple_cart_deliveries".* FROM "simple_cart_deliveries"
[1m[36mSimpleCart::Delivery Load (0.1ms)[0m [1mSELECT "simple_cart_deliveries".* FROM "simple_cart_deliveries" ORDER BY "simple_cart_deliveries"."id" ASC LIMIT 1[0m
[1m[35mCACHE (0.0ms)[0m SELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1 [["id", "16"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1[0m [["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"}
[1m[35mSimpleCart::Order Load (0.1ms)[0m SELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1 [["id", 16]]
[1m[36mSimpleCart::ShippingAddress Load (0.1ms)[0m [1mSELECT "simple_cart_addresses".* FROM "simple_cart_addresses" WHERE "simple_cart_addresses"."type" IN ('SimpleCart::ShippingAddress') AND "simple_cart_addresses"."order_id" = ? LIMIT 1[0m [["order_id", 16]]
[1m[35mSimpleCart::BillingAddress Load (0.1ms)[0m 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]]
[1m[36mSimpleCart::CreditCard Load (0.1ms)[0m [1mSELECT "simple_cart_credit_cards".* FROM "simple_cart_credit_cards" WHERE "simple_cart_credit_cards"."order_id" = ? LIMIT 1[0m [["order_id", 16]]
Rendered simple_cart/checkout/_progress.html.haml (1.3ms)
[1m[35mSimpleCart::Delivery Load (0.3ms)[0m SELECT "simple_cart_deliveries".* FROM "simple_cart_deliveries"
[1m[36mSimpleCart::Delivery Load (0.1ms)[0m [1mSELECT "simple_cart_deliveries".* FROM "simple_cart_deliveries" ORDER BY "simple_cart_deliveries"."id" ASC LIMIT 1[0m
[1m[35mCACHE (0.0ms)[0m SELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1 [["id", "16"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1[0m [["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"}
[1m[35mSimpleCart::Order Load (0.1ms)[0m SELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1 [["id", 16]]
[1m[36mSimpleCart::BillingAddress Load (0.1ms)[0m [1mSELECT "simple_cart_addresses".* FROM "simple_cart_addresses" WHERE "simple_cart_addresses"."type" IN ('SimpleCart::BillingAddress') AND "simple_cart_addresses"."order_id" = ? LIMIT 1[0m [["order_id", 16]]
[1m[35mSimpleCart::ShippingAddress Load (0.1ms)[0m 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]]
[1m[36mSimpleCart::CreditCard Load (0.0ms)[0m [1mSELECT "simple_cart_credit_cards".* FROM "simple_cart_credit_cards" WHERE "simple_cart_credit_cards"."order_id" = ? LIMIT 1[0m [["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"}
[1m[35mSimpleCart::Order Load (0.1ms)[0m SELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1 [["id", 16]]
[1m[36mSimpleCart::ShippingAddress Load (0.1ms)[0m [1mSELECT "simple_cart_addresses".* FROM "simple_cart_addresses" WHERE "simple_cart_addresses"."type" IN ('SimpleCart::ShippingAddress') AND "simple_cart_addresses"."order_id" = ? LIMIT 1[0m [["order_id", 16]]
[1m[35mSimpleCart::BillingAddress Load (0.1ms)[0m 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]]
[1m[36mSimpleCart::CreditCard Load (0.0ms)[0m [1mSELECT "simple_cart_credit_cards".* FROM "simple_cart_credit_cards" WHERE "simple_cart_credit_cards"."order_id" = ? LIMIT 1[0m [["order_id", 16]]
Rendered simple_cart/checkout/_progress.html.haml (0.8ms)
[1m[35mSimpleCart::Delivery Load (0.1ms)[0m SELECT "simple_cart_deliveries".* FROM "simple_cart_deliveries"
[1m[36mSimpleCart::Delivery Load (0.1ms)[0m [1mSELECT "simple_cart_deliveries".* FROM "simple_cart_deliveries" ORDER BY "simple_cart_deliveries"."id" ASC LIMIT 1[0m
[1m[35mCACHE (0.0ms)[0m SELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1 [["id", "16"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1[0m [["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"}
[1m[35mSimpleCart::Order Load (0.1ms)[0m SELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1 [["id", 16]]
[1m[36mSimpleCart::ShippingAddress Load (0.1ms)[0m [1mSELECT "simple_cart_addresses".* FROM "simple_cart_addresses" WHERE "simple_cart_addresses"."type" IN ('SimpleCart::ShippingAddress') AND "simple_cart_addresses"."order_id" = ? LIMIT 1[0m [["order_id", 16]]
[1m[35mSimpleCart::BillingAddress Load (0.1ms)[0m 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]]
[1m[36mSimpleCart::CreditCard Load (0.0ms)[0m [1mSELECT "simple_cart_credit_cards".* FROM "simple_cart_credit_cards" WHERE "simple_cart_credit_cards"."order_id" = ? LIMIT 1[0m [["order_id", 16]]
Rendered simple_cart/checkout/_progress.html.haml (0.9ms)
[1m[35mSimpleCart::Delivery Load (0.2ms)[0m SELECT "simple_cart_deliveries".* FROM "simple_cart_deliveries"
[1m[36mSimpleCart::Delivery Load (0.1ms)[0m [1mSELECT "simple_cart_deliveries".* FROM "simple_cart_deliveries" ORDER BY "simple_cart_deliveries"."id" ASC LIMIT 1[0m
[1m[35mCACHE (0.0ms)[0m SELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1 [["id", "16"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1[0m [["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"}
[1m[35mSimpleCart::Order Load (0.1ms)[0m SELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1 [["id", 16]]
[1m[36mSimpleCart::BillingAddress Load (0.2ms)[0m [1mSELECT "simple_cart_addresses".* FROM "simple_cart_addresses" WHERE "simple_cart_addresses"."type" IN ('SimpleCart::BillingAddress') AND "simple_cart_addresses"."order_id" = ? LIMIT 1[0m [["order_id", 16]]
[1m[35mSimpleCart::ShippingAddress Load (0.1ms)[0m 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]]
[1m[36mSimpleCart::CreditCard Load (0.1ms)[0m [1mSELECT "simple_cart_credit_cards".* FROM "simple_cart_credit_cards" WHERE "simple_cart_credit_cards"."order_id" = ? LIMIT 1[0m [["order_id", 16]]
Rendered simple_cart/checkout/_progress.html.haml (0.9ms)
Rendered simple_cart/checkout/_address.html.haml (7.7ms)
[1m[35mCACHE (0.0ms)[0m SELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1 [["id", "16"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1[0m [["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"}
[1m[35mSimpleCart::Order Load (0.1ms)[0m SELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1 [["id", 16]]
[1m[36mSimpleCart::ShippingAddress Load (0.1ms)[0m [1mSELECT "simple_cart_addresses".* FROM "simple_cart_addresses" WHERE "simple_cart_addresses"."type" IN ('SimpleCart::ShippingAddress') AND "simple_cart_addresses"."order_id" = ? LIMIT 1[0m [["order_id", 16]]
[1m[35mSimpleCart::BillingAddress Load (0.1ms)[0m 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]]
[1m[36mSimpleCart::CreditCard Load (0.1ms)[0m [1mSELECT "simple_cart_credit_cards".* FROM "simple_cart_credit_cards" WHERE "simple_cart_credit_cards"."order_id" = ? LIMIT 1[0m [["order_id", 16]]
Rendered simple_cart/checkout/_progress.html.haml (1.0ms)
[1m[35mSimpleCart::Delivery Load (0.2ms)[0m SELECT "simple_cart_deliveries".* FROM "simple_cart_deliveries"
[1m[36mSimpleCart::Delivery Load (0.2ms)[0m [1mSELECT "simple_cart_deliveries".* FROM "simple_cart_deliveries" ORDER BY "simple_cart_deliveries"."id" ASC LIMIT 1[0m
[1m[35mCACHE (0.0ms)[0m SELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1 [["id", "16"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1[0m [["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"}
[1m[35mSimpleCart::Order Load (0.1ms)[0m SELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1 [["id", 16]]
[1m[36mSimpleCart::BillingAddress Load (0.2ms)[0m [1mSELECT "simple_cart_addresses".* FROM "simple_cart_addresses" WHERE "simple_cart_addresses"."type" IN ('SimpleCart::BillingAddress') AND "simple_cart_addresses"."order_id" = ? LIMIT 1[0m [["order_id", 16]]
[1m[35mSimpleCart::ShippingAddress Load (0.1ms)[0m 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]]
[1m[36mSimpleCart::CreditCard Load (0.0ms)[0m [1mSELECT "simple_cart_credit_cards".* FROM "simple_cart_credit_cards" WHERE "simple_cart_credit_cards"."order_id" = ? LIMIT 1[0m [["order_id", 16]]
Rendered simple_cart/checkout/_progress.html.haml (1.1ms)
Rendered simple_cart/checkout/_address.html.haml (7.5ms)
[1m[35mCACHE (0.0ms)[0m SELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1 [["id", "16"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1[0m [["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"}
[1m[35mSimpleCart::Order Load (0.2ms)[0m SELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1 [["id", 16]]
Unpermitted parameter: id
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
[1m[35mSimpleCart::BillingAddress Load (0.2ms)[0m 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]]
[1m[36mSQL (0.2ms)[0m [1mDELETE FROM "simple_cart_addresses" WHERE "simple_cart_addresses"."type" IN ('SimpleCart::BillingAddress') AND "simple_cart_addresses"."id" = ?[0m [["id", 19]]
[1m[35mSQL (0.2ms)[0m 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"]]
[1m[36m (205.4ms)[0m [1mcommit transaction[0m
[1m[35m (0.1ms)[0m begin transaction
[1m[36m (0.1ms)[0m [1mcommit transaction[0m
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"}
[1m[35mSimpleCart::Order Load (0.1ms)[0m SELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1 [["id", 16]]
[1m[36mSimpleCart::BillingAddress Load (0.2ms)[0m [1mSELECT "simple_cart_addresses".* FROM "simple_cart_addresses" WHERE "simple_cart_addresses"."type" IN ('SimpleCart::BillingAddress') AND "simple_cart_addresses"."order_id" = ? LIMIT 1[0m [["order_id", 16]]
[1m[35mSimpleCart::ShippingAddress Load (0.1ms)[0m 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]]
[1m[36mSimpleCart::CreditCard Load (0.0ms)[0m [1mSELECT "simple_cart_credit_cards".* FROM "simple_cart_credit_cards" WHERE "simple_cart_credit_cards"."order_id" = ? LIMIT 1[0m [["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)
[1m[35mCACHE (0.0ms)[0m SELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1 [["id", "16"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1[0m [["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"}
[1m[35mSimpleCart::Order Load (0.1ms)[0m SELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1 [["id", 16]]
[1m[36mSimpleCart::ShippingAddress Load (0.3ms)[0m [1mSELECT "simple_cart_addresses".* FROM "simple_cart_addresses" WHERE "simple_cart_addresses"."type" IN ('SimpleCart::ShippingAddress') AND "simple_cart_addresses"."order_id" = ? LIMIT 1[0m [["order_id", 16]]
[1m[35mSimpleCart::BillingAddress Load (0.1ms)[0m 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]]
[1m[36mSimpleCart::CreditCard Load (0.1ms)[0m [1mSELECT "simple_cart_credit_cards".* FROM "simple_cart_credit_cards" WHERE "simple_cart_credit_cards"."order_id" = ? LIMIT 1[0m [["order_id", 16]]
Rendered simple_cart/checkout/_progress.html.haml (2.0ms)
[1m[35mSimpleCart::Delivery Load (0.2ms)[0m SELECT "simple_cart_deliveries".* FROM "simple_cart_deliveries"
[1m[36mSimpleCart::Delivery Load (0.2ms)[0m [1mSELECT "simple_cart_deliveries".* FROM "simple_cart_deliveries" ORDER BY "simple_cart_deliveries"."id" ASC LIMIT 1[0m
[1m[35mCACHE (0.0ms)[0m SELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1 [["id", "16"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1[0m [["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"}
[1m[35mSimpleCart::Order Load (0.1ms)[0m SELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1 [["id", 16]]
[1m[36mSimpleCart::BillingAddress Load (0.1ms)[0m [1mSELECT "simple_cart_addresses".* FROM "simple_cart_addresses" WHERE "simple_cart_addresses"."type" IN ('SimpleCart::BillingAddress') AND "simple_cart_addresses"."order_id" = ? LIMIT 1[0m [["order_id", 16]]
[1m[35mSimpleCart::ShippingAddress Load (0.1ms)[0m 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]]
[1m[36mSimpleCart::CreditCard Load (0.0ms)[0m [1mSELECT "simple_cart_credit_cards".* FROM "simple_cart_credit_cards" WHERE "simple_cart_credit_cards"."order_id" = ? LIMIT 1[0m [["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)
[1m[35mCACHE (0.0ms)[0m SELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1 [["id", "16"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1[0m [["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"}
[1m[35mSimpleCart::Order Load (0.1ms)[0m SELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1 [["id", 16]]
[1m[36mSimpleCart::ShippingAddress Load (0.1ms)[0m [1mSELECT "simple_cart_addresses".* FROM "simple_cart_addresses" WHERE "simple_cart_addresses"."type" IN ('SimpleCart::ShippingAddress') AND "simple_cart_addresses"."order_id" = ? LIMIT 1[0m [["order_id", 16]]
[1m[35mSimpleCart::BillingAddress Load (0.1ms)[0m 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]]
[1m[36mSimpleCart::CreditCard Load (0.1ms)[0m [1mSELECT "simple_cart_credit_cards".* FROM "simple_cart_credit_cards" WHERE "simple_cart_credit_cards"."order_id" = ? LIMIT 1[0m [["order_id", 16]]
Rendered simple_cart/checkout/_progress.html.haml (1.1ms)
[1m[35mSimpleCart::Delivery Load (0.2ms)[0m SELECT "simple_cart_deliveries".* FROM "simple_cart_deliveries"
[1m[36mSimpleCart::Delivery Load (0.3ms)[0m [1mSELECT "simple_cart_deliveries".* FROM "simple_cart_deliveries" ORDER BY "simple_cart_deliveries"."id" ASC LIMIT 1[0m
[1m[35mCACHE (0.0ms)[0m SELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1 [["id", "16"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1[0m [["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"}
[1m[35mSimpleCart::Order Load (0.2ms)[0m SELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1 [["id", 16]]
[1m[36mSimpleCart::BillingAddress Load (0.2ms)[0m [1mSELECT "simple_cart_addresses".* FROM "simple_cart_addresses" WHERE "simple_cart_addresses"."type" IN ('SimpleCart::BillingAddress') AND "simple_cart_addresses"."order_id" = ? LIMIT 1[0m [["order_id", 16]]
[1m[35mSimpleCart::ShippingAddress Load (0.1ms)[0m 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]]
[1m[36mSimpleCart::CreditCard Load (0.1ms)[0m [1mSELECT "simple_cart_credit_cards".* FROM "simple_cart_credit_cards" WHERE "simple_cart_credit_cards"."order_id" = ? LIMIT 1[0m [["order_id", 16]]
Rendered simple_cart/checkout/_progress.html.haml (1.8ms)
Rendered simple_cart/checkout/_address.html.haml (8.1ms)
[1m[35mCACHE (0.0ms)[0m SELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1 [["id", "16"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1[0m [["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"}
[1m[35mSimpleCart::Order Load (0.2ms)[0m SELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1 [["id", 16]]
[1m[36mSimpleCart::ShippingAddress Load (0.1ms)[0m [1mSELECT "simple_cart_addresses".* FROM "simple_cart_addresses" WHERE "simple_cart_addresses"."type" IN ('SimpleCart::ShippingAddress') AND "simple_cart_addresses"."order_id" = ? LIMIT 1[0m [["order_id", 16]]
[1m[35mSimpleCart::BillingAddress Load (0.1ms)[0m 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]]
[1m[36mSimpleCart::CreditCard Load (0.1ms)[0m [1mSELECT "simple_cart_credit_cards".* FROM "simple_cart_credit_cards" WHERE "simple_cart_credit_cards"."order_id" = ? LIMIT 1[0m [["order_id", 16]]
Rendered simple_cart/checkout/_progress.html.haml (1.1ms)
[1m[35mSimpleCart::Delivery Load (0.1ms)[0m SELECT "simple_cart_deliveries".* FROM "simple_cart_deliveries"
[1m[36mSimpleCart::Delivery Load (0.1ms)[0m [1mSELECT "simple_cart_deliveries".* FROM "simple_cart_deliveries" ORDER BY "simple_cart_deliveries"."id" ASC LIMIT 1[0m
[1m[35mCACHE (0.0ms)[0m SELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1 [["id", "16"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1[0m [["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"}
[1m[35mSimpleCart::Order Load (0.1ms)[0m SELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1 [["id", 16]]
[1m[36mSimpleCart::BillingAddress Load (0.1ms)[0m [1mSELECT "simple_cart_addresses".* FROM "simple_cart_addresses" WHERE "simple_cart_addresses"."type" IN ('SimpleCart::BillingAddress') AND "simple_cart_addresses"."order_id" = ? LIMIT 1[0m [["order_id", 16]]
[1m[35mSimpleCart::ShippingAddress Load (0.1ms)[0m 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]]
[1m[36mSimpleCart::CreditCard Load (0.0ms)[0m [1mSELECT "simple_cart_credit_cards".* FROM "simple_cart_credit_cards" WHERE "simple_cart_credit_cards"."order_id" = ? LIMIT 1[0m [["order_id", 16]]
Rendered simple_cart/checkout/_progress.html.haml (1.2ms)
Rendered simple_cart/checkout/_address.html.haml (8.4ms)
[1m[35mCACHE (0.0ms)[0m SELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1 [["id", "16"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1[0m [["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
[1m[35mThing Load (0.1ms)[0m 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"}
[1m[36mThing Load (0.1ms)[0m [1mSELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1[0m [["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
[1m[35mThing Load (0.1ms)[0m SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1[0m [["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=="}
[1m[35mThing Load (0.1ms)[0m SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1[0m [["id", "1"]]
[1m[35m (0.1ms)[0m begin transaction
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "simple_cart_orders" ("total_price", "completed_date", "aasm_state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
[1m[35mSQL (0.1ms)[0m 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"]]
[1m[36m (216.5ms)[0m [1mcommit transaction[0m
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"}
[1m[35mSimpleCart::Order Load (0.1ms)[0m 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"}
[1m[36mSimpleCart::Order Load (0.1ms)[0m [1mSELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1[0m [["id", 17]]
[1m[35mSimpleCart::BillingAddress Load (0.0ms)[0m 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]]
[1m[36mSimpleCart::ShippingAddress Load (0.1ms)[0m [1mSELECT "simple_cart_addresses".* FROM "simple_cart_addresses" WHERE "simple_cart_addresses"."type" IN ('SimpleCart::ShippingAddress') AND "simple_cart_addresses"."order_id" = ? LIMIT 1[0m [["order_id", 17]]
[1m[35mSimpleCart::CreditCard Load (0.1ms)[0m 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)
[1m[36mCACHE (0.0ms)[0m [1mSELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1[0m [["id", "17"]]
[1m[35mCACHE (0.0ms)[0m 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"}
[1m[36mSimpleCart::Order Load (0.1ms)[0m [1mSELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1[0m [["id", 17]]
[1m[35m (0.1ms)[0m begin transaction
[1m[36mSimpleCart::BillingAddress Load (0.1ms)[0m [1mSELECT "simple_cart_addresses".* FROM "simple_cart_addresses" WHERE "simple_cart_addresses"."type" IN ('SimpleCart::BillingAddress') AND "simple_cart_addresses"."order_id" = ? LIMIT 1[0m [["order_id", 17]]
[1m[35mSQL (0.2ms)[0m 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"]]
[1m[36m (278.4ms)[0m [1mcommit transaction[0m
[1m[35m (0.1ms)[0m begin transaction
[1m[36m (0.0ms)[0m [1mcommit transaction[0m
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"}
[1m[35mSimpleCart::Order Load (0.1ms)[0m SELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1 [["id", 17]]
[1m[36mSimpleCart::BillingAddress Load (0.1ms)[0m [1mSELECT "simple_cart_addresses".* FROM "simple_cart_addresses" WHERE "simple_cart_addresses"."type" IN ('SimpleCart::BillingAddress') AND "simple_cart_addresses"."order_id" = ? LIMIT 1[0m [["order_id", 17]]
[1m[35mSimpleCart::ShippingAddress Load (0.1ms)[0m 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]]
[1m[36mSimpleCart::CreditCard Load (0.1ms)[0m [1mSELECT "simple_cart_credit_cards".* FROM "simple_cart_credit_cards" WHERE "simple_cart_credit_cards"."order_id" = ? LIMIT 1[0m [["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)
[1m[35mCACHE (0.0ms)[0m SELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1 [["id", "17"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1[0m [["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"}
[1m[35mSimpleCart::Order Load (0.1ms)[0m SELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1 [["id", 17]]
[1m[36mSimpleCart::ShippingAddress Load (0.1ms)[0m [1mSELECT "simple_cart_addresses".* FROM "simple_cart_addresses" WHERE "simple_cart_addresses"."type" IN ('SimpleCart::ShippingAddress') AND "simple_cart_addresses"."order_id" = ? LIMIT 1[0m [["order_id", 17]]
[1m[35mSimpleCart::BillingAddress Load (0.1ms)[0m 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]]
[1m[36mSimpleCart::CreditCard Load (0.0ms)[0m [1mSELECT "simple_cart_credit_cards".* FROM "simple_cart_credit_cards" WHERE "simple_cart_credit_cards"."order_id" = ? LIMIT 1[0m [["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"}
[1m[35mSimpleCart::Order Load (0.1ms)[0m SELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1 [["id", 17]]
[1m[36mSimpleCart::BillingAddress Load (0.1ms)[0m [1mSELECT "simple_cart_addresses".* FROM "simple_cart_addresses" WHERE "simple_cart_addresses"."type" IN ('SimpleCart::BillingAddress') AND "simple_cart_addresses"."order_id" = ? LIMIT 1[0m [["order_id", 17]]
[1m[35mSimpleCart::ShippingAddress Load (0.1ms)[0m 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]]
[1m[36mSimpleCart::CreditCard Load (0.1ms)[0m [1mSELECT "simple_cart_credit_cards".* FROM "simple_cart_credit_cards" WHERE "simple_cart_credit_cards"."order_id" = ? LIMIT 1[0m [["order_id", 17]]
Rendered simple_cart/checkout/_progress.html.haml (0.9ms)
Rendered simple_cart/checkout/_address.html.haml (7.5ms)
[1m[35mCACHE (0.0ms)[0m SELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1 [["id", "17"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1[0m [["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"}
[1m[35mSimpleCart::Order Load (0.2ms)[0m SELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1 [["id", 17]]
[1m[36mSimpleCart::ShippingAddress Load (0.1ms)[0m [1mSELECT "simple_cart_addresses".* FROM "simple_cart_addresses" WHERE "simple_cart_addresses"."type" IN ('SimpleCart::ShippingAddress') AND "simple_cart_addresses"."order_id" = ? LIMIT 1[0m [["order_id", 17]]
[1m[35mSimpleCart::BillingAddress Load (0.1ms)[0m 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]]
[1m[36mSimpleCart::CreditCard Load (0.1ms)[0m [1mSELECT "simple_cart_credit_cards".* FROM "simple_cart_credit_cards" WHERE "simple_cart_credit_cards"."order_id" = ? LIMIT 1[0m [["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"}
[1m[35mSimpleCart::Order Load (0.1ms)[0m SELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1 [["id", 17]]
[1m[36mSimpleCart::BillingAddress Load (0.1ms)[0m [1mSELECT "simple_cart_addresses".* FROM "simple_cart_addresses" WHERE "simple_cart_addresses"."type" IN ('SimpleCart::BillingAddress') AND "simple_cart_addresses"."order_id" = ? LIMIT 1[0m [["order_id", 17]]
[1m[35mSimpleCart::ShippingAddress Load (0.1ms)[0m 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]]
[1m[36mSimpleCart::CreditCard Load (0.1ms)[0m [1mSELECT "simple_cart_credit_cards".* FROM "simple_cart_credit_cards" WHERE "simple_cart_credit_cards"."order_id" = ? LIMIT 1[0m [["order_id", 17]]
Rendered simple_cart/checkout/_progress.html.haml (0.9ms)
Rendered simple_cart/checkout/_address.html.haml (7.9ms)
[1m[35mCACHE (0.0ms)[0m SELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1 [["id", "17"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1[0m [["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"}
[1m[35mSimpleCart::Order Load (0.1ms)[0m SELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1 [["id", 17]]
[1m[36mSimpleCart::BillingAddress Load (0.1ms)[0m [1mSELECT "simple_cart_addresses".* FROM "simple_cart_addresses" WHERE "simple_cart_addresses"."type" IN ('SimpleCart::BillingAddress') AND "simple_cart_addresses"."order_id" = ? LIMIT 1[0m [["order_id", 17]]
[1m[35mSimpleCart::ShippingAddress Load (0.1ms)[0m 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]]
[1m[36mSimpleCart::CreditCard Load (0.1ms)[0m [1mSELECT "simple_cart_credit_cards".* FROM "simple_cart_credit_cards" WHERE "simple_cart_credit_cards"."order_id" = ? LIMIT 1[0m [["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"}
[1m[35mSimpleCart::Order Load (0.1ms)[0m SELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1 [["id", 17]]
[1m[36mSimpleCart::ShippingAddress Load (0.1ms)[0m [1mSELECT "simple_cart_addresses".* FROM "simple_cart_addresses" WHERE "simple_cart_addresses"."type" IN ('SimpleCart::ShippingAddress') AND "simple_cart_addresses"."order_id" = ? LIMIT 1[0m [["order_id", 17]]
[1m[35mSimpleCart::BillingAddress Load (0.1ms)[0m 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]]
[1m[36mSimpleCart::CreditCard Load (0.1ms)[0m [1mSELECT "simple_cart_credit_cards".* FROM "simple_cart_credit_cards" WHERE "simple_cart_credit_cards"."order_id" = ? LIMIT 1[0m [["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"}
[1m[35mSimpleCart::Order Load (0.1ms)[0m SELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1 [["id", 17]]
[1m[36mSimpleCart::BillingAddress Load (0.2ms)[0m [1mSELECT "simple_cart_addresses".* FROM "simple_cart_addresses" WHERE "simple_cart_addresses"."type" IN ('SimpleCart::BillingAddress') AND "simple_cart_addresses"."order_id" = ? LIMIT 1[0m [["order_id", 17]]
[1m[35mSimpleCart::ShippingAddress Load (0.1ms)[0m 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]]
[1m[36mSimpleCart::CreditCard Load (0.0ms)[0m [1mSELECT "simple_cart_credit_cards".* FROM "simple_cart_credit_cards" WHERE "simple_cart_credit_cards"."order_id" = ? LIMIT 1[0m [["order_id", 17]]
Rendered simple_cart/checkout/_progress.html.haml (0.9ms)
Rendered simple_cart/checkout/_address.html.haml (7.1ms)
[1m[35mCACHE (0.0ms)[0m SELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1 [["id", "17"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1[0m [["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"}
[1m[35mSimpleCart::Order Load (0.1ms)[0m SELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1 [["id", 17]]
[1m[36mSimpleCart::ShippingAddress Load (0.1ms)[0m [1mSELECT "simple_cart_addresses".* FROM "simple_cart_addresses" WHERE "simple_cart_addresses"."type" IN ('SimpleCart::ShippingAddress') AND "simple_cart_addresses"."order_id" = ? LIMIT 1[0m [["order_id", 17]]
[1m[35mSimpleCart::BillingAddress Load (0.1ms)[0m 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]]
[1m[36mSimpleCart::CreditCard Load (0.1ms)[0m [1mSELECT "simple_cart_credit_cards".* FROM "simple_cart_credit_cards" WHERE "simple_cart_credit_cards"."order_id" = ? LIMIT 1[0m [["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"}
[1m[35mSimpleCart::Order Load (0.1ms)[0m SELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1 [["id", 17]]
[1m[36mSimpleCart::BillingAddress Load (0.1ms)[0m [1mSELECT "simple_cart_addresses".* FROM "simple_cart_addresses" WHERE "simple_cart_addresses"."type" IN ('SimpleCart::BillingAddress') AND "simple_cart_addresses"."order_id" = ? LIMIT 1[0m [["order_id", 17]]
[1m[35mSimpleCart::ShippingAddress Load (0.1ms)[0m 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]]
[1m[36mSimpleCart::CreditCard Load (0.0ms)[0m [1mSELECT "simple_cart_credit_cards".* FROM "simple_cart_credit_cards" WHERE "simple_cart_credit_cards"."order_id" = ? LIMIT 1[0m [["order_id", 17]]
Rendered simple_cart/checkout/_progress.html.haml (0.9ms)
Rendered simple_cart/checkout/_address.html.haml (7.6ms)
[1m[35mCACHE (0.0ms)[0m SELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1 [["id", "17"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1[0m [["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"}
[1m[35mSimpleCart::Order Load (0.1ms)[0m SELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1 [["id", 17]]
[1m[36mSimpleCart::BillingAddress Load (0.1ms)[0m [1mSELECT "simple_cart_addresses".* FROM "simple_cart_addresses" WHERE "simple_cart_addresses"."type" IN ('SimpleCart::BillingAddress') AND "simple_cart_addresses"."order_id" = ? LIMIT 1[0m [["order_id", 17]]
[1m[35mSimpleCart::ShippingAddress Load (0.1ms)[0m 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]]
[1m[36mSimpleCart::CreditCard Load (0.1ms)[0m [1mSELECT "simple_cart_credit_cards".* FROM "simple_cart_credit_cards" WHERE "simple_cart_credit_cards"."order_id" = ? LIMIT 1[0m [["order_id", 17]]
Rendered simple_cart/checkout/_progress.html.haml (1.0ms)
Rendered simple_cart/checkout/_address.html.haml (7.4ms)
[1m[35mCACHE (0.0ms)[0m SELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1 [["id", "17"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1[0m [["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"}
[1m[35mSimpleCart::Order Load (0.1ms)[0m SELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1 [["id", 17]]
Unpermitted parameter: id
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
[1m[35mSimpleCart::BillingAddress Load (0.1ms)[0m 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]]
[1m[36mSQL (0.2ms)[0m [1mDELETE FROM "simple_cart_addresses" WHERE "simple_cart_addresses"."type" IN ('SimpleCart::BillingAddress') AND "simple_cart_addresses"."id" = ?[0m [["id", 22]]
[1m[35mSQL (0.2ms)[0m 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"]]
[1m[36m (78.7ms)[0m [1mcommit transaction[0m
[1m[35mSimpleCart::ShippingAddress Load (0.2ms)[0m 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]]
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
[1m[35mSQL (0.2ms)[0m 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"]]
[1m[36m (94.9ms)[0m [1mcommit transaction[0m
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"}
[1m[35mSimpleCart::Order Load (0.1ms)[0m SELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1 [["id", 17]]
[1m[36mSimpleCart::ShippingAddress Load (0.2ms)[0m [1mSELECT "simple_cart_addresses".* FROM "simple_cart_addresses" WHERE "simple_cart_addresses"."type" IN ('SimpleCart::ShippingAddress') AND "simple_cart_addresses"."order_id" = ? LIMIT 1[0m [["order_id", 17]]
[1m[35mSimpleCart::BillingAddress Load (0.1ms)[0m 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]]
[1m[36mSimpleCart::CreditCard Load (0.0ms)[0m [1mSELECT "simple_cart_credit_cards".* FROM "simple_cart_credit_cards" WHERE "simple_cart_credit_cards"."order_id" = ? LIMIT 1[0m [["order_id", 17]]
Rendered simple_cart/checkout/_progress.html.haml (1.1ms)
[1m[35mSimpleCart::Delivery Load (0.2ms)[0m SELECT "simple_cart_deliveries".* FROM "simple_cart_deliveries"
[1m[36mSimpleCart::Delivery Load (0.2ms)[0m [1mSELECT "simple_cart_deliveries".* FROM "simple_cart_deliveries" ORDER BY "simple_cart_deliveries"."id" ASC LIMIT 1[0m
[1m[35mCACHE (0.0ms)[0m SELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1 [["id", "17"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1[0m [["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"}
[1m[35mSimpleCart::Order Load (0.1ms)[0m SELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1 [["id", 17]]
[1m[36mSimpleCart::Delivery Load (0.2ms)[0m [1mSELECT "simple_cart_deliveries".* FROM "simple_cart_deliveries" WHERE "simple_cart_deliveries"."id" = ? LIMIT 1[0m [["id", 9]]
[1m[35m (0.1ms)[0m begin transaction
[1m[36mSQL (0.3ms)[0m [1mUPDATE "simple_cart_orders" SET "delivery_id" = ?, "updated_at" = ? WHERE "simple_cart_orders"."id" = ?[0m [["delivery_id", 9], ["updated_at", "2016-03-22 11:36:03.529646"], ["id", 17]]
[1m[35m (216.2ms)[0m 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"}
[1m[36mSimpleCart::Order Load (0.1ms)[0m [1mSELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1[0m [["id", 17]]
[1m[35mSimpleCart::Delivery Load (0.1ms)[0m SELECT "simple_cart_deliveries".* FROM "simple_cart_deliveries" WHERE "simple_cart_deliveries"."id" = ? LIMIT 1 [["id", 9]]
[1m[36mSimpleCart::BillingAddress Load (0.2ms)[0m [1mSELECT "simple_cart_addresses".* FROM "simple_cart_addresses" WHERE "simple_cart_addresses"."type" IN ('SimpleCart::BillingAddress') AND "simple_cart_addresses"."order_id" = ? LIMIT 1[0m [["order_id", 17]]
[1m[35mSimpleCart::ShippingAddress Load (0.2ms)[0m 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]]
[1m[36mSimpleCart::CreditCard Load (0.1ms)[0m [1mSELECT "simple_cart_credit_cards".* FROM "simple_cart_credit_cards" WHERE "simple_cart_credit_cards"."order_id" = ? LIMIT 1[0m [["order_id", 17]]
Rendered simple_cart/checkout/_progress.html.haml (1.0ms)
[1m[35mCACHE (0.0ms)[0m SELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1 [["id", "17"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1[0m [["id", "17"]]
[1m[35mCACHE (0.0ms)[0m SELECT "simple_cart_deliveries".* FROM "simple_cart_deliveries" WHERE "simple_cart_deliveries"."id" = ? LIMIT 1 [["id", 9]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1[0m [["id", "17"]]
[1m[35mCACHE (0.0ms)[0m SELECT "simple_cart_deliveries".* FROM "simple_cart_deliveries" WHERE "simple_cart_deliveries"."id" = ? LIMIT 1 [["id", 9]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1[0m [["id", "17"]]
[1m[35mCACHE (0.0ms)[0m SELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1 [["id", "17"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "simple_cart_deliveries".* FROM "simple_cart_deliveries" WHERE "simple_cart_deliveries"."id" = ? LIMIT 1[0m [["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"}
[1m[35mSimpleCart::Order Load (0.1ms)[0m SELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1 [["id", 17]]
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
[1m[35mSimpleCart::CreditCard Load (0.1ms)[0m SELECT "simple_cart_credit_cards".* FROM "simple_cart_credit_cards" WHERE "simple_cart_credit_cards"."order_id" = ? LIMIT 1 [["order_id", 17]]
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "simple_cart_credit_cards" ("number", "expiration_month", "expiration_year", "cvv", "firstname", "lastname", "order_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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"]]
[1m[35m (76.8ms)[0m commit transaction
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
[1m[35m (0.0ms)[0m 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"}
[1m[36mSimpleCart::Order Load (0.1ms)[0m [1mSELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1[0m [["id", 17]]
[1m[35mSimpleCart::CreditCard Load (0.1ms)[0m SELECT "simple_cart_credit_cards".* FROM "simple_cart_credit_cards" WHERE "simple_cart_credit_cards"."order_id" = ? LIMIT 1 [["order_id", 17]]
[1m[36mSimpleCart::BillingAddress Load (0.1ms)[0m [1mSELECT "simple_cart_addresses".* FROM "simple_cart_addresses" WHERE "simple_cart_addresses"."type" IN ('SimpleCart::BillingAddress') AND "simple_cart_addresses"."order_id" = ? LIMIT 1[0m [["order_id", 17]]
[1m[35mSimpleCart::ShippingAddress Load (0.1ms)[0m 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)
[1m[36mSimpleCart::Delivery Load (0.1ms)[0m [1mSELECT "simple_cart_deliveries".* FROM "simple_cart_deliveries" WHERE "simple_cart_deliveries"."id" = ? LIMIT 1[0m [["id", 9]]
Rendered simple_cart/checkout/_overview.html.haml (5.1ms)
[1m[35mSimpleCart::OrderItem Exists (0.2ms)[0m SELECT 1 AS one FROM "simple_cart_order_items" WHERE "simple_cart_order_items"."order_id" = ? LIMIT 1 [["order_id", "17"]]
[1m[36mSimpleCart::OrderItem Load (0.2ms)[0m [1mSELECT "simple_cart_order_items".* FROM "simple_cart_order_items" WHERE "simple_cart_order_items"."order_id" = ?[0m [["order_id", "17"]]
[1m[35mThing Load (0.1ms)[0m 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"}
[1m[36mSimpleCart::Order Load (0.2ms)[0m [1mSELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1[0m [["id", 17]]
[1m[35m (0.2ms)[0m begin transaction
[1m[36mSQL (0.3ms)[0m [1mUPDATE "simple_cart_orders" SET "aasm_state" = ?, "updated_at" = ? WHERE "simple_cart_orders"."id" = ?[0m [["aasm_state", "in_queue"], ["updated_at", "2016-03-22 11:36:12.239813"], ["id", 17]]
[1m[35m (220.5ms)[0m commit transaction
[1m[36mSimpleCart::Delivery Load (0.1ms)[0m [1mSELECT "simple_cart_deliveries".* FROM "simple_cart_deliveries" WHERE "simple_cart_deliveries"."id" = ? LIMIT 1[0m [["id", 9]]
[1m[35m (0.1ms)[0m begin transaction
[1m[36mSQL (0.3ms)[0m [1mUPDATE "simple_cart_orders" SET "total_price" = ?, "updated_at" = ? WHERE "simple_cart_orders"."id" = ?[0m [["total_price", 52271.0], ["updated_at", "2016-03-22 11:36:12.465002"], ["id", 17]]
[1m[35m (107.1ms)[0m 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"}
[1m[36mSimpleCart::Order Load (0.1ms)[0m [1mSELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1[0m [["id", 17]]
[1m[35mSimpleCart::BillingAddress Load (0.2ms)[0m 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]]
[1m[36mSimpleCart::ShippingAddress Load (0.1ms)[0m [1mSELECT "simple_cart_addresses".* FROM "simple_cart_addresses" WHERE "simple_cart_addresses"."type" IN ('SimpleCart::ShippingAddress') AND "simple_cart_addresses"."order_id" = ? LIMIT 1[0m [["order_id", 17]]
[1m[35mSimpleCart::Delivery Load (0.1ms)[0m SELECT "simple_cart_deliveries".* FROM "simple_cart_deliveries" WHERE "simple_cart_deliveries"."id" = ? LIMIT 1 [["id", 9]]
[1m[36mSimpleCart::CreditCard Load (0.1ms)[0m [1mSELECT "simple_cart_credit_cards".* FROM "simple_cart_credit_cards" WHERE "simple_cart_credit_cards"."order_id" = ? LIMIT 1[0m [["order_id", 17]]
[1m[35mSimpleCart::OrderItem Exists (0.1ms)[0m SELECT 1 AS one FROM "simple_cart_order_items" WHERE "simple_cart_order_items"."order_id" = ? LIMIT 1 [["order_id", "17"]]
[1m[36mSimpleCart::OrderItem Load (0.1ms)[0m [1mSELECT "simple_cart_order_items".* FROM "simple_cart_order_items" WHERE "simple_cart_order_items"."order_id" = ?[0m [["order_id", "17"]]
[1m[35mThing Load (0.0ms)[0m 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
[1m[36mThing Load (0.1ms)[0m [1mSELECT "things".* FROM "things"[0m
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"}
[1m[35mThing Load (0.1ms)[0m 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
[1m[36mThing Load (0.1ms)[0m [1mSELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mCACHE (0.0ms)[0m 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
[1m[36mThing Load (0.2ms)[0m [1mSELECT "things".* FROM "things"[0m
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"}
[1m[35mThing Load (0.2ms)[0m 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
[1m[36mThing Load (0.1ms)[0m [1mSELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mCACHE (0.0ms)[0m 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=="}
[1m[36mThing Load (0.2ms)[0m [1mSELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mCACHE (0.0ms)[0m SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", "1"]]
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
[1m[35mSQL (0.3ms)[0m 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"]]
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "simple_cart_order_items" ("price", "qty", "itemable_id", "itemable_type", "order_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["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"]]
[1m[35m (72.4ms)[0m 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"}
[1m[36mSimpleCart::Order Load (0.2ms)[0m [1mSELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1[0m [["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"}
[1m[35mSimpleCart::Order Load (0.1ms)[0m SELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1 [["id", 18]]
[1m[36mSimpleCart::BillingAddress Load (0.2ms)[0m [1mSELECT "simple_cart_addresses".* FROM "simple_cart_addresses" WHERE "simple_cart_addresses"."type" IN ('SimpleCart::BillingAddress') AND "simple_cart_addresses"."order_id" = ? LIMIT 1[0m [["order_id", 18]]
[1m[35mSimpleCart::ShippingAddress Load (0.2ms)[0m 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]]
[1m[36mSimpleCart::CreditCard Load (0.2ms)[0m [1mSELECT "simple_cart_credit_cards".* FROM "simple_cart_credit_cards" WHERE "simple_cart_credit_cards"."order_id" = ? LIMIT 1[0m [["order_id", 18]]
Rendered simple_cart/checkout/_progress.html.haml (1.0ms)
Rendered simple_cart/checkout/_address.html.haml (7.6ms)
[1m[35mCACHE (0.0ms)[0m SELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1 [["id", "18"]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1[0m [["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"}
[1m[35mSimpleCart::Order Load (0.1ms)[0m SELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1 [["id", 18]]
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
[1m[35mSimpleCart::BillingAddress Load (0.0ms)[0m 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]]
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "simple_cart_addresses" ("type", "firstname", "lastname", "address", "zipcode", "city", "phone", "country", "order_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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"]]
[1m[35m (222.8ms)[0m commit transaction
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
[1m[35m (0.1ms)[0m 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"}
[1m[36mSimpleCart::Order Load (0.1ms)[0m [1mSELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1[0m [["id", 18]]
[1m[35mSimpleCart::BillingAddress Load (0.1ms)[0m 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]]
[1m[36mSimpleCart::ShippingAddress Load (0.1ms)[0m [1mSELECT "simple_cart_addresses".* FROM "simple_cart_addresses" WHERE "simple_cart_addresses"."type" IN ('SimpleCart::ShippingAddress') AND "simple_cart_addresses"."order_id" = ? LIMIT 1[0m [["order_id", 18]]
[1m[35mSimpleCart::CreditCard Load (0.1ms)[0m 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)
[1m[36mCACHE (0.0ms)[0m [1mSELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1[0m [["id", "18"]]
[1m[35mCACHE (0.0ms)[0m 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"}
[1m[36mSimpleCart::Order Load (0.1ms)[0m [1mSELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1[0m [["id", 18]]
[1m[35mSimpleCart::BillingAddress Load (0.1ms)[0m 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]]
[1m[36mSimpleCart::ShippingAddress Load (0.1ms)[0m [1mSELECT "simple_cart_addresses".* FROM "simple_cart_addresses" WHERE "simple_cart_addresses"."type" IN ('SimpleCart::ShippingAddress') AND "simple_cart_addresses"."order_id" = ? LIMIT 1[0m [["order_id", 18]]
[1m[35mSimpleCart::CreditCard Load (0.0ms)[0m 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)
[1m[36mCACHE (0.0ms)[0m [1mSELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1[0m [["id", "18"]]
[1m[35mCACHE (0.0ms)[0m 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"}
[1m[36mSimpleCart::Order Load (0.1ms)[0m [1mSELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1[0m [["id", 18]]
Unpermitted parameter: id
[1m[35m (0.1ms)[0m begin transaction
[1m[36mSimpleCart::BillingAddress Load (0.2ms)[0m [1mSELECT "simple_cart_addresses".* FROM "simple_cart_addresses" WHERE "simple_cart_addresses"."type" IN ('SimpleCart::BillingAddress') AND "simple_cart_addresses"."order_id" = ? LIMIT 1[0m [["order_id", 18]]
[1m[35mSQL (0.3ms)[0m DELETE FROM "simple_cart_addresses" WHERE "simple_cart_addresses"."type" IN ('SimpleCart::BillingAddress') AND "simple_cart_addresses"."id" = ? [["id", 25]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "simple_cart_addresses" ("type", "firstname", "lastname", "address", "zipcode", "city", "phone", "country", "order_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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"]]
[1m[35m (54.1ms)[0m commit transaction
[1m[36mSimpleCart::ShippingAddress Load (0.1ms)[0m [1mSELECT "simple_cart_addresses".* FROM "simple_cart_addresses" WHERE "simple_cart_addresses"."type" IN ('SimpleCart::ShippingAddress') AND "simple_cart_addresses"."order_id" = ? LIMIT 1[0m [["order_id", 18]]
[1m[35m (0.1ms)[0m begin transaction
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "simple_cart_addresses" ("type", "order_id", "address", "zipcode", "city", "phone", "country", "created_at", "updated_at", "firstname", "lastname") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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"]]
[1m[35m (98.5ms)[0m 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"}
[1m[36mSimpleCart::Order Load (0.1ms)[0m [1mSELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1[0m [["id", 18]]
[1m[35mSimpleCart::ShippingAddress Load (0.1ms)[0m 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]]
[1m[36mSimpleCart::BillingAddress Load (0.2ms)[0m [1mSELECT "simple_cart_addresses".* FROM "simple_cart_addresses" WHERE "simple_cart_addresses"."type" IN ('SimpleCart::BillingAddress') AND "simple_cart_addresses"."order_id" = ? LIMIT 1[0m [["order_id", 18]]
[1m[35mSimpleCart::CreditCard Load (0.1ms)[0m 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)
[1m[36mSimpleCart::Delivery Load (0.2ms)[0m [1mSELECT "simple_cart_deliveries".* FROM "simple_cart_deliveries"[0m
[1m[35mSimpleCart::Delivery Load (0.1ms)[0m SELECT "simple_cart_deliveries".* FROM "simple_cart_deliveries" ORDER BY "simple_cart_deliveries"."id" ASC LIMIT 1
[1m[36mCACHE (0.0ms)[0m [1mSELECT "simple_cart_orders".* FROM "simple_cart_orders" WHERE "simple_cart_orders"."id" = ? LIMIT 1[0m [["id", "18"]]
[1m[35mCACHE (0.0ms)[0m 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)
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
[1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
[1m[36m (0.1ms)[0m [1m 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'
[0m
[1m[35m (0.1ms)[0m 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'
[1m[36m (0.1ms)[0m [1m 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'
[0m
[1m[35m (0.1ms)[0m 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'
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
[1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
[1m[36m (0.1ms)[0m [1m 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'
[0m
[1m[35m (0.1ms)[0m 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'
[1m[36m (0.1ms)[0m [1m 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'
[0m
[1m[35m (0.1ms)[0m 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'
[1m[36mActiveRecord::SchemaMigration Load (0.2ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
Migrating to CreateSimpleCartOrderItem (20160312121928)
[1m[35m (0.1ms)[0m begin transaction
[1m[36m (0.4ms)[0m [1mDROP TABLE "simple_cart_order_items"[0m
[1m[35m (0.3ms)[0m 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)
[1m[36m (0.1ms)[0m [1mselect sqlite_version(*)[0m
[1m[35m (0.1ms)[0m CREATE INDEX "index_simple_cart_order_items_on_itemable_id" ON "simple_cart_order_items" ("itemable_id")
[1m[36m (0.1ms)[0m [1m 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'
[0m
[1m[35m (0.1ms)[0m CREATE INDEX "index_simple_cart_order_items_on_order_id" ON "simple_cart_order_items" ("order_id")
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20160312121928"]]
[1m[35m (78.0ms)[0m commit transaction
Migrating to CreateSimpleCartOrder (20160312124050)
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
[1m[35m (0.4ms)[0m DROP TABLE "simple_cart_orders"
[1m[36m (0.3ms)[0m [1mCREATE 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) [0m
[1m[35mSQL (0.1ms)[0m INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20160312124050"]]
[1m[36m (106.7ms)[0m [1mcommit transaction[0m
Migrating to CreateSimpleCartAddress (20160312142534)
[1m[35m (0.1ms)[0m begin transaction
[1m[36m (0.5ms)[0m [1mDROP TABLE "simple_cart_addresses"[0m
[1m[35m (0.4ms)[0m 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)
[1m[36m (0.2ms)[0m [1mCREATE INDEX "index_simple_cart_addresses_on_order_id" ON "simple_cart_addresses" ("order_id")[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20160312142534"]]
[1m[36m (198.5ms)[0m [1mcommit transaction[0m
Migrating to CreateSimpleCartDelivery (20160312145452)
[1m[35m (0.1ms)[0m begin transaction
[1m[36m (0.3ms)[0m [1mDROP TABLE "simple_cart_deliveries"[0m
[1m[35m (0.4ms)[0m 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)
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20160312145452"]]
[1m[35m (81.2ms)[0m commit transaction
Migrating to CreateSimpleCartCreditCard (20160312151237)
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
[1m[35m (0.3ms)[0m DROP TABLE "simple_cart_credit_cards"
[1m[36m (0.2ms)[0m [1mCREATE 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) [0m
[1m[35m (0.2ms)[0m CREATE INDEX "index_simple_cart_credit_cards_on_order_id" ON "simple_cart_credit_cards" ("order_id")
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20160312151237"]]
[1m[35m (90.3ms)[0m commit transaction
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
[1m[35m (0.1ms)[0m 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'
[1m[36m (0.1ms)[0m [1m 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'
[0m
[1m[35m (0.1ms)[0m 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'
[1m[36m (0.1ms)[0m [1m 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'
[0m
[1m[36mActiveRecord::SchemaMigration Load (0.2ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
[1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
[1m[36m (0.1ms)[0m [1m 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'
[0m
[1m[35m (0.1ms)[0m 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'
[1m[36m (0.1ms)[0m [1m 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'
[0m
[1m[35m (0.1ms)[0m 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'