Is it possible to move SWF files to the asset pipeline, and if possible how can this be done?
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With