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
Related articles
- ruby - how do you see the rails controller relative path? (carrierwave directory deleted)
- ruby - about rails controller new action
- ruby on rails - how to retrieve id in controller with nested routing
- ruby on rails - when a photo is added to a folder on the pc, i want to display it on the browser of the web application!
- ruby on rails 5 - rspec controller test doesn't work
- how to send date acquired by javascript (jquery) to rails controller with ajax and store it in db, strange date is stored in db
- ruby on rails - rename rails directory (folder name)
- ruby - how to pass values from rails controller to view
- ruby on rails - unable to create controller
- ruby - rails you have included the google maps javascript api multiple times on this page
- ruby on rails - about passing view and controller data with rails
- ruby - i installed carrierwave with rails, but i can't see the image
- ruby on rails - i want to display the posted image in the background using image_tag or url_for
- ruby on rails - i want to display the latest posting date and time by creating a simple bulletin board
- ruby on rails - i can't log in to the app in the production environment (the app that was successfully deployed on heroku)
- ruby on rails - cannot start unicorn cannot load `railsconfigactive_storageservice`
- ruby - unable to open rails server
- ruby on rails - i want to display search results
- ruby - i get an error with the rails new command
- ruby on rails - rails db registration activerecord :: associationtypemismatch in friendscontroller # create
Trends
After investigating, I understood that the mechanism had changed from rails6.
Thank you very much.