我正在尝试使spree_shared宝石正常工作。我在postgres上安装一个干净的热门安装,然后将spree_shared添加到Gemfile,然后运行bundle install。 运行后rake db:migrate给了我这个错误:安装Spree_Shared错误时出错宝石:
rake中止! NameError:未初始化的常量Spree :: Base /usr/local/rvm/gems/ruby-2.1.2/gems/spree_core-2.3.3/app/models/spree/preference.rb:1:in <top (required)>' /usr/local/rvm/gems/ruby-2.1.2/gems/polyglot-0.3.5/lib/polyglot.rb:65:in
要求' /usr/local/rvm/gems/ruby-2.1.2/gems/polyglot-0.3.5/lib/polyglot.rb:65:in require' /usr/local/rvm/gems/ruby-2.1.2/bundler/gems/spree_shared-f649514b71d8/lib/spree_shared/spree_preferences_extensions.rb:12:in
“
(完整的错误输出是在这里:http://pastebin.com/WJ70bhti)
任何人都成功地让这个工作?
其他注意事项:我已按照自述文件中有关为Apartment等添加配置文件的说明进行操作,但它不会更改此错误。