Rails 5で次のエラーが表示されます。ActiveAdminで新しいユーザーボタンを作成すると、このエラーが発生します。FYIユーザーテーブルには 'country'フィールドがあり、gem 'country-select' Gemfile。Rails 5でcountry-select gemをサポートしていますか?
wrong number of arguments (given 4, expected 0)
Rails 5で次のエラーが表示されます。ActiveAdminで新しいユーザーボタンを作成すると、このエラーが発生します。FYIユーザーテーブルには 'country'フィールドがあり、gem 'country-select' Gemfile。Rails 5でcountry-select gemをサポートしていますか?
wrong number of arguments (given 4, expected 0)
間違っている可能性があります。私はgem 'country-select'
を私のGemfileのgem 'country_select'
に置き換えました。
これで問題はありません。
rails5をサポートするように見えるcountry_select
のように見えます。私は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
あなたの構文は、私はちょうど宝石を変更することによってそれを解決しusage
お返事ありがとうございました@ABPrime –