Uploaded May 2025 | Updated September 2026, 3 weeks ago
Having recently upgraded from Rails 7.0 to 7.1, and then 7.1 to 7.2, we're finally able to upgrade Rails to 8.0! In terms of the number of things called out by the Upgrading Ruby on Rails guide, 7.2 to 8.0 is even less overall change than the upgrade from 7.1 to 7.2 was.
One wrinkle we encounter during the upgrade process is a runtime error in the upgrade script while trying to evaluate the changes to the 404 error page. To resolve this, we just re-run the script and it succeeds the second time.
At this point we're technically on Rails 8, but we haven't yet enabled all of the new goodies and features that are available by default in new Rails 8 apps. Stay tuned for the next few videos as we unlock what Rails 8 has to offer.
This video covers:
0:00:00 Introduction
0:02:20 Review the upgrade guide and Rails 8.0 release notes
0:03:13 Update Rails version in Gemfile to current version of 8.0.x, update bundle and run test suite
0:04:00 Run the Rails upgrade script, resolve conflicts, and review the Git diff
0:06:59 Error encountered when trying to execute 404 page conflict resolution. Re-run the upgrade script and accept all the overwrites
0:07:59 Enable the new framework defaults for Rails 8.0
0:08:39 Re-run automated tests and run a manual regression test in the browser
0:10:17 Review the git status and diff. Remove the new framework defaults file.
0:13:27 Run RuboCop and auto-correct violations
0:14:00 Commit, push, and update issue
0:14:57 Conclusion and preview of upcoming videos
#ruby #rails8 #rails7 #rails #rubyonrails #rubygems #codecast #screencast #github #opensource #minitest #TDD #agile #NerdDice #DnD #roleplaying #softwaredevelopment #learntocode #tailwind #postgresql #rubocop #devise #turbo #controllers #views #selenium #capybara #systemtest
See other related StatelessCode videos:
- youtu.be/QbeSvdAxknk
- youtu.be/RGmj7QcCVmM
- youtu.be/RR31ztGtrhA
- youtu.be/JimjiXQoGJ8
Resources that we relied upon for this solution:
- Upgrading Ruby on Rails guide (7.2 to 8.0 section in particular) guides.rubyonrails.org/upgrading_ruby_on_rails.html#upgrading-from-rails-7-2-to-rails-8-0
- Rails 8.0 release notes guides.rubyonrails.org/8_0_release_notes.html
GitHub Commit for this Video:
- github.com/statelesscode/nerd_dice_dot_com/commit/3a2e20e
This video is CC0 - No rights reserved. (YouTube doesn't allow this option when publishing.) All code is released under the UNLICENSE. Stateless Code denies the concept of "intellectual property". Copying is not stealing.
Having recently upgraded from Rails 7.0 to 7.1, and then 7.1 to 7.2, we're finally able to upgrade Rails to 8.0! In terms of the number of things called out by the Upgrading Ruby on Rails guide, 7.2 to 8.0 is even less overall change than the upgrade from 7.1 to 7.2 was.
One wrinkle we encounter during the upgrade process is a runtime error in the upgrade script while trying to evaluate the changes to the 404 error page. To resolve this, we just re-run the script and it succeeds the second time.
At this point we're technically on Rails 8, but we haven't yet enabled all of the new goodies and features that are available by default in new Rails 8 apps. Stay tuned for the next few videos as we unlock what Rails 8 has to offer.
This video covers:
0:00:00 Introduction
0:02:20 Review the upgrade guide and Rails 8.0 release notes
0:03:13 Update Rails version in Gemfile to current version of 8.0.x, update bundle and run test suite
0:04:00 Run the Rails upgrade script, resolve conflicts, and review the Git diff
0:06:59 Error encountered when trying to execute 404 page conflict resolution. Re-run the upgrade script and accept all the overwrites
0:07:59 Enable the new framework defaults for Rails 8.0
0:08:39 Re-run automated tests and run a manual regression test in the browser
0:10:17 Review the git status and diff. Remove the new framework defaults file.
0:13:27 Run RuboCop and auto-correct violations
0:14:00 Commit, push, and update issue
0:14:57 Conclusion and preview of upcoming videos
#ruby #rails8 #rails7 #rails #rubyonrails #rubygems #codecast #screencast #github #opensource #minitest #TDD #agile #NerdDice #DnD #roleplaying #softwaredevelopment #learntocode #tailwind #postgresql #rubocop #devise #turbo #controllers #views #selenium #capybara #systemtest
See other related StatelessCode videos:
- youtu.be/QbeSvdAxknk
- youtu.be/RGmj7QcCVmM
- youtu.be/RR31ztGtrhA
- youtu.be/JimjiXQoGJ8
Resources that we relied upon for this solution:
- Upgrading Ruby on Rails guide (7.2 to 8.0 section in particular) guides.rubyonrails.org/upgrading_ruby_on_rails.html#upgrading-from-rails-7-2-to-rails-8-0
- Rails 8.0 release notes guides.rubyonrails.org/8_0_release_notes.html
GitHub Commit for this Video:
- github.com/statelesscode/nerd_dice_dot_com/commit/3a2e20e
This video is CC0 - No rights reserved. (YouTube doesn't allow this option when publishing.) All code is released under the UNLICENSE. Stateless Code denies the concept of "intellectual property". Copying is not stealing.










