On 4/28/06, SPENDLOVE, Matt, GBM <[EMAIL PROTECTED]> wrote:
That's pretty much what I did in the end anyway. Didn't have any joy with flatten()..
There is also Hash.toQueryString() and String.prototype.toQueryParams(). Mind the fix from for the later, laying around in the bug tracker.
As you say, I am not realy sure of the behaviour for more complex objects.
The Javascript implementation of a JSON de-/encoder by Douglas Crockford should do the trick. http://www.json.org/js.html _______________________________________________ Rails-spinoffs mailing list Rails-spinoffs@lists.rubyonrails.org http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs