I guess it is time for me to learn Ruby and see what all the fuss is about. Here is how I got it installed and how I got a first little scribble done.
First thing to do is look for an IDE since those things always make your life easier, or maybe not. But at least it’s a quick way to get going, or maybe not. I went with Rubymine because it came recommended on this stackoverflow question. And then I read the quickstart guide.
Before You Start…
Make sure a Ruby interpreter is downloaded and installed on your computer. RubyMine supports Ruby versions 1.8.6 to 1.9.x. Please follow these download and installation instructions. Note that depending on your platform, you can use IronRuby, MacRuby, MRI Ruby, or JRuby.
You will also need RubyGems to extend functionality of your applications.
If you are going to use RubyMine for Rails development, download and install Rails framework versions 1.2 to 3.1. Note that Rails 3.x requires Ruby SDK 1.8.7 or higher. If the framework is missing on your computer, RubyMine will download and install it automatically.
And so I installed version Ruby 1.9.2-p290 from this page.
And then I downloaded rubygems-1.8.5.zip from this page. No idea wath I had to do with that but anyway.
I left the rails framework for what it is for now.
At this point I say hurray for Webmatrix.
No sense in learning a new language without hello world. According to the Ruby basic tutorial it should go something like this.
print "Hello Worldn"
So I made a new file and called it helloworld.rb, like one does in these kinds of situations and copy pasted the code in, because copy pasting is what I do best.
And I got this error.
Error running helloworld: No SDK specified
I can understand that. So I went to settings as one does in these kinds of situations.
And added the SDK like a pro.
I clicked install gems on that page too but it downloaded nothing which was a bit of shame.
Then clicked run again and saw that it worked.
I even made an advanced Hello world. Just because I can.
For a first time experience this was not to hard, although I would suggest doing something to make it even easier and I guess you know what that is too.
I guess now it’s time to see how to make this work from the commandline. After reading the basic tutorial I will move to Ruby done the right way because there always has to be a wrong way in every language.