在铁路5中,是否有支持国家选择的宝石



我在Rails 5中遇到以下错误。当我通过ActiveAdmin单击创建新用户按钮时,它会引发此错误,FYI,用户表具有" country",我已经使用了,我的宝石中的宝石"乡村选择"。

wrong number of arguments (given 4, expected 0)

我只是通过更改宝石来解决它。我用gemfile中的 gem 'country-select'替换了 CC_1。

现在正常工作。

看起来像country_select为Rails5提供支持。我安装了rails5并执行了测试套件,所有规格都通过。

Run options: include {:focus=>true}
All examples were filtered out; ignoring {:focus=>true}
Randomized with seed 45263
...................
Finished in 1.87 seconds (files took 0.94449 seconds to load)
19 examples, 0 failures
Randomized with seed 45263

可能是您的语法错误用法

最新更新