I am trying to upgrade to Rails 4.0.0, and I changed the gem versions of sass-rails
and coffee-rails
. I need to resolve this gem conflict between <
Run gem update rails
first, then bundle update
Also bundle update
only allows you to update one gem at a time, which is hard if you are updating to Rails 4
and a whole lot of gems have to be updated at the same time.
I solved this by deleting the Gemfile.lock
and doing bundle install
.
This is of course assuming you have no conflicting explicit gem version in your Gemfile
to start with. So if this fails, remove version numbers from the Gemfile.
You have an outdated version of Devise, use Rails 4 compatible
gem 'devise', '~> 3.0.0.rc'
Also change coffee-rails
to
gem 'coffee-rails', '~> 4.0.0'
and try doing
bundle update coffee-rails
Just remove gem versions (coffee-rails and sass-rails) from Gemfile and run bundle update
Gemfile.lock
filebundle install
Everything will work fine. :)
You have gems that aren't supported by Rails 4. Comment out all the gems except for Rails 4 and uncomment them one at a time after running bundle install to find the culprits. You might need to undo some of your version locks.