I am new to Ruby on Rails and maybe this is a very trivial issue, but I searched online for a solution and all of them are at least 2-3 years old and they described the same thing. All the tutorials and videos I watched, said to create a new app with webpack for React, using:
rails new app_name --webpack=react -d=postgresql -T
Everybody said, that this command will create a pack folder under my app/javascript folder like this:
app/javascript:
└── packs:
└── application.js
└── hello_react.jsx
None of this actually happened. I do not have a pack folder. Instead, I have the following:
app/javascript:
└── controllers:
└── application.js
└── hello_controller.js
└── index.js
So, what am I doing wrong? Why I do not have the pack folder and how can I integrate React with Ruby on Rails? My environment is - Linux Manjaro XFCE 21.2.6, ruby 3.0.3, rails 7.0.2.4.