加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 百科 > 正文

ruby-on-rails – 捆绑安装和更新无法找到并安装jQuery-rails 2.

发布时间:2020-12-17 03:04:27 所属栏目:百科 来源:网络整理
导读:我正试图从 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 '
我正试图从 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’行.但是,当我运行捆绑包更新或捆绑安装时,我收到此错误:

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’被从rubygems中拉出来
http://rubygems.org/gems/jquery-rails/versions/2.0.0

用…来代替

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

而且要快乐

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读