I have just installed Ruby on Rails on Windows 8 and tested it including checking the version. This all works fine however, when I try to set up a new project using rails I get "rails is not recognized as an internal or external command"
I have just installed Ruby on Rails on Windows 8 and tested it including checking the version. This all works fine however, when I try to set up a new project using rails I get "rails is not recognized as an internal or external command"
Do you mean that rails -v works but rails new project_name does not?
What does rails -v show?
Colin
Yes that is correct. rails -v shows: ruby 2.1.6p336 <2015-04-13 revision 50298> [i386-mingw32]
Yes that is correct. rails -v shows: ruby 2.1.6p336 <2015-04-13 revision 50298> [i386-mingw32]
I rather suspect that is the result of ruby -v not rails -v. So ruby is installed but not rails.
Please remember to quote the previous message so that it easier to follow the thread, this is a mailing list not a forum (though you may be accessing it via a forum-like interface).
Colin
I agree. I think the OP is calling ‘ruby -v’ and needs to install the rails gem. I’ve done this before on a fresh system. Should be able to do a “gem install rails” and move on from there.
-James
I agree. I think the OP is calling ‘ruby -v’ and needs to install the rails gem. I’ve done this before on a fresh system. Should be able to do a “gem install rails” and move on from there.
Thanks. You are right. I am new to this and just getting started so thanks for the help
One further point, Rails development can be problematic on Windows. Some have had success I believe but many have difficulties and since most developers use Linux (eg Ubuntu) or Mac for development it can be difficult to get help. I always advise Win users to either set their machine up to dual boot Ubuntu and Win or to run Ubuntu in a Virtual Machine such as VMWare or VirtualBox. Then to install Ruby and Rails using rvm (others prefer rbenv).
Colin
Hi,
I’ll recommend you http://railsinstaller.org for windows, it works like a charm.
Regards
Sebastian Calvo