ruby-on-rails-3.1 – Rails 3.1.2 – Bundler找不到gem“railties”的兼容版本

我正在尝试安装新版本的twitter-bootstrap-rails gem(v2),但是得到了上面的错误.这就是我的Gemfile的样子:
source 'http://rubygems.org'

gem 'rails','3.1.2'

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


gem 'MysqL2'
gem 'authlogic'
gem "paperclip","~> 2.4.5"
gem 'aws-s3'
gem 'actionmailer'
gem "twitter-bootstrap-rails","~> 2.0"
gem 'sunspot_rails'

#endless page
gem 'will_paginate'

# Gems used only for assets and not required
# in production environments by default.
group :assets do
  gem 'sass-rails','~> 3.1.5.rc.2'
  gem 'coffee-rails','~> 3.1.1'
  gem 'uglifier','>= 1.0.3'
end

group :production do
  gem 'therubyracer-heroku','~> 0.8.1.pre3'
  gem 'pg'
  gem 'thin'
end

group :development do
  gem "taps","~> 0.3.23"
  gem "rvm","~> 1.9.2"
end

gem 'jquery-rails'

# To use ActiveModel has_secure_password
# gem 'bcrypt-ruby','~> 3.0.0'

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

# Deploy with Capistrano
# gem 'capistrano'

# To use debugger
# gem 'ruby-debug19',:require => 'ruby-debug'

并完成错误

Bundler Could not find compatible versions for gem "railties":
  In Gemfile:
    twitter-bootstrap-rails (~> 2.0) ruby depends on
      railties (>= 3.2.1) ruby

    sass-rails (~> 3.1.5.rc.2) ruby depends on
      railties (3.1.0)

怎么了?当我删除版本〜>从宝石2.0,它的工作原理,但我需要新版本的bootstrap …

编辑:捆绑安装

Bundler Could not find compatible versions for gem "railties":
  In snapshot (Gemfile.lock):
    railties (3.1.2)

  In Gemfile:
    twitter-bootstrap-rails (~> 2.0) ruby depends on
      railties (>= 3.2.1) ruby

Running `bundle update` will rebuild your snapshot from scratch,using only
the gems in your Gemfile,which may resolve the conflict.

解决方法

解:
gem 'rails','3.2.1'
gem "sass-rails","~> 3.2.4"
gem "coffee-rails","~> 3.2.2"

然后

bundle update

相关文章

validates:conclusion,:presence=>true,:inclusion=>{...
一、redis集群搭建redis3.0以前,提供了Sentinel工具来监控各...
分享一下我老师大神的人工智能教程。零基础!通俗易懂!风趣...
上一篇博文 ruby传参之引用类型 里边定义了一个方法名 mo...
一编程与编程语言 什么是编程语言? 能够被计算机所识别的表...
Ruby类和对象Ruby是一种完美的面向对象编程语言。面向对象编...