Hi there! I ran rails 3 application in localhost. In index.html.erb file I added <object type="application/x-shockwave-flash" data="../public/player_mp3.swf" width="200" height="20"> <param name="movie" value="player_mp3.swf" /> <param name="FlashVars" value="mp3=file.mp3" /> </object> However, when Mongrel server sends swf resource with Content-Type:text/html; charset=utf-8, and because of this nothing is displayed in browser. How can I configure mongrel(I use it only in localhost) to return corect Mime type for swf object ? Thank you! -- Posted via http://www.ruby-forum.com/. -- 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.
On 23 Mar 2011, at 07:32, Burebista <lists-fsXkhYbjdPsEEoCn2XhGlw@public.gmane.org> wrote:> Hi there! > > I ran rails 3 application in localhost. In index.html.erb file I added > > <object type="application/x-shockwave-flash" > data="../public/player_mp3.swf" width="200" height="20">That path looks wrong - if the file is in public, the URL for it is /player_mp3.swf Fred> <param name="movie" value="player_mp3.swf" /> > <param name="FlashVars" value="mp3=file.mp3" /> > </object> > > However, when Mongrel server sends swf resource with > Content-Type:text/html; charset=utf-8, and because of this nothing is > displayed in browser. > > How can I configure mongrel(I use it only in localhost) to return corect > Mime type for swf object ? > > Thank you! > > -- > Posted via http://www.ruby-forum.com/. > > -- > 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. >-- 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.
Frederick Cheung wrote in post #988845:> On 23 Mar 2011, at 07:32, Burebista <lists-fsXkhYbjdPsEEoCn2XhGlw@public.gmane.org> wrote: > >> Hi there! >> >> I ran rails 3 application in localhost. In index.html.erb file I added >> >> <object type="application/x-shockwave-flash" >> data="../public/player_mp3.swf" width="200" height="20"> > That path looks wrong - if the file is in public, the URL for it is > /player_mp3.swf > > FredThank you Fred, that little slash solved problem ! -- Posted via http://www.ruby-forum.com/. -- 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.