As work continues on my super-secret (but really not all that secret) web application built in Rails, I’ve run into a number of problems…none of which have kept from my progressing (except for getting Thinking Sphinx working. That…that I have no idea about but I’m using SearchLogic instead…maybe…if I can get that issue figured out).
Anyway, my latest addition to the app is the ability to add a photo via Paperclip.
I was getting an error every time I tried to attach a photo to a post. It read something similar to: “xxx is not recognized by the ‘identify’ command.” And I had no idea what it could mean. ImageMagick (the awesome software needed to do resizing of uploaded photos on the fly) was installed correctly on my server and verified working by me. I got the migrations completed successfully…so what was it?
Apparently it was an issue with Paperclip not knowing exactly where ImageMagick was installed. By following the advice here, I added the following line of code to my development.rb and production.rb files
Paperclip.options[:command_path] = "/usr/local/bin"
restarted the Passenger server powering my app and everything worked as it should.











