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? -- 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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
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?-- 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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
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?-- 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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
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.-- 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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---