0
這應該是一件簡單的事情要做,但我跑到牆上,我不知道如何調試此響應。上傳一個圖像文件與回形針(RoR)導致錯誤
在我的圖像模型,我有:
class Image < ActiveRecord::Base
has_attached_file :image, :styles => { :display => "500x500>",
:thumbnail => "95x95>"}
然後在我的意見,我的表單包含此:
-form_for @image, :html => { :multipart => true } do |image|
%tr
%td.woc_left
=label_tag :image, 'photo to upload', :class => 'required'
%td.woc_center
=image.file_field :image
在我的MySQL表,我稱一列 「映像文件」(串)。
然而,當我嘗試上傳圖片並提交,我看到
2 errors prohibited this from being saved
There were problems with the following fields:
Image Paperclip::CommandNotFoundError
Image Paperclip::CommandNotFoundError
我在做什麼錯?感謝您的幫助!
除非ImaceMagik正確設置回形針不起作用,你可以在控制檯上運行'identify image.jpeg'嗎?如果沒有,ImageMagik是問題 – Draiken 2011-01-12 10:56:08