3

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.

Jeromy French
  • 11,812
  • 19
  • 76
  • 129
Michal
  • 459
  • 2
  • 7
  • 25

3 Answers3

1

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.

Helio Santos
  • 6,606
  • 3
  • 25
  • 31
1

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

Zahiduzzaman
  • 197
  • 1
  • 3
0

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.

Michal
  • 459
  • 2
  • 7
  • 25