0

我目前正在探索将 Spree Commerce 引擎集成到现有的 rails 应用程序中。标准安装没有问题,但尝试使用现有设计用户模型失败并出现此错误。也许这种方法是错误的。我有一个带有 bootstrap/devise/cancun 等的应用程序。我想使用现有的应用程序和用户模型将 spree 挂载为 /store。一切都保持不变,但 /store 都是 Spree

Would you like to install the default gateways? (Recommended) (yes/no) [yes] yes
Would you like to install the default authentication system? (yes/no) [yes] no
What is the name of the class representing users within your application? [User] User
Would you like to run the migrations? (yes/no) [yes] yes
Would you like to load the seed data? (yes/no) [yes] yes
Would you like to load the sample data? (yes/no) [yes] yes
 gemfile  spree
 gemfile  spree_gateway
     run  bundle install from "."
Gemfile syntax error:
...platforms => [:mri_19, :rbx]gem 'spree', '1.3.2'
...   

The Gem file is giving an error for this insert by the install routine
gem "binding_of_caller", ">= 0.7.1", :group => :development, :platforms => [:mri_19, :rbx]gem 'spree', '1.3.2'                            ^

任何有关方法或此错误的想法将不胜感激。

4

1 回答 1

0

我刚刚注意到 spree install 在同一行插入了 spree 的 gem。更正了这一点并运行了捆绑程序。

遇到了 cancan 的依赖错误。Spree 想要 1.6.8,所以我恢复到那个版本。

再次运行安装并正确安装。

于 2013-04-01T15:43:33.120 回答