rubyonrailsin

A Ruby and Rails talk

Thursday, March 11, 2010


[Rails] Re: bad url in js script

by rubyonrailsin 0 comments

Tag


Share this post:
Design Float
StumbleUpon
Reddit

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...@mac.com> 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@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.

No comments:

Post a Comment

Subscribe feeds via e-mail

Blog Archive