![](/img/trans.png)
[英]Could not find gem 'jquery-rails (= 2.0.0) ruby' in the gems available on this machine
[英]Bundle install and update cannot find and install jQuery-rails 2.0.0
我正在嘗試從該網站學習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
中有Gemfile
gem 'jquery-rails', '2.0.0'
行。 但是,當我運行bundle update
或bundle install
時,出現此錯誤:
bbundle install could not find gem ' jquery-rails (= 2.0.0) x96-mingw32' in any of the gem sources listed in your gemfile.
從rubygems中刪除了gem jquery-rails版本'2.0.0'
http://rubygems.org/gems/jquery-rails/versions/2.0.0
用。。。來代替
gem "jquery-rails", "~> 2.0.1"
而且要快樂
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.