If you still have problem with installing ruby (I had with Jorge's method, as it would install me older version), try with instructions from this thread https://elementaryos.stackexchange.com/questions/2577/how-to-install-ruby-2-2-3-on-elementary-os-freya it helped me and now I have the latest version of ruby.