After createing a brand new rails app Following the official rails blog post, attempting to convert apps to rails 3.2.0.rc2 yields the following
Updated Gemfile to depend on rails ~> 3.2.0.rc2
gem 'rails', '~>3.2.0.rc2'
Updated Gemfile to depend on sass-rails ~> 3.2.3
gem 'sass-rails', '~> 3.2.3'
$ bundle install
Fetching source index for http://rubygems.org/
Bundler could not find compatible versions for gem "activesupport":
In snapshot (Gemfile.lock):
activesupport (3.1.1)
In Gemfile:
rails (~> 3.2.0.rc2) ruby depends on
activesupport (= 3.2.0.rc2) ruby
Running `bundle update` will rebuild your snapshot from scratch, using
only the gems in your Gemfile, which may resolve the conflict.
$bundle update
Fetching source index for http://rubygems.org/
Bundler could not find compatible versions for gem "railties":
In Gemfile:
coffee-rails (~> 3.1.1) ruby depends on
railties (~> 3.1.0) ruby
rails (~> 3.2.0.rc2) ruby depends on
railties (3.2.0.rc2)
What exactly is the issue?
System Specs:
Mac OS 10.7.2, Xcode 4.2.1, rvm 1.10.1 using ruby 1.9.3p0 (2011-10-30 revision 33570) [x86_64-darwin11.2.0]
I solved it by deleting the lock
rm Gemfile.lock
and again runningbundle install
:This is a pretty brute force way of fixing the issue. If this is an established project, you may run into other issues after deleting the
Gemfile.lock
as the dependency versions are no longer locked. However, if this is a new project it's unlikely you will run into problems taking this approach.As well as
sass-rails
, you need to bump the version ofcoffee-rails
you depend on too (3.2.1 ought to do it)If your bundler version is not the same as the BUNDLED WITH in the last line of your Gemfile.lock, it may occur 'could not find compatible versions for gem GEMNAME' only after adding new gem to your Gemfile.
go like this:
gem 'activeadmin', github: 'gregbell/active_admin'
in da gemfile. Active admin support for rails 4 merged into master branch Active admin install with Rails 4