Hello! You’re probably here because you want to know how to upgrade to Rails 6 during it’s beta phase, but can’t find a good guide for it. Well, here’s one for you!
It might not be obvious, especially if you haven’t upgraded rails before, but all you need to do is change the text in your gemfile, and run bundle update
It’s that simple!
First, find out what the latest version of the Rails gem is. You can do this over on RailsGems.org
We can see here that the Release Candidate (A polished version before the full release) was released today. Copy that version number, and add it to your gemfile.
Go run bundle update. It might take a few minutes, especially as there’s some new gems Rails 6 is dependant on.
Now that bundle has updated, go ahead and give Rails a run!
This is a good time to check the release notes to see what major (and potentially breaking) changes have been made since the previous version.
You’ll also want to run any test cases you’ve set up, or click around to check everything’s still working.
I fixed it by explicitly setting the format to html, and now everything’s working fine.
That’s all. Happy Rail-ing!