Bundler could not find compatible versions for gem “railties” for Rails 4.0.0

后端 未结 6 1952
名媛妹妹
名媛妹妹 2020-12-29 01:37

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 <

6条回答
  •  天命终不由人
    2020-12-29 01:58

    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.

提交回复
热议问题