【问题标题】:Could not find gem 'jquery-rails (>= 0, runtime)' in any of the gem sources listed in your Gemfile. Trying to start rails server在您的 Gemfile 中列出的任何 gem 源中找不到 gem 'jquery-rails (>= 0, runtime)'。尝试启动 Rails 服务器
【发布时间】:2011-09-02 15:04:30
【问题描述】:

来源:http://rubygems.org

gem 'rails', '3.1.0'

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

gem 'sqlite3'

gem 'json'

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

gem 'jquery-rails'

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

# Deploy with Capistrano
# gem 'capistrano'

# To use debugger
# gem 'ruby-debug'

这里有人有什么想法吗?是的,我试过bundle install

【问题讨论】:

    标签: ruby-on-rails ruby ubuntu-11.04


    【解决方案1】:

    您尚未声明任何来源。添加

    source "http://rubygems.org"
    

    到文件的顶部(或者,如果您问题顶部的那一行实际上在文件中,请将其修改为完全一样)。

    【讨论】:

      猜你喜欢
      • 2012-02-11
      • 2018-04-02
      • 2017-07-14
      • 2018-08-12
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多