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”

On 1 September 2015 at 20:33, Richard B. [email protected]
wrote:

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]

On 1 September 2015 at 20:48, Richard B. [email protected]
wrote:

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

On Sep 1, 2015, at 2:52 PM, Colin L. [email protected] wrote:

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

On 2 September 2015 at 00:58, Richard B. [email protected]
wrote:

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

El martes, 1 de septiembre de 2015, 16:33:52 (UTC-3), Ruby-Forum.com
User
escribió: