1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

activeadminをGemfileに書いたときにbundle updateできませんでした。

Last updated at Posted at 2016-07-14

Gemfileにactiveadminに追加すると、bundle updateできなくて困りました。

bundle updateでエラー

Gemfileにactiveadminを書きました。

Gemfile
gem 'activeadmin', github: 'activeadmin'

bundle updateします。

bundle update
Warning: the running version of Bundler is older than the version that created the lockfile. We suggest you upgrade to the latest version of Bundler by running `gem install bundler`.
Updating git://github.com/activeadmin/activeadmin.git
Updating git://github.com/carrierwaveuploader/carrierwave.git
Fetching gem metadata from https://rubygems.org/.........
Fetching version metadata from https://rubygems.org/...
Fetching dependency metadata from https://rubygems.org/..
Resolving dependencies........................
Bundler could not find compatible versions for gem "actionpack":
  In Gemfile:
    rails (= 5.0.0) ruby depends on
      railties (= 5.0.0) ruby depends on
        actionpack (= 5.0.0) ruby

    rails (= 5.0.0) ruby depends on
      railties (= 5.0.0) ruby depends on
        actionpack (= 5.0.0) ruby

    rails (= 5.0.0) ruby depends on
      railties (= 5.0.0) ruby depends on
        actionpack (= 5.0.0) ruby

    activeadmin (>= 0) ruby depends on
      inherited_resources (~> 1.6) ruby depends on
        actionpack (< 5, >= 3.2) ruby

失敗しました。

inherited_resourcesを追加

Gemfileをにinherited_resourcesを追加しました。

gem 'inherited_resources', github: 'activeadmin/inherited_resources'

参考サイトだとdeviseinherited_resourcesを追加しろとあったのですが、deviseは書いてあったのでinherited_resourcesだけ記述しました。

bundle update

今度はうまくいきました(☝ ՞ਊ ՞)

参考

1
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?