spree-contrib / spree_static_content

Manage static pages for Spree Commerce.
http://guides.spreecommerce.org
BSD 3-Clause "New" or "Revised" License
217 stars 333 forks source link

NoMethodError in Spree::Home#index #249

Closed 1fabunicorn closed 6 years ago

1fabunicorn commented 6 years ago

Here is my Gemfile

...
gem 'spree', '~> 3.3.0.rc1'
gem 'spree_auth_devise', '~> 3.3'
gem 'spree_gateway', '~> 3.3'

gem 'globalize', github: 'globalize/globalize'
gem 'spree_i18n', github: 'spree-contrib/spree_i18n'
gem 'spree_globalize', github: 'spree-contrib/spree_globalize', branch: 'master'
gem 'spree_static_content', github: 'spree-contrib/spree_static_content'

And the error is undefined method product_for_segment' for #< <Class:0x00000000067273a0>:0x000000000693e940>

I did everything the README install instructions told me, hopefully this is an easy one!

1fabunicorn commented 6 years ago

After downgrading too rails 5.0, it works. Just a note for the devs.

NuclearMachine commented 6 years ago

same here, Taxonomy classes do not work.

VygovskySergey commented 6 years ago

@1fabunicorn I have try to reproduce this issue with your config, and everything works fine. Could you provide exact steps that you have done?

nbarthelemy commented 6 years ago

Was this ever resolved? What was the resolution?

kbaum commented 5 years ago

Ran into this issue today. I just manually included the missing helper method into application_helper.rb.

module ApplicationHelper
  include Spree::TrackersHelper
end