# Problems with tutorial

**URL:** <https://www.ruby-forum.com/t/problems-with-tutorial/84459>\
**Category:** Rails\
**Created:** [February 4, 2007, 9:33pm UTC](https://www.ruby-forum.com/t/problems-with-tutorial/84459 "2007-02-04T21:33:18Z")\
**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 4, 2007, 9:33pm UTC](https://www.ruby-forum.com/t/problems-with-tutorial/84459/1 "2007-02-04T21:33:18Z")

</div>

I’m having some trouble with the instructions at the link below:  
[http://instantrails.rubyforge.org/tutorial/restarting\_the\_dev\_env.html](http://instantrails.rubyforge.org/tutorial/restarting_the_dev_env.html)

I had started at the tutorial at [http://instantrails.rubyforge.org/](http://instantrails.rubyforge.org/)  
tutorial/index.html  
and had gotten as far as creating the cookbook2 exercise and had  
gotten to the “Welcome aboard you’re riding ruby rails” screen in  
explorer, but then it tells you to :

“Leave your existing command window open with the web server running,  
and open a second command window. Enter \>use\_ruby and then navigate  
to the application’s base directory: c:\Instantrails\rails\_apps  
\cookbook2. It will look like Figure 10, at least in a moment.”

How do I open a second command window?

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 4, 2007, 9:41pm UTC](https://www.ruby-forum.com/t/problems-with-tutorial/84459/2 "2007-02-04T21:41:19Z")

</div>

[Start \> Run \> cmd] should open another command window.

---

<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 4, 2007, 9:55pm UTC](https://www.ruby-forum.com/t/problems-with-tutorial/84459/3 "2007-02-04T21:55:20Z")

</div>

If you do it through the run… option in the start menu there is a  
good chance that the ruby library won’t be accessible. A better way  
to do it is to click the “I” icon in the instantrails program. From  
the menu click the Rails Applications option followed by the Open  
Rails Console command. This will also initiate the prompt to the base  
dir of all your application (that is if you are using the rails\_apps  
dir)

Hope that helps.

---

<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 4, 2007, 10:36pm UTC](https://www.ruby-forum.com/t/problems-with-tutorial/84459/4 "2007-02-04T22:36:25Z")

</div>

Thanks. Yes, the regular dos prompt is at c:\ and gets me nowhere. I  
tried it from the intantrails program as well but when I type  
‘use\_ruby’ as instructed in the tutorial, I get the message: "  
‘use\_ruby’ is not recognized as an internal or external command,  
operable program or batch file." I must not be accessing the right  
place as talked about in that tutorial.  
When I open a new console window, my prompt points to  
c:\RubyRails\InstantRails\rails\_apps  
and my cookbook program and the new one I was following in the  
tutorial cookbook2 are both there as well as the typo-2.6.0 program.  
I was able to do the first part of the tutorial which instructed to  
type:  
rails cookbook2  
He states on the tutorial:  
"I used c:\Instantrails\rails\_apps. (which is where ‘use\_ruby.cmd’  
leaves us when we restart the development environment). "

But I haven’t succeeded in typing ‘use\_ruby.cmd’ without an error  
anywhere.  
Where is that command??  
thanks,  
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 4, 2007, 11:40pm UTC](https://www.ruby-forum.com/t/problems-with-tutorial/84459/5 "2007-02-04T23:40:28Z")

</div>

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

> and my cookbook program and the new one I was following in the  
> Where is that command??  
> thanks,  
> rae

use\_ruby.cmd is in the base Instant Rails directory (wherever you  
unzipped  
Instant Rails). All it does is add the ruby\bin subdirectory to your  
system  
path in that console window.

If you opened the console window through the Instant Rails menus, then  
user\_ruby was already executed. You only need to run use\_ruby.cmd when  
you  
open your own console window through Start\>Run or some other means.

Curt
