在我的Rails 4.2应用程序中,文件上传不再适用于具有以下内容的模型
acts_as_nested_set counter_cache: :children_count, touch: true删除此行后,上载将重新开始工作。我使用Carrierwave和fog-google gem通过RailsAdmin管理内容。其他型号的文件上传工作正常,使用相同的上传器。我可以更新或创建记录,但图像没有上传。它失败了,没有任何错误。
发布于 2017-05-13 03:59:18
在模型中设置uploader后移动acts_as_nested_set counter_cache: :children_count, touch: true解决了这个问题。
https://stackoverflow.com/questions/43944006
复制相似问题