# Question about Rails development environment

**URL:** <https://www.ruby-forum.com/t/question-about-rails-development-environment/139910>\
**Category:** Rails\
**Created:** [June 9, 2008, 12:30am UTC](https://www.ruby-forum.com/t/question-about-rails-development-environment/139910 "2008-06-09T00:30:58Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![soderic](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/8baadc/32.png) [@soderic](https://www.ruby-forum.com/u/soderic)\
**Post date:** [June 9, 2008, 12:30am UTC](https://www.ruby-forum.com/t/question-about-rails-development-environment/139910/1 "2008-06-09T00:30:58Z")

</div>

I’m a newbie with Ruby on Rails and have a couple of questions with  
respect to the development environment. My current app works correctly  
except for the issue that any .rhtml file I have with a flash file  
(.swf) hangs the browser where the flash doesn’t load. When I run the  
same file locally on my machine outside of rails everything works  
correctly. Does webrick or mongrel development servers that come with  
rails not support .swf files?

---

<div class="post-metadata">

**Author:** ![soderic](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/8baadc/32.png) [@soderic](https://www.ruby-forum.com/u/soderic)\
**Post date:** [June 9, 2008, 1:51am UTC](https://www.ruby-forum.com/t/question-about-rails-development-environment/139910/2 "2008-06-09T01:51:35Z")

</div>

Hello,

It sounds to me as if your IDE previewing browser may have an issue  
displaying SWFs. Which IDE do you use for developing Rails apps? Have  
you tried running your app with an external browser like Firefox or  
Internet explorer? Maybe you have to reinstall your flash plugin?

As far as I know, Webrick and mongrel servers (and servers in general)  
don’t have any problems serving swf files. SWF files are just files that  
get downloaded to your PC and the browser then uses a plug in to play  
them.

Eric Soliz wrote:

> I’m a newbie with Ruby on Rails and have a couple of questions with  
> respect to the development environment. My current app works correctly  
> except for the issue that any .rhtml file I have with a flash file  
> (.swf) hangs the browser where the flash doesn’t load. When I run the  
> same file locally on my machine outside of rails everything works  
> correctly. Does webrick or mongrel development servers that come with  
> rails not support .swf files?

---

<div class="post-metadata">

**Author:** ![soderic](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/8baadc/32.png) [@soderic](https://www.ruby-forum.com/u/soderic)\
**Post date:** [June 9, 2008, 5:00am UTC](https://www.ruby-forum.com/t/question-about-rails-development-environment/139910/3 "2008-06-09T05:00:15Z")

</div>

Thank you for the reply. Currently I do not use an IDE that has  
previewing browser capability. I edit my files in Microsoft Visual  
Studio for now. My problem is running any .rhtml file with flash in it  
through webrick or mongrel. When I do this the IE browser hangs,  
everything else loads up fine except the .swf file. The .rhtml has no  
ruby in it. When I take the same file and put a .html extension and run  
it locally on my machine in IE the flash movie loads up fine. This is  
why I thought it might be related to the webrick, mongrel server  
deployed with rails. I liked your idea with reinstalling the flash  
plugin but if the flash works locally as a .html and not as a .rhtml I  
would think the plugin is ok. Maybe a permission problem with webrick,  
mongrel? Don’t know.

ga rg wrote:

> Hello,
> 
> It sounds to me as if your IDE previewing browser may have an issue  
> displaying SWFs. Which IDE do you use for developing Rails apps? Have  
> you tried running your app with an external browser like Firefox or  
> Internet explorer? Maybe you have to reinstall your flash plugin?
> 
> As far as I know, Webrick and mongrel servers (and servers in general)  
> don’t have any problems serving swf files. SWF files are just files that  
> get downloaded to your PC and the browser then uses a plug in to play  
> them.
> 
> Eric Soliz wrote:
> 
> > I’m a newbie with Ruby on Rails and have a couple of questions with  
> > respect to the development environment. My current app works correctly  
> > except for the issue that any .rhtml file I have with a flash file  
> > (.swf) hangs the browser where the flash doesn’t load. When I run the  
> > same file locally on my machine outside of rails everything works  
> > correctly. Does webrick or mongrel development servers that come with  
> > rails not support .swf files?

---

<div class="post-metadata">

**Author:** ![soderic](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/8baadc/32.png) [@soderic](https://www.ruby-forum.com/u/soderic)\
**Post date:** [June 9, 2008, 6:41am UTC](https://www.ruby-forum.com/t/question-about-rails-development-environment/139910/4 "2008-06-09T06:41:47Z")

</div>

I think , it may be src in your flash swf. your browser display good  
this file with .html then it also display it good in .rhtml, not problem  
with this file. But mongrel and webrick is server and server need your  
local file is correct.  
I think it can not display because that

Eric Soliz wrote:

> Thank you for the reply. Currently I do not use an IDE that has  
> previewing browser capability. I edit my files in Microsoft Visual  
> Studio for now. My problem is running any .rhtml file with flash in it  
> through webrick or mongrel. When I do this the IE browser hangs,  
> everything else loads up fine except the .swf file. The .rhtml has no  
> ruby in it. When I take the same file and put a .html extension and run  
> it locally on my machine in IE the flash movie loads up fine. This is  
> why I thought it might be related to the webrick, mongrel server  
> deployed with rails. I liked your idea with reinstalling the flash  
> plugin but if the flash works locally as a .html and not as a .rhtml I  
> would think the plugin is ok. Maybe a permission problem with webrick,  
> mongrel? Don’t know.
