A
A
Andrey2017-03-24 11:42:57
css
Andrey, 2017-03-24 11:42:57

How to properly include fonts in rails?

Rails 3.2
Everywhere in the project such code is used, I do it for my font - it is not displayed.
assets/stylesheets/slick/slick-theme.css

/* Icons */
@font-face {
    font-family: 'slick';
    font-weight: normal;
    font-style: normal;

    src: asset-url('slick.eot', fonts);
    src: asset-url('slick.eot?#iefix', fonts) format('embedded-opentype'),
        asset-url('slick.woff', fonts) format('woff'),
        asset-url('slick.ttf', fonts) format('truetype'),
        asset-url('slick.svg#slick', fonts) format('svg');
}

Maybe just because of another nesting problem? how to write the path? although the file gives assets/slick.eot

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question