Rails tutorial When rails new cannot be done due to different versions

For super super beginners.

When creating a new app in the rails tutorial

$ rails 6.0.3 new hello_app

When you execute

Traceback (most recent call last): . . can't find gem railties (= 6.0.3) with executable rails (Gem::GemNotFoundException)

I got an error like this.

https://teratail.com/questions/80979

↑ Please refer to this article

$ gem install rails -v 6.0.3

Install the gem with and try again

$ rails 6.0.3 new hello_app

It was solved by doing.

Recommended Posts

Rails tutorial When rails new cannot be done due to different versions
[Rails] Rails new cannot be done from Docker
Options for rails new and settings to be done after rails new
Whether options can be used due to different Java versions
[Ubuntu] What to do when MongoDB cannot be started due to a SocketException error
Tomcat cannot be started due to java version change
Settings to be done when changing from Sublime Text to VScode (when writing Ruby On Rails)
[Ruby on Rails] How to stop when Rails server cannot be stopped by Ctrl + C
[Rails] What to do when rails db: migrate cannot be done because there is no table referenced by the foreign key
[Ruby on Rails] I get a warning when executing RSpec due to a different gem version.
About the function of Spring Boot due to different versions
Avoid the problem that session cannot be acquired when canary release when upgrading from Rails 4.2.x to 5.0.x
[Rails tutorial] Cannot deploy to Heroku/Change from hello, world to hola, mundo
Rails new fails to install mysql
[Rails] How to add new pages
[Rails 6] MySQL 2 cannot be bundle install
What to do when CentOS cannot be started with VirtualBox on Catalina
[Rails] About the error when displaying the screen due to the autofocus of the form
Settings that should be done when operating a production environment with Rails