rubyzip with Ruby 1.9.2 and Rails 3.1 - require 'zip/zip' fails

I'm trying to move my application from Rails 2.3.5 to Rails 3.1 which is
a challenge.

In my application,
require 'zip/zip'
fails with 'no such file to load -- zip/zip

gem list --local
shows
rubyzip (0.9.4)

I see zip.rb in
d:\ruby192\lib\ruby\gems\1.9.1\gems\rubyzip-0.9.4\lib\zip\

I'm trying to move my application from Rails 2.3.5 to Rails 3.1 which is
a challenge.

In my application,
require 'zip/zip'
fails with 'no such file to load -- zip/zip

Take this require out of wherever you're putting it now, and put this line in Gemfile:

gem 'rubyzip', :require => 'zip/zip'

Walter

cat Gemfile

Walter Davis wrote in post #1023269:

If you're not running in a bundler environment, then certainly you can simply do this:

require 'rubygems'
require 'zip/zip'

and you'll be good to go. But inside an application that is running bundler, I have found that it's much better to stay with one approach -- do it the bundler way -- and let it sort out the dependencies and load order and everything else. Fewer moving parts that way.

Walter