Whole day I am trying to set up to work @font-face on localhost. Here's my setup:
application.rb and development.rb:
config.assets.paths << "#{Rails.root}/app/assets/fonts"
In CSS:
@font-face {
font-family: 'my_font';
src: asset-url('font_name.eot', font);
src: asset-url('font_name.eot?#iefix', font) format('embedded-opentype'),
asset-url('font_name.woff', font) format('woff'),
asset-url('font_name.ttf', font) format('truetype'),
asset-url('font_name.svg#AndrogyneMedium', font) format('svg');
}
I've tried also to precompile assets:
bundle exec rake assets:precompile
I've tried also couple times to restart app, but nothing didn't help me.
Could anyone give me any advice, how to fix it? Thank you in advance.
EDIT: Ok guys, I'll give you zillion dollars who help me to solve it :) I've tried probably everything...