title: Rails -- Using CSS3's @font-face
body: <p>In my <code>global.css</code> file which is loaded by <code>application.html.erb</code>, I have the following lines:</p>
  
  <pre><code>@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 */ 
  
  }
  </code></pre>
  
  <p>And then elsewhere I have</p>
  
  <pre><code>h1 {
    font-family: myfont, helvetica, arial;
  }
  </code></pre>
  
  <p>When I booted up the server h1 was using the Helvetica font, and I got the error in my log <code>ActionController::RoutingError (No route matches [GET] "/lib/fonts/MyFont-AH.ttf"):</code>.  I figured that this meant I would need to edit my routes file, so I went and added the line <code>get "/lib/fonts/MyFont-AH.ttf"</code>, but then when I reloaded the page I got the error <code>missing :controller</code> 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?</p>