Search code examples
ruby-on-railstwitter-bootstrapbootstrap-sass

rails bootstrap-sass do i need to update bootstrap files?


I am using ROR with bootstrap-sass gem. It is quite strange, but I can't use some of stylings that are listed here: http://twitter.github.com/bootstrap/components.html#labels-badges

I thought it is because of my not actual bootstrap-sass gem - it was 2.0. So I updated this gem to 2.2.2.0, it installed well, but it didn't help.

As I checked the stylesheet files in source of my page, on top of localhost/assets/custom.css?body=1, there is header:

/* * Bootstrap 2.0.0 * (...)

So do I need to update bootstrap files separately? And if, where I can find them?

EDIT

I made some actions: -downloaded bootstrap by hand and put it to vendor/assets/stylesheets/bootstrap (I created the bootstrap folder) -changed import "bootstrap" to import "bootstrap/bootstrap"

it worked, but I had objections if it is a good practise, so I made: -gem clean -gem update -bundle install -deleted the vendor/assets/stylesheets/bootstrap - everything what I put -changed back to import "bootstrap" and... it seems to work.


Solution

  • I made some actions: -downloaded bootstrap by hand and put it to vendor/assets/stylesheets/bootstrap (I created the bootstrap folder) -changed import "bootstrap" to import "bootstrap/bootstrap"

    it worked, but I had objections if it is a good practise, so I made: -gem clean -gem update -bundle install -deleted the vendor/assets/stylesheets/bootstrap - everything what I put -changed back to import "bootstrap" and... it seems to work.