简体   繁体   English

大礼包0.11.2,横杆2.3.12,即使安装了大礼包0.11.2宝石也没有

[英]spree 0.11.2, rails 2.3.12, missing the spree 0.11.2 gem even though it is installed

I'm having trouble with spree 0.11.2 on rails 2.3.12. 我在铁路2.3.12上疯狂使用0.11.2遇到麻烦。 I need to get Spree running on Rails 2.3.12. 我需要让Spree在Rails 2.3.12上运行。 I have no control over which version of rails installed, but I do over Spree. 我无法控制安装的是哪个版本的rails,但可以通过Spree进行控制。 I have edited spree's boot.rb to allow rails 2.3.12 and the install goes fine but when ever I run "rake db:bootstrap" or "script/server" I get the below error. 我已经编辑了spree的boot.rb以允许rails 2.3.12,并且安装正常,但是每当我运行“ rake db:bootstrap”或“ script / server”时,都会出现以下错误。 What else do I need to edit? 我还需要编辑什么? Or can someone recommend a version of spree that runs with rails 2.3.12 out of the box? 或者有人可以推荐开箱即用的滑轨版本2.3.12?

Missing the Spree 0.11.2 gem. 缺少Spree 0.11.2宝石。 Please gem install -v=0.11.2 spree , update your SPREE_GEM_VERSION setting in config/environment.rb for the Rails version you do have installed, or comment out SPREE_GEM_VERSION to use the latest version installed. gem install -v=0.11.2 spree ,在config / environment.rb中为您已安装的Rails版本更新SPREE_GEM_VERSION设置,或注释掉SPREE_GEM_VERSION以使用最新安装的版本。

gem list --local spree 宝石清单-本地狂欢

* LOCAL GEMS * *当地的宝石*

spree (0.11.2) 大礼包(0.11.2)

config/environment.rb config / environment.rb

SPREE_GEM_VERSION = '0.11.2' unless defined? SPREE_GEM_VERSION ='0.11.2'除非已定义? SPREE_GEM_VERSION SPREE_GEM_VERSION

I see your question was on the Spree Groups forum. 我看到您的问题是在Spree Groups论坛上。 For edification I thought I would link out to it. 为了教育,我想我会链接到它。

This thread basically articulates that if you're trying to work against Rails 2.3.12, you're going to have to modify hard-coded references to it in the spree source. 该线程基本上表明,如果您尝试使用Rails 2.3.12,则必须在spree源代码中修改对其的硬编码引用。 Spree gem 0.11 is stable against Rails 3.1.8. Spree gem 0.11对Rails 3.1.8稳定。

https://groups.google.com/forum/#!topic/spree-user/0KIrgrL7Q-4 https://groups.google.com/forum/#!topic/spree-user/0KIrgrL7Q-4

You should update to Spree 1.0.0 if you can, and Rails to 3.1.1 for the latest in features, bug fixes, and more. 如果可以的话,应该更新为Spree 1.0.0,将Rails更新为3.1.1,以获取最新的功能,错误修复等。

Check out the legacy documentation if you're still stuck on this: http://guides.spreecommerce.com/legacy/0-11-x/getting_started.html 如果您仍然不满意,请查看旧版文档: http : //guides.spreecommerce.com/legacy/0-11-x/getting_started.html

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM