Installing Ruby on Rails on windows

13,158

Solution 1

On Windows you need to set your system PATH variable (My Computer -> Properties -> Advanced -> Environment Variables -> System variables)

Append the PATH Variable value:: c:\ruby\bin;

Solution 2

I'm a windows 7 user, and I was able to get rails working by following this guide: http://www.wiki.devchix.com/index.php?title=Windows_-_Rails_3 I know linking is frowned upon, but the windows 7 installations is quite detailed, and the devchix guide is excellent. I store my apps on the desktop in a folder called 'rails' not in the ruby bin.

Share:
13,158
Nachshon Schwartz
Author by

Nachshon Schwartz

Fullstack Developer at Wix. Previously a web developer in the IDF, developing a Play Framework, Angular business process monitoring web application. Technion, Software Engineering** graduate from Israel. Programming languages: Javascript, Java, Ruby,C++ Python. DB: Neo4J, OracleDB, MongoDB Web Frameworks: Play Framework, Angular, Ruby on Rails, Django Some of my work: Cherrity - Cherrity is a website I created during my 4th year - Yearly Project with a team of 7 other Software Engineering students. It's a Dynamic website for organizing charity projects.@nayish

Updated on June 04, 2022

Comments

  • Nachshon Schwartz
    Nachshon Schwartz almost 2 years

    I am in the process of installing Ruby on Rails on windows 7. I installed ruby-1.9.2 (in c:\ruby) and I've installed rails using the gem install rails command (doing this from c:\ruby\bin since this is the only place i can call the command). I've then run rails new my_app command.

    The problem that I have is trying to run the rails server command from inside the apps folder (c:\ruby\bin\my_app) I get the message: 'rails' is not recognized....

    What have I done wrong?

  • Nachshon Schwartz
    Nachshon Schwartz over 13 years
    I'll try it and get back to you, did you find any problems with using RoR on windows 7?
  • John
    John over 13 years
    There are some annoyances when trying new features, but no real problems. If I had a mac/linux, I'd use it instead of windows 7 because it seems to be the preferred platform on all the tutorials and add-ons.
  • Nachshon Schwartz
    Nachshon Schwartz over 13 years
    This solved the problem just it needs to be a bit more specific the path at least by me to rails.bat is c:\ruby\bin\rails.bat and i added at the end of the existing path in the system variables the above route seperated from the rest of the text already there by a semi-colon, if you can just correct your answer it would be greatly apprecheated
  • Pragnesh Vaghela
    Pragnesh Vaghela over 13 years
    You should also try this Windows Ruby on Rails installer rubyinside.com/…
  • andreshg112
    andreshg112 about 8 years
    No working for me. Neither the comment of "rails.bat"
  • andreshg112
    andreshg112 about 8 years