Have you ever needed to run a script with root priviledges? Don’t try to do this:
sudo ruby some_script.rb |
As this will not use the same ruby binary as the one in your current environment. Instead, use rvmsudo:
rvmsudo ruby some_script.rb |
This will run your script as root, in the current environment.