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. :' (
On Mar 24, 4:12 pm, Gintautas Å imkus <dihita...@gmail.com> wrote:
> There is a typo in initilizer. Also require 'rubygems` in your code before
> requiring zip/zip
>
> 2010/3/24 Jay <janus...@gmail.com>
>
>
>
> > 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!
--
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@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
No comments:
Post a Comment