Problems and solutions while creating index.html.erb in RubyOnRails 4 on Windows 10

Problems and solutions while creating index.html.erb in RubyOnRails 4 on Windows 10

When creating an index.html.erb file in views with the bin / rails ... command A window "Choose how to open this file" will open and share the solution when the index.html.erb file is not created.

environment

--System type: Windows10 Home 64-bit operating system, x64-based processor --Rails version 4 series

phenomenon

  1. Execute the bin / rails generate controller welcome index command.

  2. The window "Choose how to open this file" opens. スクリーンショット 2020-10-30 130959.png

Solutions

  1. Execute the rails ... command instead of bin / rails .... Example: rails generate controller welcome index

You can see that the index.html.erb file has been created. スクリーンショット 2020-10-30 140026.png

OK

Recommended Posts

Problems and solutions while creating index.html.erb in RubyOnRails 4 on Windows 10
Problems and solutions for UI collapse when inputting Japanese in swing
(Ruby on Rails6) Creating a database and displaying it in a view
Install Java 9 on windows 10 and CentOS 7
Upgrade and switch Ruby versions on Windows 10
STS installation and Japanese localization on Windows 10