jasontorres / bootstrap-on-rails

A simpler implementation of Bootstap 3 for Rails. Only packaged assets. No bloat. Pure Less.
52 stars 8 forks source link

(No route matches [GET] "/assets/glyphicons-halflings-regular.woff"): #13

Open rdgco opened 10 years ago

rdgco commented 10 years ago

Hi, I am using this gem along with the angular xeditable directive which uses some of the glyph icons for save and cancel buttons. However, the icons are not loaded and I get the above error. I did try running this:

rake assets:precompile RAILS_ENV=development

That created the following files in RAILS/public/assets/bootstrap:

glyphicons-halflings-regular-599fd3bcfe704ccad02f63c41b85119b.eot
glyphicons-halflings-regular-8e68b772d9d1f7ce7fa6f32dcd9d6755.woff
glyphicons-halflings-regular-b47dd4238c3ff3373d62015160fbdc50.ttf
glyphicons-halflings-regular-f13090a8b5b54b380db352e15e036bf9.svg

I figure that I need to somehow tell the asset pipeline to include these files but I'm not sure how to do that. Any advice would be appreciated. The project is at:

https://github.com/rdgco/my-answer-tool

Thanks,

Ryan Grow

folivi commented 10 years ago

hi @rdgco having the same issue

error evaluating function `asset-url`: couldn't find file '../fonts/glyphicons-halflings-regular.eot' (in /Users/folivifolly/Documents/projects/rails/amsport/app/assets/stylesheets/bootstrap_override.less)

Have you solved your issue?

rdgco commented 10 years ago

Hi @folivi,

For me, I fixed the problem in my project by downloading the ui-bootstrap-tpls-[version].min.js file which has the templates embedded inside of it, so they are referenced by element id instead of url. Then I require that file from my application.js.

Ryan