Closed tdoganay closed 8 years ago
Are you getting errors with any other components? This particular error is most likely due to the way you're adding the font path. You can see what the paths are actually being captured by the asset pipeline by running this in Rails Console Rails.application.config.assets.paths
Also did importing it directly in the application.scss file not work?
@import "materialize/components/roboto";
- to add only the fonts (not 100% sure if this alone will work)
@import "materialize";
-to add everything
@tdoganay, seem like you did not load materialize component directly from this gem.
if you intent to load font component manually you should change the src: url
to src: font-url
see _roboto.scss
I get this error when my server is trying to get any of the roboto fonts. I've tried changing the src urls in _roboto.scss, putting all the fonts straight in the assets folder, and adding
to my application.rb file. Nothing gets it to work.
My index.html.slim file:
My Gemfile:
My assets folder:
Thanks for the help.