jejacks0n/apitome

ActionView::Template::Error default.css isn't precompiled

Closed this issue · 3 comments

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'

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?

This should be addressed now. Thanks.