문제

Using carmen-rails to generate a country select element in my billing address form.

 country_select(:card, :country, {priority: ['United States', 'Canada']}, id: 'country')

The above usage causes the following error:

 NoMethodError: undefined method `-' for {:priority=>["United States", "Canada"]}:Hash

I have tried leaving out the priority option but the issues remains.

도움이 되었습니까?

해결책

The issue was the result of having other gems installed.

I had installed country-select gem version 1.1.1

To resolve the issue I just had to remove the gem.

gem uninstall country-select
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top