When running in development env, I don''t have this problem, only in
production...
I have a view in which a js script display a FlowPlayer video player
(+ plugins)...
the flash files are located in the /public/dist folder, ant the
script calls them like that :
<script>
$f("player", "/dist/flowplayer-3.1.5.swf", {
plugins: {
rtmp: {
url: "/dist/flowplayer.rtmp-3.1.3.swf"
}
openAdStreamer: {
url: ''/dist/OpenAdStreamer.swf'',
..
how should I write the url to work both in dev and prod modes ?
thanks for your help
erwin
--
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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en.
I believe the problem is linked to using a sub-uri in production the /dist folder is search at the application root not at the relative url need more inquiries On 11 mar, 15:45, Erwin <yves_duf...-ee4meeAH724@public.gmane.org> wrote:> When running in development env, I don''t have this problem, only in > production... > > I have a view in which a js script display a FlowPlayer video player > (+ plugins)... > the flash files are located in the /public/dist folder, ant the > script calls them like that : > > <script> > $f("player", "/dist/flowplayer-3.1.5.swf", { > plugins: { > rtmp: { > url: "/dist/flowplayer.rtmp-3.1.3.swf" > } > openAdStreamer: { > url: ''/dist/OpenAdStreamer.swf'', > .. > > how should I write the url to work both in dev and prod modes ? > > thanks for your help > > erwin-- 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org 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.
Seemingly Similar Threads
- differences between relative_url using Rails with Prototype or JQuery
- URL issue localhost/mongrel vs remote-server/apache
- Rails 3.1 assets path for video player Flash script 'player.swf'
- [Rails 3] How to test routes urls in console
- How to store the same key multi times in a Hash ?