This is installing procedure of RVM that worked for me


sudo apt-get install curl
bash < <( curl http://rvm.beginrescueend.com/releases/rvm-install-head )


Then add following to .bashrc and restart terminal:

[[ -s "$HOME/.rvm/scripts/rvm" ]] && . "$HOME/.rvm/scripts/rvm" # This loads RVM into a shell session.


To test, following should show "rvm is a function":

type rvm | head -1


Also may need to check dependencies:

rvm notes


Install Ruby 1.9.2:

rvm package install openssl
rvm package install readline
rvm install 1.9.2 --with-readline-dir=$rvm_path/usr --with-openssl-dir=$rvm_usr



Create gemset:

rvm use 1.9.2
rvm gemset create global
gem install bundle


Now you can work with your Rails project in Ruby 1.9.2

bundle install

Read more: http://feeds.dzone.com/~r/dzone/snippets/~3/VhMyOtFUhC8/13037