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:in
initialize’
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:in
initialize’
#{RAILS_ROOT}/app/controllers/captcha_controller.rb:8:in new' #{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