by Norm Schultz
Working from an existing Rails project, find these two files (you ARE going to need them):
/app/assets/stylesheets/application.css
#This is your fallback css file, used for customization
/app/views/layouts/application.html.erb
#This is your default html page setup, used for all pages
Replace your application.html.erb code with the one I've supplied below.
CDN: The lines with hrefs to .css and .js files represent using Bootstrap via a partnered Content Deliver Network (CDN) instead of hosting the Bootstrap setup files locally. This is advantageous because you can be confident you are up-to-date. Also, you don't have to ensure local files are available in the asset pipeline.
Navbar: The lines within the navbar class represent Boostrap navbar syntax, giving you a default navbar that includes a dropdown. Handy!
Jumbotron: The Bootstrap jumbotron represents a framed container with fairly nice fonts and a rounded-corner background. The placement of the yield ERB means that all your app pages will be rendered in the jumbotron.
You can customize your html to take advantage of Bootstrap elements, as well as your application.css file for styling. You will want to cusomize the navbar (obviously). You will want to move the navbar code into your individual app views if you want to display different navbar options depending on the view.
In any view you have access to numerous other handy Bootstrap functions. I've found their grid and card systems to be the most useful. Their grid allows for automatic sizing and for columns divisible by 12. Cards are useful if you want a more floating look with individual borders. (Both of these are described in the "Components" section of the official Boostrap site, linked below.)
REFERENCES
https://getbootstrap.com/docs/3.3/getting-started/
https://www.taniarascia.com/what-is-bootstrap-and-how-do-i-use-it/