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 ( http://rmagick.rubyforge.org/portfolio.html ) 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 (http://rubyforge.org/projects/rmagick/), 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. Thanks -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
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 /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/universal-darwin9.0 -I /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/include -o "/Users/chris/.ruby_inline/Inline_ImageScience_aa58.bundle" "/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 /Users/chris/.ruby_inline/Inline_ImageScience_aa58.c.bad RAILS_ROOT: /Users/chris/Documents/Projects/Rails/CommunityCMS/trunk Application Trace | Framework Trace | Full Trace /Library/Ruby/Gems/1.8/gems/RubyInline-3.6.5/lib/inline.rb:402:in `build'' /Library/Ruby/Gems/1.8/gems/RubyInline-3.6.5/lib/inline.rb:679:in `inline'' /Library/Ruby/Gems/1.8/gems/image_science-1.1.3/lib/image_science.rb:84 app/models/member.rb:7 app/controllers/members_controller.rb:12:in `index'' This error occurred while loading the following files: image_science -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
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. -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
turns out the error was because I forgot to set the multipart = true. :) ImageScience is now working beautifully. -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---