icn
icn

Reputation: 17876

bootstrap static assets with ruby on rails

In bootstrap.css there is a line

  background-image: url("../img/glyphicons-halflings.png");

What should I replace this url to make it work with ruby on rails

Upvotes: 0

Views: 109

Answers (2)

R Milushev
R Milushev

Reputation: 4315

In case you would like to modify your bootstrap.css to work with asset-pipeline in Rails , you have to find and replace all references of kind "../img/glyphicons-halflings.png" to :

url(gliphicons-halflings.png) 

Make sure , that your .png files are in a directory managed by asset-pipeline , like explained in this Rails guide.

Upvotes: 0

Intrepidd
Intrepidd

Reputation: 20908

You should use the appropriate gem instead of linking twitter bootstrap yourself.

Upvotes: 2

Related Questions