# Warning: Gem::SourceIndex#search

**URL:** <https://www.ruby-forum.com/t/warning-gem-sourceindex-search/172404>\
**Category:** Rails\
**Created:** [July 21, 2009, 1:17am UTC](https://www.ruby-forum.com/t/warning-gem-sourceindex-search/172404 "2009-07-21T01:17:42Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Renzo](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/439d5e/32.png) [@Renzo](https://www.ruby-forum.com/u/Renzo)\
**Post date:** [July 21, 2009, 1:17am UTC](https://www.ruby-forum.com/t/warning-gem-sourceindex-search/172404/1 "2009-07-21T01:17:42Z")

</div>

C:\Ruby\SITES\firstproject\>cd…

C:\Ruby\SITES\>cd myapp

C:\Ruby\SITES\myapp\>ruby script/server  
./script/…/config/boot.rb:25:Warning: Gem::SourceIndex#search support  
for Strin  
g patterns is deprecated, use #find\_name  
./script/…/config/boot.rb:28: undefined method `require_gem' for main:Object (N oMethodError) from C:/Ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb: 31:in `ge  
m\_original\_require’  
from C:/Ruby/lib/ruby/site\_ruby/1.8/rubygems/custom\_require.rb:  
31:in `re  
quire’  
from script/server:2

C:\Ruby\SITES\myapp\>

> > Good day to all of the member of RoR Talk Group!

I’m having a problem with running this sample script on my tutorials  
at [Lynda.com](http://Lynda.com).  
It displayed the following message above…

To people who know this one, can you tell me what’s the problem… .  
with the sample script.

thanks and have a nice day ahed. =)

---

<div class="post-metadata">

**Author:** ![Renzo](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/439d5e/32.png) [@Renzo](https://www.ruby-forum.com/u/Renzo)\
**Post date:** [July 21, 2009, 3:12pm UTC](https://www.ruby-forum.com/t/warning-gem-sourceindex-search/172404/2 "2009-07-21T15:12:57Z")

</div>

The tutorial you are using must be ancient - require\_gem was  
deprecated quite some time ago. You may want to find a more recent  
example…

–Matt J.
