我得到的是这样的一个错误:carrierwave - 轨道3.1-未定义的方法:image_will_change
undefined method `post_image_will_change!' for #<Post:0xf4e9184>
app/controllers/posts_controller.rb:43:in `new'
app/controllers/posts_controller.rb:43:in `create'
我在我的 “后” 的模式包括在此:
attr_accessible :title, :name, :content, :post_image
mount_uploader :post_image, PostImageUploader
和_form .html.erb我说:
:html => { :multipart => true }
我看着CarrierWave Error但是这并不能帮助我。
任何生成该错误的线索?我已经迁移数据库等等(后面的载波波导指南载波正好..)
你能分享你的'posts_controller.rb'文件吗? –
是否为图像添加了新的迁移文件?:) – anand
manged修复它..已经作出了一个极端的新秀misstake。 Ty无论如何 – buren