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

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

Search Discussions

  • Tim Shaffer at Jan 4, 2012 at 5:36 pm
    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

    --
    You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
    To view this discussion on the web visit https://groups.google.com/d/msg/rubyonrails-talk/-/y8Kcc8EgBAgJ.
    To post to this group, send email to rubyonrails-talk@googlegroups.com.
    To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
    For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
grouprubyonrails-talk @
categoriesrubyonrails
postedJan 3, '12 at 3:57p
activeJan 4, '12 at 5:36p
posts2
users2
websiterubyonrails.org
irc#RubyOnRails

2 users in discussion

Tim Shaffer: 1 post Erwin: 1 post

People

Translate

site design / logo © 2021 Grokbase