spree/spree — Issue #1195: ActionController::RoutingError for images
Author: Haar
Created: 2012-02-25 23:47:59+00:00
State: open

Fresh install of Rails 3.1.3.
Running on Ruby-1.9.3-p0.

Install spree 1.0.0 gem, then rails g spree:install.

On starting a rails server, product images are not loaded (the spree logo loads fine), and general loading times are terrible (I'm assuming due to rails rescuing and rendering for each one).

The logs on the server are displaying a RoutingError for each image on the page, as well as ConnectionTimeoutErrors being displayed every now and then.

Started GET "/spree/products/6/small/ror_jr_spaghetti.jpeg" for 127.0.0.1 at 2012-02-25 23:39:14 +0000

ActionController::RoutingError (No route matches [GET] "/spree/products/6/small/ror_jr_spaghetti.jpeg"):

Rendered /Users/haar/.rvm/gems/ruby-1.9.3-p0@starshoes/gems/actionpack3.1.3/lib/action_dispatch/middleware/templates/rescues/routing_error.erb within rescues/layout (0.8ms)

Started GET "/spree/products/7/small/ror_mug.jpeg" for 127.0.0.1 at 2012-02-25 23:39:15 +0000

ActionController::RoutingError (No route matches [GET] "/spree/products/7/small/ror_mug.jpeg"):

Rendered /Users/haar/.rvm/gems/ruby-1.9.3-p0@starshoes/gems/actionpack-3.1.3/lib/action_dispatch/middleware/templates/rescues/routing_error.erb within rescues/layout (0.7ms)

And the displayed TimeoutErrors being along the following lines:

Started GET "/spree/products/1008/small/ruby_baseball.png" for 127.0.0.1 at 2012-02-25 23:39:16 +0000

ActiveRecord::ConnectionTimeoutError (could not obtain a database connection within 5 seconds. The max pool size is currently 5; consider increasing it.):