Hello everyone,
I am trying to include a swf flash animation in a view with this code
in the rhtml file :
-----------
<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000"
codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/
swflash.cab#version=7,0,0,0" width=730 height=420 id="swf"
align="middle">
<param name="allowScriptAccess" value="sameDomain" />
<param name="movie" value="flash/entrance_hall.swf"/>
<param name="quality" value="high" />
<param name="bgcolor" value="#CCDFD9" />
<embed src="flash/entrance_hall.swf" quality="high"
bgcolor="#CCDFD9"
width=730 height=420 name="swf" align="middle"
allowScriptAccess="sameDomain"
type="application/x-shockwave-flash"
pluginspage="http://www.macromedia.com/go/getflashplayer" />
</object>
-------------
... where ''flash/entrance_hall.swf'' is placed in the public
directory.
It seems that rails interprets it as a link to a controller (named
HomeController in this example) since this error is launched :
ActionController::RoutingError (no route found to match "/home/flash/
entrance_hall.swf" with {:method=>:get}):
Since <%= image_tag ''file'' %> is necessary to replace
the html version
of <img src=''images/file''> I was wondering if there was
a flash_tag
that could tell rails my ''flash/entrance_hall.swf'' is not a
call to a
controller.
Or maybe there is another solution, may anyone help me ?
Thanks,
Guillaume
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---