I'm having trouble getting fonts working in Rails.
I'm using the Summernote text editor in a Rails app. I have a summernote.css file at vendor/assets/stylesheets/summernote.css. This references font urls like url("font/summernote.eot?ad8d7e2d177d2473aecd9b35d16211fb").
(I don't know what the id at the end means?)
So I also have font files in vendor/assets/stylesheets/font:
vendor/assets/stylesheets/font/summernote.eotvendor/assets/stylesheets/font/summernote.ttfvendor/assets/stylesheets/font/summernote.woff
This actually works fine when I'm developing locally. However, once I deploy to Heroku, the fonts no longer show up.
From browsing around, it looks like I should be putting the fonts under app/assets/fonts instead. But I can't get it to work. I've tried putting them at:
app/assets/fonts/summernote.woffapp/assets/fonts/font/summernote.woff
But these don't work and I still get 404 not found errors for the font files on Heroku.
Where am I supposed to be putting the font files?
FWIW, I'm also using Bootstrap SCSS files located at vendor/assets/stylesheets/bootstrap/bootstrap.min.scss, which refer to src:url(../fonts/glyphicons-halflings-regular.eot?#iefix), and the fonts are located at app/assets/fonts/glyphicons-halflings-regular.eot. These have the opposite problem: they work fine on Heroku, but I get 404 errors when developing locally.