I want to create a new app by specifying the Rails version
When learning the teaching materials, an error occurred because the version of Rails (-v6) previously installed in Cloud9 and the version of the teaching materials (-v5) were different, and the learning sometimes got stuck. ** I wanted to avoid errors caused by different versions and learn. ** **
I did it with the following command.
gem install rails -v 5
rails _5_ new ○○
Now, even if Rails (-v6) is installed, you can create a new XX application with Rails (-v5).
You can install rails by specifying version △ with the
gem install rails -v △ command.
When creating an application by specifying the version, create it with the
rails _ △ _ new command.