DEfusion (4) [Avatar] Offline
I get Type Coercion errors for Note, Project & LocationVO (all pretty much the same), for notes it is as follows:

TypeError: Error #1034: Type Coercion failed: cannot convert mx.utils::ObjectProxy@18e193e9 to com.pomodo.vo.NoteVO.
at com.pomodo.command::ShowNoteCommand/result()[]
at mx.rpc::AsyncToken/[E:devflex_3_beta3sdkframeworksprojects pcsrcmx]
at[E:devflex_3_beta3sdkframeworksprojects pcsrcmx]
at mx.rpc::AbstractOperation/[E:devflex_3_beta3sdkframeworksprojects pcsrcmx]
at mx.rpc::AbstractInvoker/[E:devflex_3_beta3sdkframeworksprojects pcsrcmx]
at mx.rpc::Responder/result()[E:devflex_3_beta3sdkframeworksprojects pcsrcmx]
at mx.rpc::AsyncRequest/acknowledge()[E:devflex_3_beta3sdkframeworksprojects pcsrcmx]
at NetConnectionMessageResponder/resultHandler()[E:devflex_3_beta3sdkframeworksprojects]
at mx.messaging::MessageResponder/result()[E:devflex_3_beta3sdkframeworksprojects]

If I dump the event.result within the ShowNoteCommand::result method I get the following:

attributes = (Object)#1
content = "Ludwig's notes"
created_at = "2008-02-06 19:16:40"
id = "875057608"
updated_at = "2008-02-06 19:22:22"
user_id = "875057608"
attributes_cache = (Object)#2

To me it looks like the remote objects aren't working as they should, but I could be wrong.

So far I've really enjoyed the book (one of the best I've read in ages). It's just a shame that I've fallen over at the point that made me read the book in the first place (I wanted a better introduction to using RubyAMF with Flex).

DEfusion (4) [Avatar] Offline
Re: Iteration 11 nothing works after migration to AMF
Ah-ha, my bad, sorry for that.

I hadn't restarted the server since I updated the RubyAMF config in rails so it hadn't picked up all those changes. A quick restart and everything works fine - yippie.

Really is a great book and has given me the best start of using Flex with Rails I think anything possible could (and I've been using Flex with CakePHP -- a poor rails clone) for a few months now.

Sorry for the erroneous original post.