Uninstall old version of Bootstrap, how?

24 views
Skip to first unread message

Bizt

unread,
Jan 31, 2014, 9:23:42 AM1/31/14
to rubyonra...@googlegroups.com
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

Arun kant sharma

unread,
Jan 31, 2014, 9:26:07 AM1/31/14
to rubyonra...@googlegroups.com
Maybe
rake assets:clean
will help



--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-ta...@googlegroups.com.
To post to this group, send email to rubyonra...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/0d6b0c39-319c-4636-b8d7-dd55c938846c%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Bizt

unread,
Jan 31, 2014, 9:51:45 AM1/31/14
to rubyonra...@googlegroups.com
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.

Frederick Cheung

unread,
Jan 31, 2014, 10:03:39 AM1/31/14
to rubyonra...@googlegroups.com


On Friday, January 31, 2014 2:51:45 PM UTC, Bizt wrote:
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 
Reply all
Reply to author
Forward
0 new messages