# Undefined method \`add\_to\_rails\_paths' for #\<Module:0x3f72698

**URL:** <https://www.ruby-forum.com/t/undefined-method-add-to-rails-paths-for-module-0x3f72698/189458>\
**Category:** Rails\
**Created:** [June 1, 2010, 11:52am UTC](https://www.ruby-forum.com/t/undefined-method-add-to-rails-paths-for-module-0x3f72698/189458 "2010-06-01T11:52:43Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![miked](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/ed655f/32.png) [@miked](https://www.ruby-forum.com/u/miked)\
**Post date:** [June 1, 2010, 11:52am UTC](https://www.ruby-forum.com/t/undefined-method-add-to-rails-paths-for-module-0x3f72698/189458/1 "2010-06-01T11:52:43Z")

</div>

Hi,  
I have added “config.gem “pdf-writer”, :version=\>‘1.1.8’” in my  
application’s environment.rb so that I can use “rake gems:install” for  
installing all gems.

My problem is whenever I am running the command “rake gems:install” in  
application’s dir it is giving me following error:-  
“undefined method `add\_to\_rails\_paths’ for #Module:0x3f72698”

Anyone have any idea how to solve this?

Thanks,  
Mike
