gpt4 book ai didi

ruby-on-rails - bundle 安装和更新无法找到并安装 jQuery-rails 2.0.0

转载 作者:数据小太阳 更新时间:2023-10-29 07:29:00 25 4
gpt4 key购买 nike

我正在尝试从 this website 学习 Rails .我在 Windows 上,所以我使用了推荐的 Rails-Installer .我需要为本教程安装 jquery-rails gem 版本 2.0.0,所以在我的 gem 文件中有这些:

source 'https://rubygems.org'

gem 'rails', '3.2.3'

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

group :development do
gem 'sqlite3', '1.3.5'
end


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

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

gem 'uglifier', '>= 1.2.3'
end

gem 'jquery-rails', '2.0.0'

# 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 'ruby-debug19', :require => 'ruby-debug'

可以看出,我在 Gemfile 中有 gem 'jquery-rails', '2.0.0' 行。但是,当我运行 bundle updatebundle install 时出现此错误:

bbundle install could not find gem ' jquery-rails (= 2.0.0) x96-mingw32' in any of the gem sources listed in your gemfile.

最佳答案

gem jquery-rails 版本“2.0.0”已从 ruby​​gems 中删除
http://rubygems.org/gems/jquery-rails/versions/2.0.0

替换为

gem "jquery-rails", "~> 2.0.1"

要快乐

关于ruby-on-rails - bundle 安装和更新无法找到并安装 jQuery-rails 2.0.0,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/14073102/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com