"each" is for Enumerables like Arrays, you are returning an object. http://www.prototypejs.org/api/enumerable/each
So if you want to iterate over a list of Object properties you can use a "for in loop" or Object.keys(data).each(... or Object.values(data).each(... or $H(data) and perform other operations: http://www.prototypejs.org/api/hash - JDD --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Spinoffs" group. To post to this group, send email to rubyonrails-spinoffs@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs?hl=en -~----------~----~----~----~------~----~------~--~---