spree-multi-domain icon indicating copy to clipboard operation
spree-multi-domain copied to clipboard

uninitialized constant Spree::Admin::ProductsController

Open matiasmansilla1989 opened this issue 9 years ago • 1 comments

Hello, I created a rails 4.1.6 project and then I added to my gemfile gem 'spree_multi_domain', git: 'git://github.com/spree/spree-multi-domain.git'

Then when I run: bundle exec rails g spree_multi_domain:install

I get the next error: uninitialized constant Spree::Admin::ProductsController (NameError)

/Users/toptierlabs/.rvm/gems/ruby-2.1.1/bundler/gems/spree-multi-domain-c8782907a414/app/controllers/spree/admin/products_controller_decorator.rb:1:in <top (required)>': uninitialized constant Spree::Admin::ProductsController (NameError) from /Users/toptierlabs/.rvm/gems/ruby-2.1.1/bundler/gems/spree-multi-domain-c8782907a414/lib/spree_multi_domain/engine.rb:10:inblock (2 levels) in activate' from /Users/toptierlabs/.rvm/gems/ruby-2.1.1/bundler/gems/spree-multi-domain-c8782907a414/lib/spree_multi_domain/engine.rb:9:in glob' from /Users/toptierlabs/.rvm/gems/ruby-2.1.1/bundler/gems/spree-multi-domain-c8782907a414/lib/spree_multi_domain/engine.rb:9:inblock in activate' from /Users/toptierlabs/.rvm/gems/ruby-2.1.1/bundler/gems/spree-multi-domain-c8782907a414/lib/spree_multi_domain/engine.rb:8:in each' from /Users/toptierlabs/.rvm/gems/ruby-2.1.1/bundler/gems/spree-multi-domain-c8782907a414/lib/spree_multi_domain/engine.rb:8:inactivate' .....

I was looking into the repo but I don't have idea what happen.

Thanks, Matias

matiasmansilla1989 avatar Mar 20 '15 18:03 matiasmansilla1989

Matias;

You need to install spree first. spree_multi_domain is just an extension on-top of spree.

krtschmr avatar Jul 30 '16 21:07 krtschmr