Ruby On Rails Bootstrap glyph icons not working properly

html, ruby, ruby-on-rails, twitter-bootstrap

Solution

It depends on what you are using. Try adding this to your application.css.scss or whatever file you are using to override some bootstrap stuff.

[class^="icon-"], [class*=" icon-"] {
  background-image: url(/assets/glyphicons-halflings.png)
}

My guess is that it's not searching in the right location. So figure out where it is and then just direct the link there.

Problem

For some reason my Application isn't finding my glyph-icons in my Aseets folder. This is the message that I'm receiving ``` ActionController::RoutingError (No route matches [GET] "/assets/images/glyphicons-halflings.png"): ``` I'm sorry if this is a stupid question and or it's already been answered, I'm fairly new to rails and I just can't seem to figure it out.

Original source