Remove Bootstrap from Rails

I'm having trouble uninstalling Twitter Bootstrap from my Rails program.

I tried starting from scratch without Bootstrap, but this creates a lot of problems.

EDIT: Yup, it Twitter Bootstrap.

EDIT: I am having problems removing the bug from twitter-bootstrap-rails from my current rails application. I installed the gem about a month ago when I created my application (editing my gemfile, modifying the application.js file and other similar things), but now I decided that I no longer want this. I tried just removing gem from my gemfile and removing boostrap links in application.js, but for some reason bootstrap is still compiling to application.css file.

I assume (possibly wrong) that this is some kind of error related to the rails resource pipeline, and I'm not sure how to do this. Any thoughts?

+4
source share
2 answers

If you have precompiled your assets since installing Bootstrap, you need to reset them or they will continue to be serviced.

To do this, run:

rake assets:clean 

Essentially, this clears the compiled assets from the public / assets directory.

If you removed the lines from application.css, as suggested by @GorillaMcD, the asset cleanup should complete the job.

+5
source

According to the github documentation for css, you also need to include a line in the application.css file:

 /* *= require bootstrap_and_overrides */ 

Remove it and you have to be good.

+2
source

Source: https://habr.com/ru/post/1412922/


All Articles