Forums | Admin

Discussion Forums: open-discussion

Start New Thread Start New Thread

 

By: Corey J
RE: Please help - getting started [ reply ]  
2006-03-14 00:45
The readme is a bit out of date. I need to fix that.
If you installed the gem all you should have to do is put this in the file where you use miniMagick...
require 'mini_magick'

You could also place it in your RAILS_ROOT/config/environment.rb file.

I'll try to get a plugin version that you could just copy into the vendor/plugins if that doesn't work for you.

By: Peter O'Shaughnessy
RE: Please help - getting started [ reply ]  
2006-03-13 22:33
Sorry - this should go in the Help section!

By: Peter O'Shaughnessy
Please help - getting started [ reply ]  
2006-03-10 21:50
Hi,

I just tried installing MiniMagick. I ran gem install mini_magick-1.0.1.gem, then (having read the Readme) I copied the .rb file into my app's vendor/plugins directory. But when I tried to use it in my code I got the following error:

uninitialized constant MiniMagick

RAILS_ROOT: script/../config/..
Application Trace | Framework Trace | Full Trace

/usr/local/lib/ruby/gems/1.8/gems/activesupport-1.2.5/lib/active_support/dependencies.rb:200:in `const_missing'
...
[hundreds of entries]
...
/usr/local/lib/ruby/gems/1.8/gems/activesupport-1.2.5/lib/active_support/dependencies.rb:214:in `require'
script/server:3

This error occured while loading the following files:
mini_magick.rb


I have ImageMagick installed. Any ideas where I'm going wrong?

Cheers,

kitchenboy