Need help with RMagick for attachment_fu

I can’t get attachment_fu to save the images. I have rmagic and
imagemagick installed and if I run some of the scripts on this page ( ) it works as expected.

When I try to save an image file uploaded in a rails project it isn’t
saved, no folder is created and no messages are logged to give a hint to
what is wrong.

The last time I set things up and they worked I did so with the
following ruby script (,
unfortunately this time I tried installing Rmagick using the first
terminal commands and had a hard time uninstalling it which then caused
the later ruby script to fail.

All I want to do is upload and resize image, so I don’t really care
which library I use (rMagick, ImageScience, etc). So if anyone has a
foolproof way if setting those up I would love to hear how.


After installing ImageScience, I get the following message:

CompilationError in MembersController#index

error executing cc -arch ppc -arch i386 -pipe -bundle
-I/opt/local/include -fno-common -arch ppc -arch i386 -Os -pipe
-fno-common -I
-I /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/include -o
“/Users/chris/.ruby_inline/Inline_ImageScience_aa58.c” -L/opt/local/lib
-lfreeimage -lstdc++ -flat_namespace -undefined suppress: 256
Renamed /Users/chris/.ruby_inline/Inline_ImageScience_aa58.c to
RAILS_ROOT: /Users/chris/Documents/Projects/Rails/CommunityCMS/trunk

Application Trace | Framework Trace | Full Trace
build' /Library/Ruby/Gems/1.8/gems/RubyInline-3.6.5/lib/inline.rb:679:ininline’
app/controllers/members_controller.rb:12:in `index’
This error occurred while loading the following files:

I was able to get ImageMagick and RMagick setup properly, although
ImageScience still throws the error.

I would still be interested in ImageScience setup tips, or reasons for
the error I get, if anyone has them, otherwise I am good.

turns out the error was because I forgot to set the multipart = true. :slight_smile:
ImageScience is now working beautifully.

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs