Uninstall old version of Bootstrap, how?

Hi,

I added this line to my Gemfile, then done “bundle install”

gem ‘bootstrap-sass’, ‘2.3.2.0’

…but, I now want to install the latest version of bootstrap. How do I uninstall these files, do I just go into the assets directory and manually delete them? Then, add the recent version to my Gemfile?

Cheers Martyn

Maybe

rake assets:clean will help

Yeh I tried that. I don’t seem to have any BS files in assets yet it will still applying BS styles.

Actually, I had the line in a custom.css.sass file:

@import “bootstrap”;

I’ll remove this line, update the Gemfile and reinstall?

Btw if I replace the line:

gem ‘bootstrap-sass’, ‘2.3.2.0’

… with a newer version of BS, will it automatically remove this old one? I’m a little new to using gems, not too sure yet how it all works.

That should work: when rails searches for assets it looks in app/assets, lib/assets and vendor/assets in your app, but it also does the same with gems. This means that gems like ones providing jquery, bootstrap etc. don’t need to copy their files into your app (and conversely, all you need to do is upgrade the gem to get the new versions)

Fred