user2402831
user2402831

Reputation: 673

Rails 4: Bootstrap-sass and glyphicons

Using the bootstrap-sass gem, but can't get glyphicons to show up in my view.

Gemfile

gem 'bootstrap-sass', '2.3.2.0'
gem 'sass-rails', '>= 4.0.0'

CSS File

@import "bootstrap";

View

<i class="glyphicon glyphicon-indent-right"></i>

Upvotes: 0

Views: 2654

Answers (2)

Flavio Bordoni
Flavio Bordoni

Reputation: 41

try to use

CSS File

@import "bootstrap-sprockets"; //this allow the gliphicon to work
@import "bootstrap";

This worked with my Gemfile

gem 'bootstrap-sass', '3.2.0.1'
gem 'sass-rails', '~> 4.0.0'

Upvotes: 3

backpackerhh
backpackerhh

Reputation: 2353

With Bootstrap 2.3+ you need <i class="icon-indent-right"></i>.

Check the official guide.

Upvotes: 0

Related Questions