Start with Ruby on Rails

Feb9
  • Share/Bookmark

Difficulty: ★★☆☆☆

Let’s start programming with Ruby. Cause what I’ve read about it, it should be fast, easy and fun.
You can download ruby from: rubyforge.org.
I installed the windows version. To see if it’s correctly installed go to your command line:

  ruby -v

This is what the command line tells me, what is installed:

ruby 1.8.6 (2008-08-11 patchlevel 287) [i386-mswin32]

Now create a new folder (structure) for your ruby (.rb) files.
Let’s start with the famous Hello World example, to print a string:

hello_world.rb:

puts "Hello World!"

Run this example in the commandline:

 ruby hello_world.rb

And your done!

 Hello World!


Leave a comment