This is a folder of templates of the views of the scaffold files when execute the command rails g scaffold ...
.
By using theses templates, you already have of files with the styles of the Bootstrap 4. Will need do a few changes.
Only copy the folder templates within of the your directory lib of your Rails application.