Paperclip在Windows下的那些Po事

[b][color=blue][size=x-large]1.Paperclip提示command is not recognized by the 'identify[/size][/color][/b]

破->
config\initializers目录下建立一个custom_requires.rb,然后...
例如:G:\Program Files\ImageMagick-6.5.6-Q8
应填入-->(不支持空格)
Paperclip.options[:command_path] = "XX:/PROGRA~1/ImageMagick-6.5.6-Q8" 


详细参考-->
Paperclip提示command is not recognized by the 'identify
[url]http://hot88zh.iteye.com/blog/859238[/url]
[color=blue][size=x-large]
[b]2.no decode delegate for this image format `C:/DOCUME~1/ROB~1.CML/LOCALS~1/Temp/stream.2692.0'.[/b][/size][/color] 貌似就是Windows上面中文路径无法上传那个事

破->
 has_attached_file :image,

:withy => false

貌似还有这个,可以看看-->
paperclip 上传文件(解决中文文件无法上传问题)
[url]http://malijun.iteye.com/blog/800850[/url]
[size=x-large][color=blue]
[b]3.ie上传提示 content type is not one of image/jpeg, image/png(这应该算是IE的破事吧)[/b][/color][/size]
破->
因为ie image MIME 和ff不同,修改model中验证为-->
validates_attachment_content_type :photo, :content_type => ['image/jpeg','image/png','image/pjpeg','image/x-png']



不知道还有没有其它了,反正记下三个用着先,有的可以补上,特别yuanyuan
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值