Target 的单复数相同时的问题
jundihuang opened this issue · 3 comments
jundihuang commented
user.collect_goods
ArgumentError: wrong number of arguments (given 0, expected 1)
是被 collect_goods(goods) 方法覆盖了
huacnlee commented
避开问题,换个名字
huacnlee commented
或者配置 Rails inflections:
ActiveSupport::Inflector.inflections(:en) do |inflect|
inflect.irregular 'goods', 'goodes`
endjundihuang commented
thx