RMagick: unable to open image `big-duck.gif': No such file

Hai,

This is the first time I am trying RMagick.

I have a little problem when trying to create a small and simple
application involving RMagick.
I have installed RMagick and also ImageMagick.
The RMagick I have installed through gem install RMagick.
and the Imagick I have installed through the downloaded .exe file.

In the rails IDE, the way I have implemented it is

require ‘RMagick’
include Magick


class CaptchaController < ApplicationController

def sample_testing_captcha
cat = ImageList.new(“images/logo.JPEG”)
end

end

I am getting the error like


unable to open image `images/logo.JPEG’: No such file or directory

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

c:/ruby/lib/ruby/gems/1.8/gems/rmagick-1.14.1-win32/lib/RMagick.rb:1659:in
read' c:/ruby/lib/ruby/gems/1.8/gems/rmagick-1.14.1-win32/lib/RMagick.rb:1659:ininitialize’
c:/ruby/lib/ruby/gems/1.8/gems/rmagick-1.14.1-win32/lib/RMagick.rb:1658:in
each' c:/ruby/lib/ruby/gems/1.8/gems/rmagick-1.14.1-win32/lib/RMagick.rb:1658:ininitialize’
#{RAILS_ROOT}/app/controllers/captcha_controller.rb:8:in new' #{RAILS_ROOT}/app/controllers/captcha_controller.rb:8:insample_testing_captcha’
-e:4:in `load’
-e:4

I am unable to find where exactly the problem is …

Can some body help me???

THNX in advance

On 4/11/07, Jazzy B. [email protected] wrote:

end
Application Trace | Framework Trace | Full Trace
#{RAILS_ROOT}/app/controllers/captcha_controller.rb:8:in
sample_testing_captcha' -e:4:in load’
-e:4

I am unable to find where exactly the problem is …

Can some body help me???

THNX in advance

cat = ImageList.new(“#{RAILS_ROOT}/images/logo.JPEG”)


gnufied

There was only one Road; that it was like a great river: its springs
were at every doorstep, and every path was its tributary.
http://people.inxsasia.com/~hemant