RubyAMF is an open source flash remoting gateway for rails. It plugs directly into your controllers with render :amf.