Is it possible to move SWF files to the asset pipeline, and if possible how can this be done?
Richard Hulse
I would recommend putting them in a folder called app/assets/flash.
Add this folder to your asset paths:
config.assets.paths << Rails.root.join('app', 'assets', 'flash')
They can be referenced like this in your views:
asset_path('name_of_swf')
The asset_path helper will ensure the correct file is referenced in development and production modes.
来源:https://stackoverflow.com/questions/8990393/ruby-on-rails-3-1-move-swf-to-asset-pipeline