-
Notifications
You must be signed in to change notification settings - Fork 21.9k
Sprockets::Rails::Helper::AssetFilteredError in Static#home #14730
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
Comments
Have you added |
I'm getting these error messages, too. Using this in my test.rb file:
The files it's complaining about are in my asset manifest. It's kinda annoying, also I don't really want it to precompile these files in dev & test, do I? |
After having this error, I realised that those lines would have fixed my issue, but I wasn't using the env I thought I was. Pardon me! |
@Fudoshiki could you provide a way to reproduce this issue or more information about it? If not I'll have to close it. |
I had a very similar problem while doing the lynda.com rails 4 tutorial. While I don't know if what I did was right, it did fix my problem. I created an assets.rb file in config/initializers and pasted this line in the assets.rb file. The tutorial doesn't say anything about this problem and I was stumped for a while. I am also unsure as to why this fixed my problem. So if anyone has more information about this type error or why it was fixed this way it would be greatly appreciated. |
Thanks buckspencer, that was very helpful. I would have banged my head against the wall much longer if I hadn't come across your post :) |
Asset filtered out and will not be served: add
Rails.application.config.assets.precompile += %w( static/home.css )
toconfig/initializers/assets.rb
and restart your serverShowing /app/views/static/home.html.haml where line #4 raised:
Asset filtered out and will not be served: add
Rails.application.config.assets.precompile += %w( static/home.css )
toconfig/initializers/assets.rb
and restart your server= content_for :content do
front page-home no-sidebars
= stylesheet_link_tag 'static/home', 'data-turbolinks-track' => true
latest rails 4.2.0 alpha from git
The text was updated successfully, but these errors were encountered: