新手问题 ROR 新手,关于 rails-jquery 的问题

cicada · 2012年08月23日 · 最后由 ery 回复于 2012年08月25日 · 2962 次阅读

环境 系统:macosx lion ruby 版本:1.9.3 然后现在运行 rails -v 提示如下错误. .rvm/gems/ruby-1.9.3-p194/gems/bundler-1.1.5/lib/bundler/resolver.rb:129:in `block in resolve': Bundler could not find compatible versions for gem "jquery-rails": (Bundler::VersionConflict) In Gemfile: spree_usa_epay (>= 0) ruby depends on jquery-rails (~> 2.0.0) ruby

jquery-rails (2.1.1) 这是神马情况?

把你 gemfile 完整的贴出来看看吧

谢谢.gem 文件如下

source 'https://rubygems.org'

gem 'rails', '3.2.8'

# Bundle edge Rails instead:
# gem 'rails', :git => 'git://github.com/rails/rails.git'

gem 'sqlite3'


# Gems used only for assets and not required
# in production environments by default.
group :assets do
  gem 'sass-rails',   '~> 3.2.3'
  gem 'coffee-rails', '~> 3.2.1'

  # See https://github.com/sstephenson/execjs#readme for more supported runtimes
  # gem 'therubyracer', :platforms => :ruby

  gem 'uglifier', '>= 1.0.3'
end

gem 'jquery-rails'

# To use ActiveModel has_secure_password
# gem 'bcrypt-ruby', '~> 3.0.0'

# To use Jbuilder templates for JSON
# gem 'jbuilder'

# Use unicorn as the app server
# gem 'unicorn'

# Deploy with Capistrano
# gem 'capistrano'

# To use debugger
# gem 'debugger'
gem 'spree', '1.1.3'
gem 'spree_usa_epay'
gem 'spree_skrill'

去要求 spree_usa_epay 的作者更新版本或者自己 fork 一份。

好的。谢谢。

spree_usa_epay 依赖 spree_core spree_core 依赖 jquery-rails ~> 2.0.0

现在 jquery-rails 的最新版本是 2.1.1 这不符和 spree_core 的要求

你试试, 不要用 jquery-rails 最新版, 用 2.0.3 版本,

gem 'jquery-rails', '2.0.3'

需要 登录 后方可回复, 如果你还没有账号请 注册新账号