Our blog is basically fully functional, but looking a bit bland. Let's add a free bootstrap theme to our app through the asset pipeline. Then, let's play around with Bootstrap's CSS classes and ids on our views to make it look nice.
- Copy a theme (either a bootstrap.min.css file or a bootstrap.css file) and include it in your
vendor/assets/stylesheets
. We put all stylesheets and javascripts (aka, assets) that we didn't write ourselves in thevendor
folder. - In your
app/assets/stylesheets/application.css
manifest file, include the file(s) we added to ourvendor/assets
. - Play around with getting it to look nice! Check out the bootstrap documentation.
If you run into any Segmentation Fault issues (most likely caused by the bcrypt
gem), run gem uninstall bcrypt
(uninstall all versions), and then do bundle install
again.
View Rails Blog: Using the Asset Pipeline on Learn.co and start learning to code for free.