Create rails app fails

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?

On Nov 28, 2007 3:31 PM, Pixelmech [email protected] 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/

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…

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

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.

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

Perhaps a reboot?

On Nov 29, 2007 8:25 AM, Pixelmech [email protected] wrote:

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


Ryan B.