@ font-face no Rails 4.0 com o URL Sass não encontrado para fontes personalizadas
No meu projeto Rails, estou tentando usar fontes personalizadas. Existem muitas respostas relacionadas a esta pergunta, como esta resposta que não ajudou, eu editeidevelopment.rb
:
# Add the fonts path
config.assets.paths << Rails.root.join('app', 'assets', 'fonts')
# Precompile additional assets
config.assets.precompile += %w( .svg .eot .woff .ttf )
ainda mostraNo route matches [GET] "/assets/chalkduster-webfont.woff"
Eu me pusurl
gostar:
@font-face {
font-family: 'chalkdusterregular';
src: url('chalkduster-webfont.eot');
src:url('chalkduster-webfont.svg#chalkdusterregular') format('svg'),
url('chalkduster-webfont.eot?#iefix') format('embedded-opentype'),
url('chalkduster-webfont.woff') format('woff'),
url('chalkduster-webfont.ttf') format('truetype');
font-weight: normal;
font-style: normal;
}
eu tenteifont_path('')
dentro da fonte e tambémfont-url()
isso nunca funciona. :(