ActionView::Template::Error default.css isn't precompiled
Closed this issue · 3 comments
jogaco commented
This is what I get in production environment:
[2014-12-03 09:34:47.563[FATAL] ActionView::Template::Error (apitome/highlight_themes/default.css isn't precompiled):
3: <head>
4: <title><%= Apitome.configuration.title %></title>
5: <meta name="viewport" content="width=device-width, initial-scale=1.0">
6: <%= stylesheet_link_tag Apitome.configuration.code_theme_url, media: 'all' %>
7: <%= stylesheet_link_tag Apitome.configuration.css_override || 'apitome/application', media: 'all' %>
8: <%= javascript_include_tag Apitome.configuration.js_override || 'apitome/application' %>
9: </head>
actionpack (3.2.18) lib/sprockets/helpers/rails_helper.rb:142:in `digest_for'
actionpack (3.2.18) lib/sprockets/helpers/rails_helper.rb:151:in `rewrite_asset_path'
jogaco commented
I had to add these in production.rb:
config.assets.precompile += %w( apitome/*.css apitome/*.js )
config.assets.precompile += %w( apitome/*.css apitome/*.js )
Maybe this could be documented in README?
sugarfree1 commented
+1
jejacks0n commented
This should be addressed now. Thanks.