0

从 rails 从 4.0 更新到 4.1 时,我偶然发现了以下依赖问题:

Fetching additional metadata from https://rubygems.org/..
Resolving dependencies...
Bundler could not find compatible versions for gem "activemodel":
  In Gemfile:
    simple_form (>= 0) ruby depends on
      activemodel (< 4.1, >= 4.0.0) ruby

    rails (= 4.1.0) ruby depends on
      activemodel (4.1.0)

我该如何rails 4.1安装simple_form

4

1 回答 1

2

您需要使用 github 版本,因为 ruby​​gems 似乎不起作用。在您的 gemfile 上,将其更新simple_form为:

gem 'simple_form', github: 'plataformatec/simple_form'

资料来源:我无法阅读的语言的谷歌群组

于 2014-04-21T23:53:41.043 回答