Dinshaw Raje
Dinshaw Raje

Reputation: 963

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.

Upvotes: 4

Views: 982

Answers (1)

Hannah
Hannah

Reputation: 136

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.

Upvotes: 2

Related Questions