简体   繁体   中英

Facing issues in upgrading rails version

When I run bundle install it shows :

Fetching gem metadata from https://rubygems.org/........
Fetching additional metadata from https://rubygems.org/..
Resolving dependencies...
You have requested:
  rails = 4.2.1

The bundle currently has rails locked at 4.1.0.
Try running `bundle update rails`

Then I run: bundle update rails It gives:

Fetching gem metadata from https://rubygems.org/........
Fetching additional metadata from https://rubygems.org/..
Resolving dependencies...
Bundler could not find compatible versions for gem "railties":
  In Gemfile:
    devise (>= 0) ruby depends on
      responders (>= 0) ruby depends on
        railties (< 4.2, >= 3.2) ruby

    rails (= 4.2.1) ruby depends on
      railties (4.2.1)

Please help me out in solving this. Thanks in advance.

It looks like you are using an older version of devise--you'll need to update your devise version to work with Rails 4.2 ( bundle update devise ). Once devise is updated to 3.4.x, it can use railties v4.2.1.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM