Uploading an image file with Paperclip (in RoR) causing error.
        Posted  
        
            by 
                mtay
            
        on Stack Overflow
        
        See other posts from Stack Overflow
        
            or by mtay
        
        
        
        Published on 2011-01-12T07:49:26Z
        Indexed on 
            2011/01/12
            7:53 UTC
        
        
        Read the original article
        Hit count: 211
        
ruby-on-rails
|paperclip
This should be a simple thing to do, but I'm running into a wall and I'm not sure how to debug this response.
In my Image model, I have:
class Image < ActiveRecord::Base
  has_attached_file :image, :styles => {  :display => "500x500>",
                                          :thumbnail => "95x95>"}
Then in my Views, my form contains this:
-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
In my Mysql table, I have a column called "image_file_name" (string).
However, when I try to upload an image and submit it, I see
2 errors prohibited this from being saved
There were problems with the following fields:
Image Paperclip::CommandNotFoundError
Image Paperclip::CommandNotFoundError
What am I doing wrong? Thank you for your help!
© Stack Overflow or respective owner