rails 3 + mongrel + mime type swf

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!

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

Frederick Cheung wrote in post #988845: