# Including gems in rails projects. Gemonrails error

**URL:** <https://www.ruby-forum.com/t/including-gems-in-rails-projects-gemonrails-error/139565>\
**Category:** Rails\
**Created:** [June 5, 2008, 12:20am UTC](https://www.ruby-forum.com/t/including-gems-in-rails-projects-gemonrails-error/139565 "2008-06-05T00:20:42Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![pood](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/3bc359/32.png) [@pood](https://www.ruby-forum.com/u/pood)\
**Post date:** [June 5, 2008, 12:20am UTC](https://www.ruby-forum.com/t/including-gems-in-rails-projects-gemonrails-error/139565/1 "2008-06-05T00:20:42Z")

</div>

I’m trying to load mechanize to my rails app with gemsonrails, but when  
I try to start up my server I get this error:

“ERROR: Please update cygdrive/c/Documents and  
Settings/Feng/ruby/project/playerman/vendor/gems/mechanize-0.7.6/init.rb  
with the require path for linked RubyGem mechanize”

Also tried doing a require ‘mechanize’ on my controller, I get this:

“can’t activate rubyforge (\>= 1.0.0), already activated  
rubyforge-0.4.5]”

how exactly do you include gems, and where? I read you’re suppose to  
include it in the environment.rb file.

thanks

---

<div class="post-metadata">

**Author:** ![pood](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/3bc359/32.png) [@pood](https://www.ruby-forum.com/u/pood)\
**Post date:** [June 5, 2008, 5:43am UTC](https://www.ruby-forum.com/t/including-gems-in-rails-projects-gemonrails-error/139565/2 "2008-06-05T05:43:55Z")

</div>

Feng T. wrote:

> I’m trying to load mechanize to my rails app with gemsonrails, but when  
> I try to start up my server I get this error:
> 
> “ERROR: Please update cygdrive/c/Documents and  
> Settings/Feng/ruby/project/playerman/vendor/gems/mechanize-0.7.6/init.rb  
> with the require path for linked RubyGem mechanize”
> 
> Also tried doing a require ‘mechanize’ on my controller, I get this:
> 
> “can’t activate rubyforge (\>= 1.0.0), already activated  
> rubyforge-0.4.5]”
> 
> how exactly do you include gems, and where? I read you’re suppose to  
> include it in the environment.rb file.
> 
> thanks

You can unpack any installed gem into the vendor folder under your app.

See: [http://www.rubygems.org/read/chapter/10](http://www.rubygems.org/read/chapter/10)

Section 2.16 is what you want to read.
