# Embed flash application

**URL:** <https://www.ruby-forum.com/t/embed-flash-application/174747>\
**Category:** Rails\
**Created:** [September 1, 2009, 4:16pm UTC](https://www.ruby-forum.com/t/embed-flash-application/174747 "2009-09-01T16:16:49Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Robin\_F](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/c2a13f/32.png) [@Robin\_F](https://www.ruby-forum.com/u/Robin_F)\
**Post date:** [September 1, 2009, 4:16pm UTC](https://www.ruby-forum.com/t/embed-flash-application/174747/1 "2009-09-01T16:16:49Z")

</div>

Hi,

I have a third-party flash application that needs to be incorporated  
into a site I look after.

The application consists of an swf in a standard html file and then a  
load of supporting files organised in directories under the directory  
in which the swf is located. What is the best way to get this on to  
the site?

I have tried dropping everything in public and calling  
render :template but this just downloads the page as a whole and  
doesn’t display it.

Any help would be appreciated.

Thanks

Robin

---

<div class="post-metadata">

**Author:** ![Robin\_F](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/c2a13f/32.png) [@Robin\_F](https://www.ruby-forum.com/u/Robin_F)\
**Post date:** [September 1, 2009, 7:56pm UTC](https://www.ruby-forum.com/t/embed-flash-application/174747/2 "2009-09-01T19:56:57Z")

</div>

create a controller that has an action lets say flashController with  
action index…

def index  
end

Which renders index.html.erb

then cut’n past the html into that file…

app/views/flash/index.html.erb

---

<div class="post-metadata">

**Author:** ![Robin\_F](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/c2a13f/32.png) [@Robin\_F](https://www.ruby-forum.com/u/Robin_F)\
**Post date:** [September 1, 2009, 8:29pm UTC](https://www.ruby-forum.com/t/embed-flash-application/174747/3 "2009-09-01T20:29:44Z")

</div>

On Sep 1, 6:34 pm, heimdull [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> app/views/flash/index.html.erb  
> Thanks. Then the swf looks for its supporting files in app/views/  
> flash/… Would there be a problem putting the files there?

Robin
