Read the question again and its solution (the question you reffered in the description).
I will try to explain the reason why its giving you errors.
/Library/Ruby/Gems/2.0.0
In this directory your operating system has a certain version of Ruby installed. The system might require it for some purposes so normal users are not allowed to modify this directory. If you do it you might end up breaking up something without knowing.
Does this means you can not install it on your machine?
No, you can but not in this directory. Again in the question op gives the option of looking into :
"Instead, I'll strongly suggest you look into using either rbenv or RVM to manage a separate Ruby, "
one of these should do it for you.
You might want to try this with vagrant. I found it pretty convenient to test new development environment without trying to break anything on my system.
Here is a link about trying rails in vagrant:
https://gorails.com/guides/using-vagrant-for-rails-development