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

后端 未结 7 1881
梦谈多话
梦谈多话 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

    After spending lot of time, I finally figured out the missing part. When using the rubyzip gem, I also had to require zip/zip.

    Add this to your Gemfile

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

    Just adding gem 'rubyzip did not work for me.

提交回复
热议问题