# Requiring vendor code in rake tasks

**URL:** <https://www.ruby-forum.com/t/requiring-vendor-code-in-rake-tasks/139364>\
**Category:** Rails\
**Created:** [June 3, 2008, 9:22am UTC](https://www.ruby-forum.com/t/requiring-vendor-code-in-rake-tasks/139364 "2008-06-03T09:22:09Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Diego](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/f04885/32.png) [@Diego](https://www.ruby-forum.com/u/Diego)\
**Post date:** [June 3, 2008, 9:22am UTC](https://www.ruby-forum.com/t/requiring-vendor-code-in-rake-tasks/139364/1 "2008-06-03T09:22:09Z")

</div>

Hi all,

I currently am using the rubyzip library, which is located in the  
Rails vendor directory (vendor/rubyzip-0.9.1), which I just use with  
“requite ‘zip/zip’”. But I am not able to use the same require to use  
rubyzip in a rake task (in lib/tasks). If I do use that require I get  
the error:

“no such file to load – zip/zip”

I was wondering if it was possible to use this rubyzip library which  
resides in the vendor directory?

Any help would be appreciated.

Cheers,  
Diego
