Skip to content

antonhalim/rails-blog-asset-pipeline-bk-002-public

Repository files navigation

tags language resources
rails, asset pipeline, bootstrap
ruby
2

Rails Blog: Using the Asset Pipeline

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.

Steps

  1. 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 the vendor folder.
  2. In your app/assets/stylesheets/application.css manifest file, include the file(s) we added to our vendor/assets.
  3. Play around with getting it to look nice! Check out the bootstrap documentation.

Bcrypt Segmentation Fault Issue

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.

Resources

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •