ruby on rails - Paperclip::Errors::NotIdentifiedByImageMagickError on Windows 7 -


i'm going through mattan griffel's "one month rails" (http://onemonthrails.com/) class. i'm trying use paperclip gem upload images. initial install , usage went fine, until added line reduce size of images. placed in app/models/pin.rb shown in tutorial:

    has_attached_file :image, styles: { medium: "320x240>" } 

it worked until styles: {} part added. have updated partial pass in :medium method.

i'm using: paperclip (3.4.1),cocaine (0.5.1) , rails (3.2.12). have seen other posts fixed homebrew, i'm on windows 7 machine , i'm doesn't apply. let me know if need post else.

i'm following same course. after several gem changes (trying older versions of cocaine, etcetera...) thing solved problem adding line pin.rb:

paperclip.options[:command_path] = 'c:/program files/imagemagick-6.8.5-q16' 

before belongs_to :user

(change path image magick install path)

after this, run bundle update , reset rails server.


Comments

Popular posts from this blog

Why does Ruby on Rails generate add a blank line to the end of a file? -

keyboard - Smiles and long press feature in Android -

node.js - Bad Request - node js ajax post -