These are the latest Gemfiles for the Ruby on Rails Tutorial (6th Ed.) by Michael Hartl. To the extent that there’s any difference, readers of the Ruby on Rails Tutorial should always use these Gemfiles in preference to the ones listed in the book.
The Gemfiles in the online version should always match those shown below. Ebooks purchased from railstutorial.org or Learn Enough should also match automatically as long as you’ve downloaded the latest version, which you can find on your Purchases page. (You may have to clear your browser cache first.)
hello_app
from Chapter 1toy_app
from Chapter 2sample_app
from Chapters 3–14
Note: The easiest way to copy a Gemfile is to click on the relevant link and then select “Raw”.
Selecting all (Ctrl/Cmd-A, depending on system) and copying (Ctrl/Cmd-C) then lets you paste (Ctrl/Cmd-V) the result into your application’s Gemfile.