1

I have two ruby files where one file is using "require 'zip/zip'" with rubyzip version '0.0.9' and other "require 'zip'" with rubyzip version 1.1.7. If use them separately(alone) its working fine.If i combine i am getting error like "no such file to load — zip/zip". How can i solve this?

My Ruby version : 1.9.3

Rails version : 2.3.14

Thanks.

user1770589
  • 375
  • 1
  • 6
  • 19

1 Answers1

2

The zip-zip is gem so you can write it in Gemfile. The zip however is an Array method, so you can use it without having to require.

usmanali
  • 2,028
  • 2
  • 27
  • 38