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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
There is a typo in initilizer. Also require ''rubygems` in your code before requiring zip/zip 2010/3/24 Jay <janus.ng-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>> 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
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...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> There is a typo in initilizer. Also require ''rubygems` in your code before > requiring zip/zip > > 2010/3/24 Jay <janus...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> > > > > > 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org 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.
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. -- 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.