How to install Ruby version manager (RVM) on Ubuntu

Applications for Ruby often require different versions of Ruby, and only one version is usually installed from packages, and not necessarily the latest. Particular difficulties arise when different applications on the same server require...