I had the same problem and found a solution. Full credit goes to Eric Minkel, who wrote a detailed blog post on the topic. I would highly suggest reading it for further reasoning.
-
Edit
app/assets/stylesheets/application.cssby adding:*= require bootstrap -
Edit
app/assets/javascripts/application.jsby adding://= require bootstrap -
In
config/application.rb, add the following afterclass Application < Rails::Application. It should look like this:class Application < Rails::Application config.assets.paths << "#{Rails}/vendor/assets/fonts" -
In the terminal, compile your assets by running:
rake assets:precompile RAILS_ENV=development -
Edit the
bootstrap.cssfile by changing@font-faceresource locations from../fonts/to/assets/. It should look like this:@font-face { font-family: 'Glyphicons Halflings'; src: url('/assets/glyphicons-halflings-regular.eot'); src: url('/assets/glyphicons-halflings-regular.eot?#iefix') format('embedded-opentype'), url('/assets/glyphicons-halflings-regular.woff') format('woff'), url('/assets/glyphicons-halflings-regular.ttf') format('truetype'), url('/assets/glyphicons-halflings-regular.svg#glyphicons-halflingsregular') format('svg'); }
You’re done. Just restart with rails s and the glyphicons should appear.