使用carmen在我的账单地址表单中生成一个国家选择元素。
country_select(:card, :country, {priority: ['United States', 'Canada']}, id: 'country')以上使用会导致以下错误:
NoMethodError: undefined method `-' for {:priority=>["United States", "Canada"]}:Hash我曾尝试忽略优先选择,但问题仍然存在。
发布于 2013-09-30 13:20:20
这个问题是安装了其他宝石的结果。
我安装了country-选择了gem版本1.1.1
为了解决这个问题,我只需要移除宝石。
gem uninstall country-selecthttps://stackoverflow.com/questions/19095342
复制相似问题