On a fresh rails project, I’v installed Rails 3.2.11 with Ruby 1.9.3-p-194 I also installed spree version 1.3.1.
The steps that I took while installing:
rails new mystore
cd mystore
spree install -A
rails s
Everything is going without errors when I’m installing but when I open it in http://localhost:3000/ product images are not loaded but the spree logo is loaded.
This is for the last image but i get the same for all product images:
Started GET "/spree/products/6/small/ror_jr_spaghetti.jpeg" for 127.0.0.1 at 2013-02-02 11:33:54 +0100
ActionController::RoutingError (No route matches [GET] "/spree/products/6/small/ror_jr_spaghetti.jpeg"):
actionpack (3.2.11) lib/action_dispatch/middleware/debug_exceptions.rb:21:in `call'
actionpack (3.2.11) lib/action_dispatch/middleware/show_exceptions.rb:56:in `call'
railties (3.2.11) lib/rails/rack/logger.rb:32:in `call_app'
railties (3.2.11) lib/rails/rack/logger.rb:16:in `block in call'
activesupport (3.2.11) lib/active_support/tagged_logging.rb:22:in `tagged'
railties (3.2.11) lib/rails/rack/logger.rb:16:in `call'
actionpack (3.2.11) lib/action_dispatch/middleware/request_id.rb:22:in `call'
rack (1.4.4) lib/rack/methodoverride.rb:21:in `call'
rack (1.4.4) lib/rack/runtime.rb:17:in `call'
activesupport (3.2.11) lib/active_support/cache/strategy/local_cache.rb:72:in `call'
rack (1.4.4) lib/rack/lock.rb:15:in `call'
actionpack (3.2.11) lib/action_dispatch/middleware/static.rb:62:in `call'
railties (3.2.11) lib/rails/engine.rb:479:in `call'
railties (3.2.11) lib/rails/application.rb:223:in `call'
rack (1.4.4) lib/rack/content_length.rb:14:in `call'
railties (3.2.11) lib/rails/rack/log_tailer.rb:17:in `call'
rack (1.4.4) lib/rack/handler/webrick.rb:59:in `service'
/home/vane/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/webrick/httpserver.rb:138:in `service'
/home/vane/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/webrick/httpserver.rb:94:in `run'
/home/vane/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/webrick/server.rb:191:in `block in start_thread'
Rendered /home/vane/.rvm/gems/ruby-1.9.3-p194/gems/actionpack-3.2.11/lib/action_dispatch/middleware/templates/rescues/routing_error.erb within rescues/layout (1.2ms)
Started GET "/assets/favicon.ico" for 127.0.0.1 at 2013-02-02 11:33:54 +0100
Served asset /favicon.ico - 304 Not Modified (28ms)
[2013-02-02 11:33:54] WARN Could not determine content-length of response body. Set content-length of the response or set Response#chunked = true
I checked my version of ImageMagic with identify -version and I got:
Version: ImageMagick 6.8.2-2 2013-02-01 Q16 http://www.imagemagick.org
Copyright: Copyright (C) 1999-2013 ImageMagick Studio LLC
Features: DPC OpenMP
Delegates: fontconfig freetype pango png ps x xml zlib
I also verifyed that the ImageMagick install is working properly with:
/usr/local/bin/convert logo: logo.gif
Can someone tell me if I am doing something wrong or it is another issue.
Thanks in advance.
Better use this guide, actually: http://guides.spreecommerce.com/getting_started.html
and you should be using the bundler. I didn’t see anything about a spree install -a. I think you’re supposed to do a bundle exec rails g spree:install, but I may be wrong.
edit Got it all working and submitted a pull request to you. I’m not sure what the issue was, exactly, but all I did to make it work was actually run the spree install again, and let it overwrite whatever it wrote before, and it looks like you were missing some more dependencies, plus I updated your spree to 1.3.2 cause 1.3.1 has an error. I hope this will get you somewhere.