Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Rails 4.1] Sprockets error: Asset filtered out and will not be served #19

Closed
DanielKehoe opened this issue Apr 10, 2014 · 0 comments
Closed

Comments

@DanielKehoe
Copy link
Member

When using Foundation with Rails 4.1.0, when visiting any page of the rails-foundation example app, I get this error:

Sprockets::Rails::Helper::AssetFilteredError at /
Asset filtered out and will not be served: add `config.assets.precompile += %w( vendor/modernizr )` to `config/application.rb` and restart your server

This is because sanity checks from the sprockets_better_errors gem have been merged into Rails 4.1. The intent is to reveal asset pipeline errors that you would see in production when you run the app in development mode. See rails/sprockets-rails#84

To resolve this, the rails_layout gem should update the config/application.rb file to include:

config.assets.precompile += %w( vendor/modernizr )

Note that the filename should not include the .js file extension.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant