Mac users go here to do the same with Homebrew
https://github.com/sstephenson/rbenv#homebrew-on-mac-os-x
and continue to install ruby 2.0.0
$ sudo apt-get install git-core
$ git clone https://github.com/sstephenson/rbenv.git ~/.rbenv
$ echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> ~/.profile
$ echo 'eval "$(rbenv init -)"' >> ~/.profile
$ exec $SHELL -l
$ git clone https://github.com/sstephenson/ruby-build.git ~/.rbenv/plugins/ruby-build
$ rbenv install 2.0.0-p247
$ rbenv rehash
$ rbenv global 2.0.0-p247
$ ruby -v
# Output something similiar to: ruby 2.0.0-p247 (2013-01-07 trunk 38733) [x86_64-darwin12.3.0]
$ echo "gem: --no-document" >> ~/.gemrc
$ gem install rails --version=3.2.14
$ rbenv rehash
$ rails -v
# Output something similar to: Rails 3.2.14