I've followed the instructions in https://devcenter.heroku.com/articles/rails3 which is missing a lot of crucial information for Windows installs, but managed to get past most of my problems with Google searches.
Here's what I've done:
- Installed Heroku Toolbelt
- 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
- Tried "rails new myapp" but got the error in the title of this thread (rails command not found)
- 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%.
- Tried "gem install rails" again. Command runs but hits error saying devkit not installed.
- 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%
- Finally "gem install rails" completes successfully
- 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.
- 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.
Any help?
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.