Home>

I'm trying to learn Ruby on Rails.
The environment is macOS Mojave.
The rails version is Rails 6.0.1.

Create a new app with rails new in the terminal on VS code,
Go to the newly created app folder and create a controller
I created a controller named uses with rails g controller users.

Originally config, images, stylesheets, javascripts
I think there are 4 folders, but only javascripts folder
It has not been generated (state as shown below).

Running via Spring preloader in process 1154
      create app/controllers/users_controller.rb
      invoke erb
      create app/views/users
      invoke test_unit
      create test/controllers/users_controller_test.rb
      invoke helper
      create app/helpers/users_helper.rb
      invoke test_unit
      invoke assets
      invoke scss
      create app/assets/stylesheets/users.scss

The reason why there is no javascripts folder and how it is generated
I want you to tell me.

  • Answer # 1

    After investigating, I understood that the mechanism had changed from rails6.
    Thank you very much.