回形针中打破的回形针图像3.1rc4 [英] paperclip image broken in rails 3.1rc4

查看:101
本文介绍了回形针中打破的回形针图像3.1rc4的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在将Rails 3.1rc4与回形针一起使用,因此无法上传任何图像文件.我不断收到此错误
图片D:/Users/MOBILE/AppData/Local/Temp/stream20110612-3872-y7hmme-0.jpg不被'identify'命令识别.我已经安装了imagemagic.但是它可以在< = rails 3.0.8rc4中使用.

I am using rails 3.1rc4 with paperclip and i cannot upload any image file with. I keep getting this error
Image D:/Users/MOBILE/AppData/Local/Temp/stream20110612-3872-y7hmme-0.jpg is not recognized by the 'identify' command. I have imagemagic installed. But it works in <= rails 3.0.8rc4.

推荐答案

我不确定这是否可以解决您的特定问题,但我发现了这一问题,也许与它有关:

I am not sure if this will adress your specific issue but I found this and maybe its related:

https://github.com/thoughtbot/paperclip/issues/481

它指出: 回形针:刷新:元数据rake任务在Rails 3.1上失败,因为ActiveRecord不再支持instance.save(false)-您现在必须改为使用instance.save(:validate => false).

It states: The paperclip:refresh:metadata rake task fails with Rails 3.1 as ActiveRecord no longer supports instance.save(false) - you must now use instance.save(:validate => false) instead.

这篇关于回形针中打破的回形针图像3.1rc4的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆