Rmagick gem path problem?

I am having a slight problem getting the
rmagick gem loaded with rails…

I can do this:

require ‘RMagick’
=> true
Magick.inspect
=> “Magick”

but this does not work:

require ‘rubygems’
=> true
require_gem ‘rmagick’
=> true
Magick.inspect
NameError: uninitialized constant Magick
from (irb):3

any ideas?

On Apr 3, 2006, at 9:48 PM, bmgz wrote:

require ‘rubygems’
=> true
require_gem ‘rmagick’
=> true
Magick.inspect
NameError: uninitialized constant Magick
from (irb):3

any ideas?

See:

http://groups.google.com/group/comp.lang.ruby/browse_frm/thread/
97fc6d4401e1dc47/44794c4fdb29c3bb?rnum=2#44794c4fdb29c3bb

– Daniel

Daniel H. wrote:

See:

http://groups.google.com/group/comp.lang.ruby/browse_frm/thread/

97fc6d4401e1dc47/44794c4fdb29c3bb?rnum=2#44794c4fdb29c3bb

– Daniel

Ok, then if RAILS is using require ‘RMagick’ then everything
should be fine, alas it’s some RAILS environment path that
needs to be set…

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs