Project

General

Profile

Bug #2233

assets for plugins cause failures

Added by cpg over 3 years ago.

Status:
Assigned
Priority:
High
Assignee:
Category:
-
Target version:
Start date:
04/29/2017
Due date:
% Done:

0%


Description

this happens after installing plugins

ActionView::Template::Error (Asset was not declared to be precompiled in production.
Add `Rails.application.config.assets.precompile += %w( disk_wizards.css )` to `config/initializers/assets.rb` and restart your server):
    13:     = theme_stylesheet_link_tag 'style'
    14:     = theme_stylesheet_link_tag('rtl') if rtl?
    15:     - amahi_plugins.each do |p|
    16:       = stylesheet_link_tag p[:class].underscore
    17:
    18:     /[ if lt IE 9 ]
    19:       = javascript_include_tag 'http://html5shim.googlecode.com/svn/trunk/html5.js'

two possible solutions:

  • dynamically add/remove the assets with plugin installation (proper thing to do)
  • turn off asset pipeline (big hammer, but maybe it's ok?)

Also available in: Atom