# Installing fastercsv into vendor directory

**URL:** <https://www.ruby-forum.com/t/installing-fastercsv-into-vendor-directory/65103>\
**Category:** Rails\
**Created:** [August 16, 2006, 4:54am UTC](https://www.ruby-forum.com/t/installing-fastercsv-into-vendor-directory/65103 "2006-08-16T04:54:04Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![resgraph](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/cdc98d/32.png) [@resgraph](https://www.ruby-forum.com/u/resgraph)\
**Post date:** [August 16, 2006, 4:54am UTC](https://www.ruby-forum.com/t/installing-fastercsv-into-vendor-directory/65103/1 "2006-08-16T04:54:04Z")

</div>

I am using fastercsv to process input files. I want to install it into  
my app/vendor directory as a gem (I guess). I used ‘rake  
rails:freeze:gems’ to get rails into the vender dir. But I cannot find  
any doc on how to do it for fastercsv or any third-party gem. Any help  
appreciated.

---

<div class="post-metadata">

**Author:** ![resgraph](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/cdc98d/32.png) [@resgraph](https://www.ruby-forum.com/u/resgraph)\
**Post date:** [August 16, 2006, 5:52am UTC](https://www.ruby-forum.com/t/installing-fastercsv-into-vendor-directory/65103/2 "2006-08-16T05:52:28Z")

</div>

I just did this. rails:freeze:gems just freezes the gems that make up  
the rails distribution. There is a tutorial on how to freeze other  
gems at:

[http://www.hostingrails.com/forums/wiki\_thread/2](http://www.hostingrails.com/forums/wiki_thread/2)

It is specific for that host, but the process is generally the same.  
With my particular host I had problems with it finding the gem after I  
freezed it so id did a little work around.

In my environment.rb file I have

Rails::Initializer.run do |config|  
require\_gem ‘fastercsv’  
end

and I just copied the faster\_csv.rb and fastercsv.rb files in the /lib  
folder because it wasn’t reading them from the /vendor folder for some  
reason and that worked fine.

-Jake

---

<div class="post-metadata">

**Author:** ![resgraph](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/cdc98d/32.png) [@resgraph](https://www.ruby-forum.com/u/resgraph)\
**Post date:** [August 16, 2006, 7:24am UTC](https://www.ruby-forum.com/t/installing-fastercsv-into-vendor-directory/65103/3 "2006-08-16T07:24:01Z")

</div>

Thanx for the pointer and work around. Seems to be working for me.
