The title pretty much says it all...
I tried adding /app/assets/fonts/font.woff
and referencing it from my css file with /app/assets/fonts/font.woff
but it doesn't seem to work.
Any ideas?
It turns out that the asset pipeline that @JimLim mentioned works a bit differently in Rails 4. Full docs here, but here's the relevant excerpt:
2 How to Use the Asset Pipeline
In previous versions of Rails, all assets were located in subdirectories of public such as images, javascripts and stylesheets. With the asset pipeline, the preferred location for these assets is now the app/assets directory. Files in this directory are served by the Sprockets middleware.
Assets can still be placed in the public hierarchy. Any assets under public will be served as static files by the application or web server. You should use app/assets for files that must undergo some pre-processing before they are served.
In production, Rails precompiles these files to public/assets by default. The precompiled copies are then served as static assets by the web server. The files in app/assets are never served directly in production.
So I ended up moving my /fonts directory into /public adjusting my paths in the @font-face declaration accordingly and everything works fine.