seanbehan / videojs_rails

Video JS for Rails 3.1 Asset Pipeline
91 stars 71 forks source link

vjs.woff will not be served #17

Closed geetotes closed 10 years ago

geetotes commented 10 years ago

I just did a fresh install of this gem on a rails4 project and I'm getting this error on my view:

Asset filtered out and will not be served: add `Rails.application.config.assets.precompile += %w( vjs.woff )` to `config/initializers/assets.rb` and restart your server
geetotes commented 10 years ago

whoops, take that back. did not read the documentation fully :(

grzlus commented 10 years ago

But documentation need to be updated to Rails 4 way (use config/initializers/assets.rb not environment).

geetotes commented 10 years ago

Interesting; I added an assets.rb in my project with the line:

 Rails.application.config.assets.precompile += %w( vjs.eot )

And it did not do anything. Only adding to my enviroment/production.rb and environment/development.rb the line specified in the docs fixed it.

grzlus commented 10 years ago

You need to add (depending on your error):

Rails.application.config.assets.precompile += %w( vjs.woff )

Not

Rails.application.config.assets.precompile += %w( vjs.eot )

Your browser want to download woff not eot (for IE)