Answer the question
In order to leave comments, you need to log in
How to connect to a font in Ruby on Rails by creating a fonts folder?
I want to add a font.
Created a fonts/ folder in app/assets/ and uploaded the font here.
And I connect like this:
...
src: url(fonts/rouble.ttf);
...
And the font is not connected. Did I set the path correctly?
Answer the question
In order to leave comments, you need to log in
The answer you provided is not entirely correct. When deployed to the server, assets with digests are generated.
Correct:
src: font -url(rouble.ttf);
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question