I’m new to RubyAmf. I noticed that you can send an object with RubyAmf as follows:
format.amf { render :amf => @user}
Which works fine. But I wasn’t sure what to do what when I have two ,or more, objects:
@projects = @user.projects
@tasks = @user.tasks
How can I can send @projects and @tasks without having to do multiple requests from flex.
Thanks,
Tam
As per the RubyAMF code there is support array serialization. So the following code should work.
If you want to send both
projectsandtaskstogether you can send them back in a hash.Caveat: I haven’t tested this code. I am inferring the functionality based on the gem code.