From your home directory
git clone https://github.com/sstephenson/rbenv.git ~/.rbenv
Crack open your ~/.bash_profile and modify your $PATH. Below is an example:
export PATH="$HOME/.rbenv/bin:$PATH"
While editing your ~/.bash_profile, also add the line to initialize rbenv:
eval "$(rbenv init -)"
Save and close your profile, then reload your shell:
exec $SHELL -l
Then you'll want to get ruby-install added as a rbenv plugin:
git clone https://github.com/sstephenson/ruby-build.git ~/.rbenv/plugins/ruby-build
Now it's time to install Ruby. This takes a while as it's done from source:
rbenv install 2.0.0p195
Once this is done, set this new installation to the global Ruby:
rbenv global 2.0.0p195
Now that Ruby is installed, we'll tell Rubygems to not install documentation. Save the following as your ~/.gemrc:
install: --no-rdoc --no-ri
update: --no-rdoc --no-ri
gem install bundler
gem install rails
The following guide gives a real straightforward introduction to creating a new Rails app:
http://guides.rubyonrails.org/getting_started.html#creating-the-blog-application