开发者

Rails 3.1 precompilation error in production for SWF file

I have a few .swf files that are being added to a project via a git submodule. They live in /vendor/private/widget/

To get the .swf files into the asset pipeline I'm doing the following:

config.assets.paths << "#{Rails.root}/vendor/private/widget"

In development this works just fine, but in production I get the following error:

Acti开发者_StackOverflowonView::Template::Error (widget.swf isn't precompiled):

After searching around StackOverflow, I've tried these two solutions, both of which did not work:

config.assets.precompile << '*.swf'

config.assets.compile = true


Try setting application.rb 's

config.assets.digest = true

to

config.assets.digest = false

for the precompile, and flip it back to true afterwards. I don't know why this works or what part of the url digest would be preventing the asset inclusion, but this has been the only way i've found to be able to generate my assets in production to include swf files.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜