Skip to content

Instantly share code, notes, and snippets.

@raghubetina
Last active January 13, 2017 23:07
Show Gist options
  • Save raghubetina/131da36439842fe33106f1aa5be40554 to your computer and use it in GitHub Desktop.
Save raghubetina/131da36439842fe33106f1aa5be40554 to your computer and use it in GitHub Desktop.
Fixing RailsInstaller 3.3.0

Fixing RailsInstaller 3.3.0

Unfortunately, for those of us on Windows, it looks like Rails Installer has a bug! We need to get going right now, so we'll have to fix it ourselves manually.

If when you type rails -v in your Command Prompt with Ruby and Rails, you get the message

The system cannot find the path specified.

then follow these steps:

  1. In Atom, from the File menu, Open folder...

  2. Locate and open the folder C:\RailsInstaller\Ruby2.3.0\bin

  3. From the Find menu, Find in Project

  4. In the "Find in project" field that appears at the bottom of the screen, paste the following (be careful not to select the trailing or leading spaces before you copy):

    C:\Users\emachnic\GitRepos\railsinstaller-windows\stage\Ruby2.3.0\bin\
    
  5. Click "Find". It should locate 32 matches across 16 files.

  6. Leave the "Replace in project" field blank.

  7. Click "Replace All" and confirm.

  8. In the "Find in project" field that appears at the bottom of the screen, paste the following (be careful not to select the trailing or leading spaces before you copy):

    C:/Users/emachnic/GitRepos/railsinstaller-windows/stage/Ruby2.3.0/bin/
    
  9. Click "Find". It should locate 16 matches across 16 files.

  10. Leave the "Replace in project" field blank.

  11. Click "Replace All" and confirm.

  12. Quit Atom, restart the Command Prompt with Ruby and Rails, and retry rails -v. It should now work.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment