congratulate you to a choice. The book is written with care and precision however, the initial setup is rather os-agnostic. Therefore, here is my attempt to setup Ruby on Rails environment according to the exact book specifications. There is only one exception that is Ruby Version Manager (RVM). Instead of RVM I chose rbenv and rbenv-gemset.

At this point we are ready to create a gem set to be used with this tutorial. As specified by the book the gemset will be called: rails3tutorial2ndEd. First we need to fetch rbenv-gemset and install. The following 2 commands will do the trick: