我正在尝试将 rails_admin 与 rails5 应用程序一起使用。rails_admin 0.8.1 不起作用,因为
Bundler 找不到 gem "rails" 的兼容版本:在快照中 (Gemfile.lock): rails (= 5.0.0.beta1)
在 Gemfile 中:rails (< 5.1, >= 5.0.0.beta1)
rails_admin was resolved to 0.8.1, which depends on rails (~> 4.0)
然后我尝试使用来自github的最新代码
宝石'rails_admin',git:' https ://github.com/sferik/rails_admin.git '
现在我得到了相互冲突的机架依赖。
在快照(Gemfile.lock)中:机架(= 2.0.0.alpha)
在 Gemfile 中:rails (< 5.1, >= 5.0.0.beta1) 被解析为 5.0.0.beta1,它依赖于 actionmailer (= 5.0.0.beta1) 被解析为 5.0.0.beta1,它依赖于 actionpack (= 5.0.0.beta1) 被解析为 5.0.0.beta1,这取决于机架 (~> 2.x)
rails_admin was resolved to 0.8.1, which depends on rack-pjax (~> 0.7) was resolved to 0.7.0, which depends on rack (~> 1.3) rails (< 5.1, >= 5.0.0.beta1) was resolved to 5.0.0.beta1, which depends on sprockets-rails (>= 2.0.0) was resolved to 3.0.0, which depends on sprockets (>= 3.0.0) was resolved to 3.5.2, which depends on rack (< 3, > 1) devise was resolved to 4.0.0.pre.dev, which depends on warden (~> 1.2.3) was resolved to 1.2.4, which depends on rack (>= 1.0) devise was resolved to 4.0.0.pre.dev, which depends on warden (~> 1.2.3) was resolved to 1.2.4, which depends on rack (>= 1.0)
现在开始使用 rails5 还为时过早吗?我应该回到rails4.2吗?