# Create rails app fails

**URL:** <https://www.ruby-forum.com/t/create-rails-app-fails/121558>\
**Category:** Rails\
**Created:** [November 28, 2007, 10:32pm UTC](https://www.ruby-forum.com/t/create-rails-app-fails/121558 "2007-11-28T22:32:10Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![casper\_the\_ghost](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/58956e/32.png) [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Post date:** [November 28, 2007, 10:32pm UTC](https://www.ruby-forum.com/t/create-rails-app-fails/121558/1 "2007-11-28T22:32:10Z")

</div>

Hi there, so I decided to go ahead and go through Rolling With Ruby on  
Rails, the updated version. I got InstantRails installed and pulled  
the cookbook up, so it all seems to be working. However, when I  
navigate to

C:\InstantRails\rails\_apps

and do

rails cookbook2

I get the error:

‘rails’ is not recognized as an internal or external command, operable  
program or batch file.

Looking at the instant rails console, it says that apache is running/  
started and mySQL says its “pending”

Is there something else I have to do to get started?

---

<div class="post-metadata">

**Author:** ![casper\_the\_ghost](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/58956e/32.png) [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Post date:** [November 28, 2007, 10:40pm UTC](https://www.ruby-forum.com/t/create-rails-app-fails/121558/2 "2007-11-28T22:40:57Z")

</div>

On Nov 28, 2007 3:31 PM, Pixelmech [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> I get the error:
> 
> ‘rails’ is not recognized as an internal or external command, operable  
> program or batch file.

It appears as though the rails command is not in your path. Google  
for “adding a path in windows”.

–  
Greg D.  
[http://destiney.com/](http://destiney.com/)

---

<div class="post-metadata">

**Author:** ![casper\_the\_ghost](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/58956e/32.png) [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Post date:** [November 28, 2007, 10:53pm UTC](https://www.ruby-forum.com/t/create-rails-app-fails/121558/3 "2007-11-28T22:53:50Z")

</div>

Ok, possibly the problem was I had installed Ruby first by itself,  
then it looks like Instant Rails installs it too. I uninstalled c:  
\ruby, which leaves the other install at c:\InstantRails\ruby, and I  
changed the Windows path accordingly. But when I do ruby -v it does  
not see it…

---

<div class="post-metadata">

**Author:** ![casper\_the\_ghost](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/58956e/32.png) [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Post date:** [November 28, 2007, 10:56pm UTC](https://www.ruby-forum.com/t/create-rails-app-fails/121558/4 "2007-11-28T22:56:12Z")

</div>

nevermind - somehow I got it to recognize the right directory and now  
it works…thanks.

---

<div class="post-metadata">

**Author:** ![casper\_the\_ghost](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/58956e/32.png) [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Post date:** [November 28, 2007, 11:28pm UTC](https://www.ruby-forum.com/t/create-rails-app-fails/121558/5 "2007-11-28T23:28:25Z")

</div>

Pixelmech wrote:

> I get the error:
> 
> ‘rails’ is not recognized as an internal or external command, operable  
> program or batch file.
> 
> Looking at the instant rails console, it says that apache is running/  
> started and mySQL says its “pending”
> 
> Is there something else I have to do to get started?

Make sure you use the command line tool from within InstantRails. Its  
under Rails Application on the I menu. It adds all the necessary  
paths.

---

<div class="post-metadata">

**Author:** ![casper\_the\_ghost](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/58956e/32.png) [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Post date:** [November 28, 2007, 11:00pm UTC](https://www.ruby-forum.com/t/create-rails-app-fails/121558/6 "2007-11-28T23:00:53Z")

</div>

It may be preferable to use Ruby 1.8.6 and build instead of relying on  
instant rails. Instant rails is great package but doing it raw gives  
more  
control

---

<div class="post-metadata">

**Author:** ![casper\_the\_ghost](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/58956e/32.png) [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Post date:** [November 29, 2007, 2:02am UTC](https://www.ruby-forum.com/t/create-rails-app-fails/121558/7 "2007-11-29T02:02:11Z")

</div>

Perhaps a reboot?

On Nov 29, 2007 8:25 AM, Pixelmech [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> nevermind - somehow I got it to recognize the right directory and now  
> it works…thanks.
> 
> >

–  
Ryan B.
