Note that there are some explanatory texts on larger screens.

plurals
  1. PO"'rails' is not recognized as an internal or external command, operable program or batch file" when trying to create new app
    text
    copied!<p>I've followed the instructions in <a href="https://devcenter.heroku.com/articles/rails3" rel="nofollow">https://devcenter.heroku.com/articles/rails3</a> which is missing a lot of crucial information for Windows installs, but managed to get past most of my problems with Google searches.</p> <p>Here's what I've done:</p> <ol> <li>Installed Heroku Toolbelt</li> <li>Tried "heroku login" but ssh-keygen wasn't found so added C:\Program Files (x86)\Git\bin; to %PATH% -- was then able to generate key and log in</li> <li>Tried "rails new myapp" but got the error in the title of this thread (rails command not found)</li> <li>Tried "gem install rails" but the "gem" command also not found. Added C:\Program Files (x86)\Heroku\bin;C:\Program Files (x86)\Heroku\ruby-1.9.2\bin; to %PATH%.</li> <li>Tried "gem install rails" again. Command runs but hits error saying devkit not installed.</li> <li>Installed devkit and added C:\Program Files (x86)\Heroku\ruby-1.9.2\devkit;C:\Program Files (x86)\Heroku\ruby-1.9.2\devkit\bin; to %PATH%</li> <li>Finally "gem install rails" completes successfully</li> <li>Tried "rails new myapp" again but still get the error 'rails' is not recognized as an internal or external command, operable program or batch file.</li> <li>Searched my entire C: drive for "rails.*" but no executable found anywhere. So, "gem install rails" completed with no errors but there's no "rails" executable anywhere on my system.</li> </ol> <p>Any help?</p> <p>PS - Please no "you typed xxx wrong" answers. I may have mistyped something in this question but I always triple-check that I'm typing commands with proper case and spelling. Also, I have been exiting and opening new command prompts to reload PATH.</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload