0

我正在为我的一个模型使用 money-rails gem 来存储制造成本。

在我的模型中,我有 -

monetize :cost_of_manufacturing_cents

在 _form.html 视图中我有 simple_form :

f.input :cost_of_manufacturing

但是,当我运行项目/新路线时,出现以下错误

undefined method `cost_of_manufacturing' for #<Item:0x007fe34a5feaf8>

我该如何解决这个问题?

4

0 回答 0