Jazzy Buddy
2007-Apr-11 13:49 UTC
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
<b><i>
class CaptchaController < ApplicationController
def sample_testing_captcha
cat = ImageList.new("images/logo.JPEG")
end
end
</i></b>
I am getting the error like
<b><i>
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></b>
I am unable to find where exactly the problem is .....
Can some body help me?????
THNX in advance
--
Posted via http://www.ruby-forum.com/.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Talk" group.
To post to this group, send email to
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---
hemant
2007-Apr-11 13:54 UTC
Re: RMagick: unable to open image `big-duck.gif'': No such file
On 4/11/07, Jazzy Buddy <rails-mailing-list-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org> wrote:> > 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 > > <b><i> > class CaptchaController < ApplicationController > > def sample_testing_captcha > cat = ImageList.new("images/logo.JPEG") > end > > end > </i></b> > > I am getting the error like > > <b><i> > 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></b> > > I am unable to find where exactly the problem is ..... > > Can some body help me????? > > THNX in advancecat = 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 --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---