Forum: Ruby on Rails uninitialized constant ImageList

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
81194a50c0f9bd95d7832a77fdf371bd?d=identicon&s=25 cool_screen_name90001 (Guest)
on 2005-11-18 19:11
(Received via mailing list)
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
http://mail.yahoo.com
81194a50c0f9bd95d7832a77fdf371bd?d=identicon&s=25 cool_screen_name90001 (Guest)
on 2005-11-18 20:50
(Received via mailing list)
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 <cool_screen_name90001@yahoo.com> wrote:

>
> Application Trace | Framework Trace | Full Trace
> thanks
> Rails@lists.rubyonrails.org
> http://lists.rubyonrails.org/mailman/listinfo/rails
>





__________________________________
Yahoo! Mail - PC Magazine Editors' Choice 2005
http://mail.yahoo.com
81194a50c0f9bd95d7832a77fdf371bd?d=identicon&s=25 cool_screen_name90001 (Guest)
on 2005-11-18 21:42
(Received via mailing list)
Jeez, turns out file_column was interferring. Trying to load its
libraries or something. I
uninstalled it and restarted webrick. How aggravating...

csn


--- CSN <cool_screen_name90001@yahoo.com> wrote:

> > I'm trying to use RMagick with Rails. I installed RMagick with:
> > clown = Magick::ImageList.new("clown.jpg")
> >
> > thanks
> > Rails@lists.rubyonrails.org
> _______________________________________________
> Rails mailing list
> Rails@lists.rubyonrails.org
> http://lists.rubyonrails.org/mailman/listinfo/rails
>




__________________________________
Yahoo! FareChase: Search multiple travel sites in one click.
http://farechase.yahoo.com
This topic is locked and can not be replied to.