4

我收到如下所示的错误:

   NoMethodError (undefined method `image_will_change!' for #<Bar:0x24ddda0>):
  app/controllers/bars_controller.rb:43:in `new'
  app/controllers/bars_controller.rb:43:in `create'

在我点击提交注册后。我正在使用 Carrierwave 并已按照步骤使用它,但仍然有错误。

4

1 回答 1

4

CarrierWave 不支持attribute_will_change!通话,至少我遇到过几次这个错误。按照如何:CarrierWave 的 wiki上的已安装上传器中检测新文件中的步骤操作,该文件提供类似的功能。

于 2011-07-25T21:28:19.477 回答