Ruby on Rails Friday, January 31, 2014



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 

--
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-talk+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/87344e5c-a485-4263-b7a5-0ca937266171%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

No comments:

Post a Comment