I have created one file for the fonts in the stylesheets folder in rails application
@font-face {
font-family: 'MuseoSans500';
src: url("<%= asset_path('museosans_500-webfont.eot?')%>") format('embedded-opentype');
font-weight: normal;
font-style: normal;
}
@font-face {
font-family: 'MuseoSans500';
src: url("<%= asset_path('museosans_500-webfont.woff')%>") format('woff'),
url("<%= asset_path('museosans_500-webfont.ttf')%>") format('truetype'),
url("<%= asset_path('museosans_500-webfont.svg#MuseoSans500')%>") format('svg');
font-weight: normal;
font-style: normal;
}
Now When I precompile the assets .. It gives me error on the style.css.erb page. I have kept trace on the sprockets for the path and I got this file. The error is
paths subpath /home/new_app/app/assets/stylesheets/app-theme/themes/default/style.css.erb
rake aborted!
undefined method `[]' for nil:NilClass
(in /home/hbror/applications/survey/app/assets/stylesheets/application.css)