###Short answer:
The instructions are out of date, but there is no sufficiently significant difference between 4.2.5 and 4.2.6 to worry about it.
Either do bundle update (which should make everything able to use 4.2.5), or (as you figured) revert to the original specification you found in your Gemfile (ie, change the line back to gem 'rails', '4.2.6')