好吧,所以這是我第二次遇到這個問題 - 請參閱前面的問題Rails paperclip img upload error: "no file chosen" with rmagick installed。Rails回形針,ImageMagick img上傳錯誤 - '沒有選擇文件'
由於我沒有提出適當的解決方案,我不確定是什麼原因造成的。從我的研究看來,這是因爲我在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>
什麼想法?
謝謝!
我沒有我的機器上運行Apache ... – emilsw