# Editing environment.rb files

**URL:** <https://www.ruby-forum.com/t/editing-environment-rb-files/85223>\
**Category:** Ruby\
**Created:** [February 11, 2007, 6:25pm UTC](https://www.ruby-forum.com/t/editing-environment-rb-files/85223 "2007-02-11T18:25:34Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Rae](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/c37758/32.png) [@Rae](https://www.ruby-forum.com/u/Rae)\
**Post date:** [February 11, 2007, 6:25pm UTC](https://www.ruby-forum.com/t/editing-environment-rb-files/85223/1 "2007-02-11T18:25:34Z")

</div>

I did a search on the internet to try to find a way to get rid of  
message:  
C:0:Warning: require\_gem is obsolete. Use gem instead.

I found in an old archive, the following suggestion:  
"You can fix it in environment.rb. Find the ‘require\_gem’ lines and  
replace them with ‘gem’ "

When I do a search on my computer for this environment.rb file, I  
find several of them in various folders, but many do not show up as to  
their location. If I right click on them from the search window, (This  
is all in Windows XP), it has an open option, but no open with option.  
So I don’t know how to get to that environment.rb file. I can change  
all othe others but not sure if that will change these Ruby files.

Rae

---

<div class="post-metadata">

**Author:** ![Rae](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/c37758/32.png) [@Rae](https://www.ruby-forum.com/u/Rae)\
**Post date:** [February 11, 2007, 7:59pm UTC](https://www.ruby-forum.com/t/editing-environment-rb-files/85223/2 "2007-02-11T19:59:39Z")

</div>

On 2/11/07, Rae [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> their location. If I right click on them from the search window, (This  
> is all in Windows XP), it has an open option, but no open with option.  
> So I don’t know how to get to that environment.rb file. I can change  
> all othe others but not sure if that will change these Ruby files.
> 
> Rae

Hi Rae,  
The environment.rb suggestion is only if you use Ruby on Rails. The  
warning is given by libraries you might use that are out of date, and  
use the recently deprecated require\_gem, you need to wwait for the  
maintainer to update the package

---

<div class="post-metadata">

**Author:** ![Rae](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/c37758/32.png) [@Rae](https://www.ruby-forum.com/u/Rae)\
**Post date:** [February 11, 2007, 9:50pm UTC](https://www.ruby-forum.com/t/editing-environment-rb-files/85223/3 "2007-02-11T21:50:47Z")

</div>

On Feb 11, 1:59 pm, “Chris C.” [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> > replace them with ‘gem’ "  
> > Hi Rae,
> 
> - Show quoted text -  
> Thanks for the reply.  
> I use InstantRails.exe .  
> I’m not sure what you mean by  
> “wait[ing] for the maintainer to update the package.”

But if its not going to affect my ability to play with the program or  
run tutorials and such, I won’t worry about it.  
Rae

---

<div class="post-metadata">

**Author:** ![Rae](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/c37758/32.png) [@Rae](https://www.ruby-forum.com/u/Rae)\
**Post date:** [February 12, 2007, 12:59pm UTC](https://www.ruby-forum.com/t/editing-environment-rb-files/85223/4 "2007-02-12T12:59:51Z")

</div>

On Mon, Feb 12, 2007 at 02:25:05AM +0900, Rae wrote:

> their location.  
> As usual, the best way to do anything in Windows is to do it in DOS 🙂  
> Start -\> Run… cmd

C:\> dir \environment.rb /s

will find you all the files (with their locations!), and

C:\> edit \path\to\environment.rb

will let you edit them.

Regards,

Brian.

---

<div class="post-metadata">

**Author:** ![Rae](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/c37758/32.png) [@Rae](https://www.ruby-forum.com/u/Rae)\
**Post date:** [February 13, 2007, 11:26pm UTC](https://www.ruby-forum.com/t/editing-environment-rb-files/85223/5 "2007-02-13T23:26:05Z")

</div>

On 2/11/07, Rae [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> > > I found in an old archive, the following suggestion:  
> > > Rae  
> > > brynmawrcs.com- Hide quoted text -  
> > > run tutorials and such, I won’t worry about it.  
> > > Rae

It won’t have any affect other than being annoying. An update to Instant  
Rails is coming soon.

Curt
