Rails 3 - Require - Path Not Found

I have:

Windows XP Professional SP3
Ruby 1.8.7
Rails 3.0.10
Bundler 1.0.15
ImageMagick 6.5.6 Q8
Rmagick 2.12.9

My gemfile:

gem ‘rmagick-2.12.0-x86-mswin32’, ‘2.12.0’, :path => ‘c:/sites/
uplodify/vendor’

My controller:

require ‘RMagick’

Here I have installed my rmagick gem:

c:/ruby/ruby187/lib/ruby/gems/1.8/gems/rmagick-2.12.0-x86-mswin32/

But when I launch the controller, there is a message:

no such file to load – RMagick

Then, I change require ‘RMagick’ to require ‘c:/ruby/ruby187/lib/ruby/
gems/1.8/gems/rmagick-2.12.0-x86-mswin32/lib/RMagick.rb’, and it’s
working!!!

Question:

why require ‘RMagick’ is not working, but require ‘c:/ruby/ruby187/lib/
ruby/gems/1.8/gems/rmagick-2.12.0-x86-mswin32/lib/RMagick.rb’ is
working???

Thanks a lot!

On Aug 31, 1:42pm, Alexie D. [email protected] wrote:

gem ‘rmagick-2.12.0-x86-mswin32’, ‘2.12.0’, :path => ‘c:/sites/
uplodify/vendor’

Well you’re telling bundler that your rmagick gem is in ‘c:/sites/
uplodify/vendor’
but from what you’ve written below it seems like it’s in the normal
location. Have you tried removing the path option ?

Fred

In your opinion, what does :path do in this line:

gem ‘rmagick-2.12.0-x86-mswin32’, ‘2.12.0’, :path => 'c:/sites/