Rails 3.1 assets pipeline issue in production

22 views
Skip to first unread message

Erwin

unread,
Jan 3, 2012, 10:57:06 AM1/3/12
to Ruby on Rails: Talk
I am running a jwplayer with an open ads server plugin .. it's running
fine in development, ads are served , but not in production on the
remote server... I guess it's related to the plugin file access ...

in development , I wrote in the script :
'plugins': {
"/assets/jwplayer/ova-jw.swf": {
"overlays": {"regions": [{ "id": .........

but in production as it's compiled , I got

'plugins': {
"/assets/jwplayer/ova-jw-cd5839fa631138fe59903b79af552531.swf": {
"overlays": {"regions": [{ "id": .......

I put it in assets/javascripts/jwplayer/ova-jw.swf
I did it because the player.swf is also in the same folder , and
running fine , the clip is playing...

the urls are generated , in partial _fw_player.js.erb , using
'flashplayer': "<%= escape_javascript( asset_path('jwplayer/
player.swf')) -%>",
and
'plugins': {
"<%= escape_javascript( asset_path('jwplayer/ova-jw.swf')) -%>":
{

is it wrong ? how and where should I store these 2 files to avoid
being compiled in Production ?

thanks for your feedback

Tim Shaffer

unread,
Jan 4, 2012, 12:35:49 PM1/4/12
to rubyonra...@googlegroups.com
If you don't want them to be compiled, you can just put them directly in the public/assets folder instead of in app/assets
Reply all
Reply to author
Forward
0 new messages