jarrod wrote:
> So far the best I've come up with is a collect iterator on the array
> that builds a JSON string of each item. I then pass the
> string.evalJSON() to the $H() operator.
Ouch! That sounds like a really bad idea. Did you try something like this:
myhash = {};
$A(myarray).each(function(item) {
myhash[item.id] = item;
})
--
Michael Peters
Developer
Plus Three, LP
--~--~---------~--~----~------------~-------~--~----~
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 [email protected]
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
-~----------~----~----~----~------~----~------~--~---