RubyAMF serves AMF, and AMF isn't SWF - therefore you can't serve a
SWF through it. You can however serve the movie through Rails. If
you want to serve an existing SWF, then take a peek at my tutorial
here: http://blog.eleventyten.com/2007/6/8/embedding-swf-content-with-ror
If you want to dynamically generate the SWF, then you'll need to look
at either MTASC/SWFMill, or the Flex SDK, or something similar.
HTH
Cliff
> if pattern.match(ip)
> @file = '/ads/x.swf'
> else
> @file = '/ads/y.swf'
> end
Try @file = "#{RAILS_ROOT}/public/ads/x.swf" :-)