Justin Justin -4 years ago 183
Ruby Question

How to remove bootstrap-sass from Ruby on Rails 5.0.2

I'd like to remove bootstrap-sass 3.3.7 from ruby on rails. I installed gem bootstrap-sass a month ago. However, I created design by myself. So I would like to uninstall bootstrap-sass.

I tried

gem uninstall gem bootstrap-sass

rake assets:clean

but, bootstrap was not removed.

Answer Source

Try the next steps:

  1. remove bootstrap-sass from the Gemfile of your project
  2. bundle && gem uninstall bootstrap-sass to remove from the project dependencies and system
  3. remove include of bootstrap-sprockets and bootstrap in app/assets/stylesheets/application.scss
  4. remove include of bootstrap-sprockets from app/assets/javascripts/application.js
Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download