Removing Twitter Boot Buffer from Rails Application

I recently installed Twitter Bootstrap in my Rails application with the following two steps:

rails g bootstrap:install 

(this included Twitter Bootstrap in my application container)

 rails g bootstrap:layout application fixed 

(this created a layout for me, the default is application.html.erb and a fixed layout was created)

Do I have to do any of the following or all of this to completely remove Twitter Bootstrap from my application?

  • Delete all files added by him in the APP folder?

    • javascripts/bootstrap.js.coffee

    • stylesheets/bootstrap.js.coffee

    • layout/application.html.erb (edit this file?)

  • Are there other files that were created that I skipped and also deleted?

+6
source share
2 answers

If you look at the github repo for this, you will see the generators and what exactly they do:

https://github.com/seyhunak/twitter-bootstrap-rails/tree/master/lib/generators/bootstrap

Command

 rails g bootstrap:install 

Uses templates here: https://github.com/seyhunak/twitter-bootstrap-rails/tree/master/lib/generators/bootstrap/install/templates

The layout command uses the following templates: https://github.com/seyhunak/twitter-bootstrap-rails/tree/master/lib/generators/bootstrap/layout/templates

Also remove the gem from your gemfile

 gem "twitter-bootstrap-rails" 
+4
source

try it

 rails destroy bootstrap:install 

Also remove the gem from your gemfile

gem "twitter-bootstrap-rails"

+16
source

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


All Articles