Question

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.

Was it helpful?

Solution 3

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.

OTHER TIPS

You might try to precompile in development environment.

bundle exec rake assets:precompile RAILS_ENV=development

But I am really not sure because I use twitter-bootstrap-rails gem. It works wonderfully.

you just need to clean up the previous gems although it is not recommended if you have multiple projects with different versions.

this blog post might help ...cleaning-previous-versions-for-gem-like.html

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top