Forum: Ruby on Rails ActionController::RoutingError?

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
chirag (Guest)
on 2007-05-11 08:56
(Received via mailing list)
I'm deploying a Flash chart using XML/SWF charting package from
http://blogs.tech-recipes.com/johnny/2006/08/29/ru...

I get the following error

ActionController::RoutingError (no route found to match "/sandbox/
charts.swf" with {:method=>:get})


when I embed this HTML code

<OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/
swflash.cab#version=6,0,0,0"  WIDTH="400"  HEIGHT="250"  id="charts"
ALIGN="">
<PARAM NAME=movie VALUE="/charts.swf?library_path=/
charts_library&xml_source=<
%=url_for :action=>"summaryreport",:only_path=>true%>">
<PARAM NAME=quality VALUE=high>
<PARAM NAME=bgcolor VALUE=#666666>
<EMBED src="/charts.swf?library_path=/charts_library&xml_source=<
%=url_for :action=>"summaryreport",:only_path=>true%>"
quality=high
bgcolor=#666666
WIDTH="400"
HEIGHT="250"
NAME="charts"
ALIGN=""
swLiveConnect="true"
TYPE="application/x-shockwave-flash"
PLUGINSPAGE="http://www.macromedia.com/go/getflashplayer">
</EMBED>
</OBJECT>

Any ideas why it thinks charts.swf is a controller?

Thanks!
Chirag
The Outlander (Guest)
on 2007-05-12 12:05
(Received via mailing list)
charts.swf is not a controller ... its your web server trying to serve
the html file ... which is looking for charts.swf ...
make sure that id and name are set to charts in the script and
noscript sections ... that worked for me ....

- Nick
This topic is locked and can not be replied to.