Using rubyzip error - no such file to load — zip/zip

后端 未结 7 1880
梦谈多话
梦谈多话 2020-12-06 09:37

I know there is another thread on this subject but I still face this problem even after using all solutions. Is there any other way to generate zip files? Can i use Ubuntu s

7条回答
  •  误落风尘
    2020-12-06 09:54

    In my case I was needed to change from

    Zip::File.open(...)
    

    to

    Zip::ZipFile.open(...)
    

    of course I need to also add this to Gemfile:

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

提交回复
热议问题