# InstantRails - command "rails" does not work

**URL:** <https://www.ruby-forum.com/t/instantrails-command-rails-does-not-work/114186>\
**Category:** Rails\
**Created:** [September 9, 2007, 12:40pm UTC](https://www.ruby-forum.com/t/instantrails-command-rails-does-not-work/114186 "2007-09-09T12:40:37Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![heyho](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/h/a183cd/32.png) [@heyho](https://www.ruby-forum.com/u/heyho)\
**Post date:** [September 9, 2007, 12:40pm UTC](https://www.ruby-forum.com/t/instantrails-command-rails-does-not-work/114186/1 "2007-09-09T12:40:37Z")

</div>

Hey,

I installed InstantRails 1.7 (on Windows XP Home). I unzipped it with  
7-Zip in D:\InstantRails (no spaces in pathname + short pathname) to  
avoid UnZip-problems. I followed the installation instructions. The  
cookbook-example works fine.

But when I want to create an own project with “rails projectname”, my  
computer says something like “The command “rails” is either written  
wrong or it is not found.” What do I do wrong?!!! By the way -  
InstantRails already worked on this computer about a year ago. But I  
deleted it in between… Did I forgot to install something?

---

<div class="post-metadata">

**Author:** ![heyho](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/h/a183cd/32.png) [@heyho](https://www.ruby-forum.com/u/heyho)\
**Post date:** [September 9, 2007, 12:44pm UTC](https://www.ruby-forum.com/t/instantrails-command-rails-does-not-work/114186/2 "2007-09-09T12:44:50Z")

</div>

Xxx Y. wrote:

> InstantRails already worked on this computer about a year ago. But I  
> deleted it in between… Did I forgot to install something?

Did you run use\_ruby.cmd in the console before your tried that? Seems  
like a path issue.

Cheers,  
Mohit.  
9/9/2007 | 6:43 PM.

---

<div class="post-metadata">

**Author:** ![heyho](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/h/a183cd/32.png) [@heyho](https://www.ruby-forum.com/u/heyho)\
**Post date:** [September 9, 2007, 12:55pm UTC](https://www.ruby-forum.com/t/instantrails-command-rails-does-not-work/114186/3 "2007-09-09T12:55:51Z")

</div>

Xxx Y. wrote:

> 

I discovered it by chance when I thought I’d create a script called  
‘use\_rails.cmd’ that would initialize the paths 😛 and discovered that  
there was something already there! 🙂

Cheers,  
Mohit.  
9/9/2007 | 6:54 PM.

---

<div class="post-metadata">

**Author:** ![heyho](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/h/a183cd/32.png) [@heyho](https://www.ruby-forum.com/u/heyho)\
**Post date:** [September 9, 2007, 12:50pm UTC](https://www.ruby-forum.com/t/instantrails-command-rails-does-not-work/114186/4 "2007-09-09T12:50:50Z")

</div>

Mohit S. wrote:

> Did you run use\_ruby.cmd in the console before your tried that? Seems  
> like a path issue.

That’s it!! Thank you very much for your fast reply! I think it is not  
written anywhere in the installation instructions…

---

<div class="post-metadata">

**Author:** ![heyho](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/h/a183cd/32.png) [@heyho](https://www.ruby-forum.com/u/heyho)\
**Post date:** [September 9, 2007, 1:01pm UTC](https://www.ruby-forum.com/t/instantrails-command-rails-does-not-work/114186/5 "2007-09-09T13:01:52Z")

</div>

Mohit S. wrote:

> > That’s it!! Thank you very much for your fast reply! I think it is not  
> > written anywhere in the installation instructions…
> 
> I discovered it by chance when I thought I’d create a script called  
> ‘use\_rails.cmd’ that would initialize the paths 😛 and discovered that  
> there was something already there! 🙂

Actually, I run another script in that directory that opens up another  
window in the same directory

start cmd /k use\_ruby.cmd  
use\_ruby.cmd

This way, I have 1 windows for running the rails commands and another  
for the server. I know there are many ways to achieve this, though.

Cheers,  
Mohit.  
9/9/2007 | 7:01 PM.
