spree-contrib / spree_globalize

Adds support for model translations (multi-language stores) using Globalize gem
https://spreecommerce.org
BSD 3-Clause "New" or "Revised" License
24 stars 101 forks source link

undefined method `translates' for Store:Module (NoMethodError) #50

Open nyalsyon opened 6 years ago

nyalsyon commented 6 years ago

I want to add static page on spree. Since, I'm facing "undefined method `translates' for Store:Module (NoMethodError)" I'm not able to install 'spree_globalize',' spree_static_content' gem. Please help me to solve this issue.

ruby '2.5.0'
gem 'rails', '~> 5.2.0'

gem 'spree', '~> 3.6.3'
gem 'spree_auth_devise', '~> 3.3'
gem 'spree_gateway', '~> 3.3'
gem 'spree_cash_on_delivery', '1.0.0', path: 'vendor/gems/spree_cash_on_delivery-master'
gem 'vinsol_spree_themes', github: 'vinsol-spree-contrib/spree_themes', branch: 'master'

gem 'spree_i18n', github: 'spree-contrib/spree_i18n'
gem 'spree_globalize', github: 'spree-contrib/spree_globalize', branch: 'master'
gem 'globalize', git: 'https://github.com/globalize/globalize'
gem 'activemodel-serializers-xml'
gem 'spree_static_content', github: 'spree-contrib/spree_static_content'
hamdi777 commented 5 years ago

i downgraded my app rails gem version from 6 to 5.2.3 and I've got the same problem but i didn't face this problem when i was already using rails 5 in another project , it's a versioning problem i think