In my global.css file which is loaded by application.html.erb, I have the following lines:
@font-face {
font-family: myfont;
src: url(/lib/fonts/MyFont-AH.ttf) format("truetype"); /* For IE */
src: local("MyFont-AH"), url(/lib/fonts/MyFont-AH.ttf) format("truetype"); /* Non-IE */
}
And then elsewhere I have
h1 {
font-family: myfont, helvetica, arial;
}
When I booted up the server h1 was using the Helvetica font, and I got the error in my log ActionController::RoutingError (No route matches [GET] "/lib/fonts/MyFont-AH.ttf"):. I figured that this meant I would need to edit my routes file, so I went and added the line get "/lib/fonts/MyFont-AH.ttf", but then when I reloaded the page I got the error missing :controller because there is no controller tied to this action. When I created a controller and matched the get request to it, it then wanted a template. It seems that it wants me to have a controller / action set up like most other get requests, so I'm not quite sure what to do here. Any suggestions?