I never used ruby before, I just wanted to play around with HAML and SASS. I downloaded and installed Ruby’s Windows installer (v1.9.1). Then, I clicked ruby.exe (the icon with a black window and a multicolored gem in the picture). Finally, I typed gem install haml and pressed Enter. But nothing happened. Am I doing something wrong?
Reference picture:
You might need to put the path to Ruby into the PATH environment variable to do this, but this is how I do it:
I open up the command line utility. I then type
ruby -S gem install <whatever>. This works like a charm.I tried running Ruby and it shows a blank screen but lets me type code. When I press CTRL + C to cancel it then executes my code as well. Maybe you need to do that in the manner you are trying to right now. I just find it easier to just
ruby -S <statement>instead. IronRuby gives me the REPL no problems though.