Bundler could not find compatible versions for gem “activesupport”

给你一囗甜甜゛ 提交于 2019-12-01 16:37:22

For anyone who accidently comes to this link (at the time google served this page first); check out this post Bundler could not find compatible versions for gem, updating Rails app

My steps were run

gem update rails

rm Gemfile.lock

change my Gemfile to reference the version of rails i wanted

gem 'rails', '3.2.13'

finally run

bundle install 

I didn't try bundle update as @PistachioPony suggested but that might take the place of removing the lock file and rebuilding.

ActiveAdmin with Rails 4 requires you to track master. From the github page:

We're currently working on 1.0.0, which as far as dependencies, moves us from meta_search to Ransack and adds Rails 4 support. You can get Rails 4 and 4.1 support by tracking master:

gem 'activeadmin', github: 'gregbell/active_admin'

Also, make sure you DON'T use the docs on the main page because they are outdated for rails 4. There are updated docs for rails 4 with master.

I'm not sure how much longer this answer will be relevant, so you should check github to see if things have changed before blindly tracking master. Also, note that tracking master usually means you will get development changes as they come.

If you changed your rails to 3.2.13 then also change your active support in the gemfile.lock to 3.2.13 then:

Run:

$ bundle update

shut down your server:

$ control c

Make sure in your terminal that you are in your project folder then: restart your server:

$ rails server

refresh your browser

go like this: gem 'activeadmin', github: 'gregbell/active_admin' in da gemfile

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!