spree/spree — Issue #1151: Problem with plugin spree: spree_amazon_affiliate - "unitiaziled constant Product (Name Error)"
Author: lepetal
Created: 2012-02-13 17:39:48+00:00
State: open

(18:34:05) paulmad: deploy@bothunter:~/rails/mystore$ rails server
=> Booting WEBrick
=> Rails 3.1.3 application starting in development on http://0.0.0.0:3000
=> Call with -d to detach
=> Ctrl-C to shutdown server
Exiting
/home/paulmad/.rvm/gems/ruby-1.9.3-p0/bundler/gems/spree_amazon_affiliate-3cfe3897bfe8/app/models/product_decorator.rb:3:in `': uninitialized constant Product (NameError)
from /home/paulmad/.rvm/gems/ruby-1.9.3-p0/bundler/gems/spree_amazon_affiliate-3cfe3897bfe8/lib/spree_amazon_affiliate/engine.rb:14:in `block in activate'
from /home/paulmad/.rvm/gems/ruby-1.9.3-p0/bundler/gems/spree_amazon_affiliate-3cfe3897bfe8/lib/spree_amazon_affiliate/engine.rb:13:in `glob'
from /home/paulmad/.rvm/gems/ruby-1.9.3-p0/bundler/gems/spree_amazon_affiliate-3cfe3897bfe8/lib/spree_amazon_affiliate/engine.rb:13:in `activate'
from /home/paulmad/.rvm/gems/ruby-1.9.3-p0/gems/activesupport-3.1.3/lib/active_support/callbacks.rb:467:in `_run_prepare_callbacks'
from /home/paulmad/.rvm/gems/ruby-1.9.3-p0/gems/activesupport-3.1.3/lib/active_support/callbacks.rb:81:in `run_callbacks'
from /home/paulmad/.rvm/gems/ruby-1.9.3-p0/gems/actionpack-3.1.3/lib/action_dispatch/middleware/reloader.rb:46:in `prepare!'
from /home/paulmad/.rvm/gems/ruby-1.9.3-p0/gems/railties-3.1.3/lib/rails/application/finisher.rb:41:in `block in '
from /home/paulmad/.rvm/gems/ruby-1.9.3-p0/gems/railties-3.1.3/lib/rails/initializable.rb:30:in `instance_exec'
from /home/paulmad/.rvm/gems/ruby-1.9.3-p0/gems/railties-3.1.3/lib/rails/initializable.rb:30:in `run'
from /home/paulmad/.rvm/gems/ruby-1.9.3-p0/gems/railties-3.1.3/lib/rails/initializable.rb:55:in `block in run_initializers'
from /home/paulmad/.rvm/gems/ruby-1.9.3-p0/gems/railties-3.1.3/lib/rails/initializable.rb:54:in `each'
from /home/paulmad/.rvm/gems/ruby-1.9.3-p0/gems/railties-3.1.3/lib/rails/initializable.rb:54:in `run_initializers'
from /home/paulmad/.rvm/gems/ruby-1.9.3-p0/gems/railties-3.1.3/lib/rails/application.rb:96:in `initialize!'
from /home/paulmad/.rvm/gems/ruby-1.9.3-p0/gems/railties-3.1.3/lib/rails/railtie/configurable.rb:30:in `method_missing'
from /home/deploy/rails/mystore/config/environment.rb:5:in `'
from /home/deploy/rails/mystore/config.ru:4:in `block in

'
from /home/paulmad/.rvm/gems/ruby-1.9.3-p0/gems/rack-1.3.6/lib/rack/builder.rb:51:in `instance_eval'
from /home/paulmad/.rvm/gems/ruby-1.9.3-p0/gems/rack-1.3.6/lib/rack/builder.rb:51:in `initialize'
from /home/deploy/rails/mystore/config.ru:1:in `new'
from /home/deploy/rails/mystore/config.ru:1:in `

'
from /home/paulmad/.rvm/gems/ruby-1.9.3-p0/gems/rack-1.3.6/lib/rack/builder.rb:40:in `eval'
from /home/paulmad/.rvm/gems/ruby-1.9.3-p0/gems/rack-1.3.6/lib/rack/builder.rb:40:in `parse_file'
from /home/paulmad/.rvm/gems/ruby-1.9.3-p0/gems/rack-1.3.6/lib/rack/server.rb:200:in `app'
from /home/paulmad/.rvm/gems/ruby-1.9.3-p0/gems/railties-3.1.3/lib/rails/commands/server.rb:46:in `app'
from /home/paulmad/.rvm/gems/ruby-1.9.3-p0/gems/rack-1.3.6/lib/rack/server.rb:301:in `wrapped_app'
from /home/paulmad/.rvm/gems/ruby-1.9.3-p0/gems/rack-1.3.6/lib/rack/server.rb:252:in `start'
from /home/paulmad/.rvm/gems/ruby-1.9.3-p0/gems/railties-3.1.3/lib/rails/commands/server.rb:70:in `start'
from /home/paulmad/.rvm/gems/ruby-1.9.3-p0/gems/railties-3.1.3/lib/rails/commands.rb:54:in `block in '
from /home/paulmad/.rvm/gems/ruby-1.9.3-p0/gems/railties-3.1.3/lib/rails/commands.rb:49:in `tap'
from /home/paulmad/.rvm/gems/ruby-1.9.3-p0/gems/railties-3.1.3/lib/rails/commands.rb:49:in `'
from script/rails:6:in `require'
from script/rails:6:in `

'