Ruby On Rails

Back to -Products -Sapphire-IDE -FAQ -Ruby On Rails

Error: “’rails’ is not recognized as an internal or external command, operable program or batch file.”

When I try to run a Rails application, I see a messages stating: “Rails project creation failed : MakeRailsFiles failed:
’rails’ is not recognized as an internal or external command, operable program or batch file.”

This message means that Rails cannot be found. This might be due to the fact that you haven’t installed Rails or it may be due to the fact that the path to Rails cannot be found. This may also occur when you install Rails using a ‘special’ installation of Rails such as the InstantRails installer. We do not support custom Rails installers. We recommend that you do a ‘normal’ Rails installation. To do this from within Ruby In Steel, ensure that you are connected to the Internet, then select Gems from the Ruby menu and enter:

rails –include-dependencies

If you prefer to run the gem from the system prompt, you should enter:

gem install rails –include-dependencies

Alternatively, you can download and install rails from the Ruby On Rails web site:

http://www.rubyonrails.org/

To ensure that Rails is installed, go to the system prompt and enter:

rails

You should see a screen of help information relating to Rails. If you still see the message, “’rails’ is not recognized as an internal or external command, operable program or batch file.” then Rails is not installed. You must have a workable installation of Rails in order to develop Rails applications with Ruby In Steel.

Bookmark and Share   Keywords:  error message  Ruby In Steel 1
© SapphireSteel Software 2014