Rails 3 + mongrel + mime type swf

Hi there!

I ran rails 3 application in localhost. In index.html.erb file I added




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!

On 23 Mar 2011, at 07:32, Burebista [email protected] wrote:

Hi there!

I ran rails 3 application in localhost. In index.html.erb file I added


That path looks wrong - if the file is in public, the URL for it is
/player_mp3.swf

Fred

Frederick C. wrote in post #988845:

On 23 Mar 2011, at 07:32, Burebista [email protected] wrote:

Hi there!

I ran rails 3 application in localhost. In index.html.erb file I added


That path looks wrong - if the file is in public, the URL for it is
/player_mp3.swf

Fred

Thank you Fred, that little slash solved problem !