我在haml,bootstrap sass和simple_form gems上运行bundle install时得到以下内容:
Bundler could not find compatible versions for gem "actionpack":
rails (~> 5.1.0) was resolved to 5.1.0, which depends on
actionpack (= 5.1.0)
rails (~> 5.1.0) was resolved to 5.1.0, which depends on
actionpack (= 5.1.0)
rails (~> 5.1.0) was resolved to 5.1.0, which depends on
actionpack (= 5.1.0)
simple_form (~> 3.0.2) was resolved to 3.0.2, which depends on
actionpack (~> 4.0)
我的Gemfile如下所示:
source 'https://rubygems.org'
gem 'rails', '~> 5.1.0'
gem 'haml', '~> 4.0.5'
gem 'simple_form', '~> 3.0.2'
gem 'bootstrap-sass', '~> 3.2.0.2'
有谁能告诉我哪里出错了?日Thnx!
答案 0 :(得分:0)
我找到了这个并成功安装了:
此: https://github.com/plataformatec/simple_form/issues/1485
的是:
gem 'simple_form', github: 'elsurudo/simple_form', branch: 'rails-5.1.0'