rails迁移4.2.6到5.1.0后出错

时间:2017-05-11 03:03:10

标签: ruby rails-migrations ruby-on-rails-5.1

我已经将我的一个rails项目从4.2.5迁移到了5.1.0

我按照本教程进行迁移:https://hashrocket.com/blog/posts/how-to-upgrade-to-rails-5

迁移后我运行rails db:migrate时发现以下错误。

NoMethodError: undefined method `wrappers' for SimpleForm:Module Did you mean?  wrapper_class

请注意我在我的项目中不使用像SimpleForm这样的任何宝石。

我的红宝石版本是:2.4.1

2 个答案:

答案 0 :(得分:0)

它与client_side_validation gem兼容性有关。

https://github.com/rafaelfranca/simple_form-bootstrap/issues/4

详细了解

答案 1 :(得分:0)

看起来您正在运行旧版本的simple_form尝试将其升级到最新版本。这应该适用于rails 5.如果您在Gemfile中指定版本,请删除版本标记,然后运行bundle update