Uninstalling Twitter Bootstrap from a Rails app

ruby-on-rails, twitter-bootstrap

Solution

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

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

The command

rails g bootstrap:install

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

The layout command uses the templates here: 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"

Problem

I recently installed Twitter Bootstrap in my Rails app via the following two steps: ``` rails g bootstrap:install ``` (this included Twitter Bootstrap to my app's asset pipeline) ``` rails g bootstrap:layout application fixed ``` (this generated a layout for me, by default `application.html.erb` and fixed layout was generated) Should I do any of the following or all of it to remove Twitter Bootstrap completely from my app? Delete all the files added by it in 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 missed and must also remove?

Original source