我得到一个错误,看起来像这样:
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'在我单击submit进行注册后。我正在使用Carrierwave,并遵循了使用它的步骤,但仍然有一个错误。
发布于 2011-07-26 05:28:19
CarrierWave不支持attribute_will_change!调用,至少我遇到过几次这个错误。遵循CarrierWave's wiki上的How to: Detect a new file in a mounted uploader提供的类似功能的步骤。
https://stackoverflow.com/questions/6822498
复制相似问题