好的,所以这是我第二次遇到这个问题 - 请参阅上一个问题Rails paperclip img upload error: "no file selected" with rmagick installed。
由于我没有想出正确的解决方案,我不确定是什么原因造成的。从我的研究看来,这是因为我使用的是 Windows 7。
我没有对模型或表格进行任何更改。
但是当我尝试使用嵌套表单时 - 我只是得到“没有选择文件”
但是从控制台创建图像后:
<te :image => File.open('C:/sites/thrillb/app/assets/images/ins1.jpg')
identify.exe: unable to open image `file': No such file or directory @ error/blo
b.c/OpenBlob/2641.
identify.exe: no decode delegate for this image format `file' @ error/constitute
.c/ReadImage/544.
identify.exe: unable to open image `file': No such file or directory @ error/blo
b.c/OpenBlob/2641.
identify.exe: no decode delegate for this image format `file' @ error/constitute
.c/ReadImage/544.
identify.exe: unable to open image `file': No such file or directory @ error/blo
b.c/OpenBlob/2641.
identify.exe: no decode delegate for this image format `file' @ error/constitute
.c/ReadImage/544.
=> #<Image id: nil, image_file_name: "ins1.jpg", image_content_type: "image/jpeg
", image_file_size: 293718, image_updated_at: "2012-11-03 10:17:11", trip_id: ni
l, created_at: nil, updated_at: nil, title: nil, location_id: nil>
irb(main):002:0>
有任何想法吗?
谢谢!