Choosing a Rails Version
The previous instructions helped you install the version of Rails used by the examples in this book. But, occasionally, you might not want to run that version. For example, a newer version with some fixes or new features might become available. Or, perhaps, you’re developing on one machine but intending to deploy on another machine that contains a version of Rails that you don’t have any control over.
If either of these situations applies to you, you need to be aware of a few things. For starters, you can use the gem command to find all the versions of Rails you have installed:
| | $ gem list --local rails |
You can also verify which version of Rails you’re running as the default by using the rails --version ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access