Hi! Thanks so much for replying me. I have tried that already, but it still does not work.
After I enter “rails generate scaffold car make:string model:string year:integer”
there’s an error message that says
RAILS_ENV=development environment is not defined in config/webpacker.yml, falling back to production environment
Running via Spring preloader in process 25669
The name ‘Car’ is either already used in your application or reserved by Ruby on Rails. Please choose an alternative and run this generator again.
When I try to go to server it has a bunch of error code and it says in bold
“ebpacker configuration file not found /Users/liroufoong/odin_on_rails/my_first_rails_app/config/webpacker.yml. Please run rails webpacker:install Error: No such file or directory @ rb_sysopen - /Users/liroufoong/odin_on_rails/my_first_rails_app/config/webpacker.yml (RuntimeError)”