Uninitialized constant ImageList

I’m trying to use RMagick with Rails. I installed RMagick with:
gem -y install rmagick

It stated it installed successfully, despite some messages that wmf2eps
wasn’t found (I don’t have
libwmf installed - it’s not required, is it?).

In my controller I put:

require ‘RMagick’

clown = Magick::ImageList.new(“clown.jpg”)
clown = clown.rotate(90)
clown.write(‘rotate.jpg’)

Using an actual existing image. Then when I try it, I get this:

uninitialized constant ImageList

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

/usr/local/lib/ruby/gems/1.8/gems/activesupport-1.2.3/lib/active_support/dependencies.rb:200:in
`const_missing’

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

Any idea what the problem is and how to fix it?

thanks
csn


Yahoo! Mail - PC Magazine Editors’ Choice 2005

Weird. If I put the same clown code in a file and run it from the
command line, it works. Could it
be a problem with some Rails path var, permissions, or something?

csn

— CSN [email protected] wrote:

Application Trace | Framework Trace | Full Trace
thanks
[email protected]
http://lists.rubyonrails.org/mailman/listinfo/rails


Yahoo! Mail - PC Magazine Editors’ Choice 2005

Jeez, turns out file_column was interferring. Trying to load its
libraries or something. I
uninstalled it and restarted webrick. How aggravating…

csn

— CSN [email protected] wrote:

I’m trying to use RMagick with Rails. I installed RMagick with:
clown = Magick::ImageList.new(“clown.jpg”)

thanks
[email protected]


Rails mailing list
[email protected]
http://lists.rubyonrails.org/mailman/listinfo/rails


Yahoo! FareChase: Search multiple travel sites in one click.
http://farechase.yahoo.com