Ideally, @zilojko's solution works, but I also have an active admin in this application. Therefore, looking a little further, I found the following solution:
Rails.application.config.assets.precompile += %w(*.svg *.eot *.woff *.ttf *.gif *.png *.ico) Rails.application.config.assets.precompile << /\A(?!active_admin).*\.(js|css)\z/
Just add the lines above: /config/initializers/assets.rb
The asset precompilation code above when skipping active admin files. so that they are not processed twice or out of turn, which leads to errors.
whizcreed Feb 06 '15 at 12:41 2015-02-06 12:41
source share