1
Bundler could not find compatible versions for gem "railties": 
    In Gemfile: 
    rails (= 3.2.3) ruby depends on 
     railties (= 3.2.3) ruby 

    jquery-rails (= 2.0.0) ruby depends on 
     railties (3.2.5) 

我已經得到了錯誤信息,同時試圖「捆綁安裝」這裏是我的Gemfile丟失的寶石可以

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 

gem 'json' 

# 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.1' 


    # 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-debug' 

,這裏是紅寶石版本

ruby 1.8.7 (2011-06-30 patchlevel 352) [x86_64-linux] 

所有在此之前我的「捆綁檢查」會導致以下缺失的寶石

The following gems are missing 
* tilt (1.3.3) 
* mime-types (1.18) 
* mail (2.4.4) 
* sass-rails (3.2.5) 

有人可以幫我解決這個小問題。謝謝

回答

0

隨着目前組合捆綁在同一時間找不到railties的兩條軌道和jQuery護欄的匹配版本。

解決方案

或者:

gem 'jquery-rails', '2.0.1' 

或者:

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