I'm using rails 4 rc1, so the instructions provided by @ryan-bigg in the accepted answer where not working. I found the solution in the Ruby on Rails Guides Guideline:
git clone git://github.com/rails/rails.git
cd rails/guides
bundle install
bundle exec rake guides:generate:html
and now I have the HTML guides in the rails/guides/output folder.