Rails to_xml method problem with Flex
03/06/2008
I ran into a problem while trying to receive data form my Rails app and consuming it in Flex. The attributes were named first_name and last_name in my Rails app but I couldnt read them in Flex. I looked at the xml generated and realized that Rails changes the ‘_’ to ‘-’ by default. To avoid this run the to_xml method with to_xml(:dasherize => false) set to false.