Skip to content

HOWTO: Build assets with new Twitter Bootstrap version

kugaevsky edited this page Sep 24, 2012 · 2 revisions

This article was written to help you fix problems with twitter-bootstrap-gem after bumping original twitter-bootstrap version.

So, if you updated gem and encounter issues with

  • glyphicons styles
  • old bootstrap version of javascript or css files
  • improper javascript calls

tips below may help you.

  1. Remove old versions of twitter-bootstrap-rails gem
$ gem cleanup twitter-bootstrap-rails
  1. Increase assets version in config/application.rb file
# Version of your assets, change this if you want to expire all your assets
config.assets.version = '1.1'    # <--- Bump it up!
  1. Regenerate twitter-bootstrap-rails default files
$ rails generate bootstrap:install

NB! Be careful! This could overwrite changes you have made to bootstrap_and_overrides and other bootstrap files. Always check diff before doing this.

Open an issue if these tips didn't help you.