2013-09-30 26 views
0

使用卡門鐵軌在我的帳單地址表單中生成國家選擇元素。卡門鐵路未定義方法「 - 」

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

以上使用會導致以下錯誤:

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

我試圖離開了優先選項,但問題依然存在。

回答

1

該問題是安裝了其他寶石的結果。

我已經安裝了國家的選擇寶石版本1.1.1

要解決的問題,我只是不得不刪除寶石。

gem uninstall country-select