Breen ho
Breen ho

Reputation: 1631

Is there support for country-select gem in Rails 5?

I am getting the following error in Rails 5. When I click create new user button via ActiveAdmin and it throws this error, FYI, User table has the field 'country' and i have used, gem 'country-select' in my Gemfile.

wrong number of arguments (given 4, expected 0)

Upvotes: 0

Views: 348

Answers (2)

Ajay Barot
Ajay Barot

Reputation: 1680

Looks like country_select providing support for rails5. I installed rails5 and executed the test suite and all spec are passing.

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

May be your syntax is wrong usage

Upvotes: 1

Breen ho
Breen ho

Reputation: 1631

I just resolved it by changing the gem. I replaced gem 'country-select' with gem 'country_select' in my Gemfile.

This works fine now.

Upvotes: 1

Related Questions