jdutil/spree_amazon_affiliate — Issue #1: Problem with plugin spree: spree_amazon_affiliate - "unitiaziled constant Product (Name Error)"
Author: lepetal
Created: 2012-02-14 11:04:48+00:00
State: open

Well, I am trying to install this plugin to spree 1.0.0 with command "rails g spree_amazon_affiliate:install" with same error.
What have i must to change?

(18:34:05) paulmad: deploy@bothunter:~/rails/mystore$ rails g spree_amazon_affilate:install
=> 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.rbin ': 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:inblock 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:inactivate'
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:inrun_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:inblock in module:Finisher'
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:inrun'
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:ineach'
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:ininitialize!'
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.ruin block in

'
from /home/paulmad/.rvm/gems/ruby-1.9.3-p0/gems/rack-1.3.6/lib/rack/builder.rb:51:ininstance_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:innew'
from /home/deploy/rails/mystore/config.ruin

'
from /home/paulmad/.rvm/gems/ruby-1.9.3-p0/gems/rack-1.3.6/lib/rack/builder.rb:40:ineval'
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:inapp'
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:inwrapped_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:instart'
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:intap'
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:inrequire'
from script/railsin `'