Do you have your source code available to look at on Github?
Mark
Cheers,
Phil
--
You received this message because you are subscribed to the Google Groups
"rubyamf" group.
To post to this group, send email to rub...@googlegroups.com.
To unsubscribe from this group, send email to
rubyamf+u...@googlegroups.com.
For more options, visit this group at
http://groups.google.com/group/rubyamf?hl=en.
Can you give me some more details on how you were launching it to get this
failure mode. Thanks.
Mark
-----Original Message-----
From: rub...@googlegroups.com [mailto:rub...@googlegroups.com] On Behalf
Of warhammerkid
Sent: Saturday, November 20, 2010 3:04 PM
To: rubyamf
Subject: [RubyAMF] Re: Still needing simple setup instructions...
--
I've tried this to no avail...
FLEX:
var token:AsyncToken;
token = AsyncToken(myService.index());
token.message.headers['Content-Type'] = 'application/x-amf';
token.message.headers['HTTP_ACCEPT'] = 'application/x-amf';
Rails 3.0.1 in controller:
This will render my AMF objects, but also logs layouts with headers/footers
n such. killing performance advantages
def index
if is_amf
render :amf => @policies, :class_mapping_scope => :viewing, :layout =>
false
else
respond_to do |format|
format.amf { render :amf => @policies, :layout => false }
#format.html {logger.info ("Policies#index html")}
#format.xml { render :xml => @policies.to_xml(:dasherize =>
false) }
end
end
end
Rails 3.0.1 in same controller:
This results in 406 "Not acceptable" and no AMF is returned.
def index
respond_to do |format|
format.amf { render :amf => @policies, :layout => false }
format.html {logger.info ("Policies#index html")}
format.xml { render :xml => @policies.to_xml(:dasherize => false) }
end
end
Here is a log snippet:
At least for now I can continue working on this project and get some other
thing accomplished.
This won't work for production releases though.
Michael.