RubyAMF-1.2 folks.
With so many requests for respond_to/format.amf functionality, I’m supporting it. Here is an example of using it in a class:
def MyController < ActionController::Base
def list
respond_to do |format|
format.amf { render :amf => User.find(:all) }
end
end
end
You also need to declare a new mime type in the rails/config/envirionment.rb file (towards the end of the file). Like so:
Mime::Type.register "application/x-amf", :amf


