1
votes

Taking a rails tutorial, and I've run into the following problem that I'm having trouble figuring out. I'm creating a sample app that's supposed to use the following gemfile:

source 'https://rubygems.org'

gem 'rails', '3.2.5'

group :development, :test do
    gem 'sqlite3', '1.3.5'
    gem 'rspec-rails', '2.10.0'
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'
  gem 'uglifier', '1.2.3'
 end

  # See https://github.com/sstephenson/execjs#readme for more supported runtimes
  # gem 'therubyracer', :platform => :ruby

gem 'jquery-rails', '2.0.0'

group :test do
    gem 'capybara', '1.1.2'
end 

group :production do
    gem 'pg', '0.12.2'
end

When I tried to "bundle install --without production" per instructions, though, I get this

Bundler could not find compatible versions for gem "activesupport": In snapshot (Gemfile.lock): activesupport (3.2.3)

In Gemfile: rails (= 3.2.5) ruby depends on activesupport (= 3.2.5) ruby

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

So I tried updating, but I was told that:

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

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

So I tried to update my gems via rvm, figuring that was the problem. (Did "rvm rubygems current"). But that didn't seem to fix anything.

Help? Thanks!

1
Did you try bundle update explicitly? Upgrading to 3.2.6 is a must as well, as it include security fixes.Henrique Zambon

1 Answers

2
votes

Try changing this line:

gem 'rails', '3.2.5'

to

gem 'rails', '3.2.6'