Answer the question
In order to leave comments, you need to log in
Rails new: The system cannot find the specified path?
I decided to learn Ruby on Rails, downloaded - railsinstaller.org/ru-RU , installed it. I wrote Rails new on the command line. Answer: The system cannot find the specified path. I installed rails on ubuntu and ended up with the gem not being able to pull up mysql. But I'm now interested on Windows, what's the problem?
Answer the question
In order to leave comments, you need to log in
Good day, if the problem is still relevant, there is an answer (for subsequent errors, I am not responsible)
And so to fix this error you need to:
1. Follow the path to rails.bat (for those who don’t know, C:\RailsInstaller\Ruby2 is set by default .3.0\bin rails.bat );
2. Open it with a notepad;
3. Erase everything and paste this path
@ECHO OFF
IF NOT "%~f0" == "~f0" GOTO :WinNT
ECHO.This version of Ruby has not been built with support for Windows 95/98/Me.
GOTO :EOF
:WinNT
@"%~dp0ruby.exe" "%~dpn0" %*
4. Save, type rails -v into cmd again and voila.
Thank you for your attention.
For clarity, I leave a picture
I'm not sure, but it seems that in order for the command line to work, rails new
you need Node.js
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question