jay
1
First of all, Let me list my configurations:
FreeBSD 8.0
Ruby 1.9.1p376
Rails 2.3.5
rubyzip 0.9.4 installed in /usr/local/lib/ruby19/gems/1.9/gems/
rubyzip-0.9.4
I have placed the following line inside Rails::Initializer.run block
cconfig.gem ‘rubyzip’, :lib => ‘zip/zip’
However, I got a “no such file to load – zip/zip” error while I have
placed a line in a controller file
require ‘zip/zip’.
Could somebody give me a hand? Thanks in advance!
jay
2
Thanks for replying, Gintautas.
The typo was not in the environment.rb.
I did try to add "require ‘rubygems’ " before require ‘zip/zip’ but it
still doesn’t work.
nor "require ‘composite_primary_keys’ " works.
It seems the gems installed is not recognized at all. :’ (
jay
3
There is a typo in initilizer. Also require 'rubygems` in your code
before
requiring zip/zip
2010/3/24 Jay [email protected]
jay
4
Furthermore, I have tried to add
ENV[‘GEM_PATH’] = ‘/usr/local/lib/ruby19/gems/1.9’
at the beginning of the environment.rb but still failed.