0

I'm following these two tutorials to wire spree into an exsting app:

In my routes, I specifically mount spree not at root: mount Spree::Core::Engine, at: '/spree'

But when I go to http://localhost:3001/ I get the below error. Why is that?

enter image description here

Edit: when restarting the dev server I get this error:

    12: from /Users/piousbox/projects/ruby/microsites3/app/controllers/application_controller.rb:1:in `<top (required)>'
    11: from /Users/piousbox/projects/ruby/microsites3/app/controllers/application_controller.rb:12:in `<class:ApplicationController>'
    10: from /Users/piousbox/projects/ruby/microsites3/vendor/bundle/ruby/2.7.0/gems/actionpack-6.1.7/lib/abstract_controller/helpers.rb:147:in `helper'
     9: from /Users/piousbox/projects/ruby/microsites3/vendor/bundle/ruby/2.7.0/gems/actionpack-6.1.7/lib/action_controller/metal/helpers.rb:104:in `modules_for_helpers'
     8: from /Users/piousbox/projects/ruby/microsites3/vendor/bundle/ruby/2.7.0/gems/actionpack-6.1.7/lib/abstract_controller/helpers.rb:169:in `modules_for_helpers'
     7: from /Users/piousbox/projects/ruby/microsites3/vendor/bundle/ruby/2.7.0/gems/actionpack-6.1.7/lib/abstract_controller/helpers.rb:169:in `map!'
     6: from /Users/piousbox/projects/ruby/microsites3/vendor/bundle/ruby/2.7.0/gems/actionpack-6.1.7/lib/abstract_controller/helpers.rb:176:in `block in modules_for_helpers'
     5: from /Users/piousbox/projects/ruby/microsites3/vendor/bundle/ruby/2.7.0/gems/activesupport-6.1.7/lib/active_support/core_ext/string/inflections.rb:74:in `constantize'
     4: from /Users/piousbox/projects/ruby/microsites3/vendor/bundle/ruby/2.7.0/gems/activesupport-6.1.7/lib/active_support/inflector/methods.rb:284:in `constantize'
     3: from /Users/piousbox/projects/ruby/microsites3/vendor/bundle/ruby/2.7.0/gems/activesupport-6.1.7/lib/active_support/inflector/methods.rb:284:in `inject'
     2: from /Users/piousbox/projects/ruby/microsites3/vendor/bundle/ruby/2.7.0/gems/activesupport-6.1.7/lib/active_support/inflector/methods.rb:284:in `each'
     1: from /Users/piousbox/projects/ruby/microsites3/vendor/bundle/ruby/2.7.0/gems/activesupport-6.1.7/lib/active_support/inflector/methods.rb:288:in `block in constantize'
/Users/piousbox/projects/ruby/microsites3/vendor/bundle/ruby/2.7.0/gems/activesupport-6.1.7/lib/active_support/inflector/methods.rb:288:in `const_get': uninitialized constant Spree::StoreHelper (NameError)
Did you mean?  Spree::BaseHelper

line 12 in application controller is the last line of this paste.

Spree::StoreHelper doesn't exist in current spree versions 4.0, 4.1


  include Spree::AuthenticationHelpers
  include Spree::Core::ControllerHelpers::Auth
  include Spree::Core::ControllerHelpers::Order
  include Spree::Core::ControllerHelpers::Store
  include Spree::Core::ControllerHelpers::Currency
  include Spree::Core::ControllerHelpers::Locale

  helper 'spree/base', 'spree/locale', 'spree/currency', 'spree/store'
Victor Pudeyev
  • 4,296
  • 6
  • 41
  • 67

0 Answers0