// Calls `to_param` on all its elements and joins the result with slashes.
// This is used by url_for in Viking Pack.
Object.defineProperty(Array.prototype, 'toParam', {
    value: function() {
        return _.map(this, function(e) { return e.toParam(); }).join('/');
    },
    writable: true,
    configureable: true,
    enumerable: false
});


// Converts an array into a string suitable for use as a URL query string,
// using the given key as the param name.
Object.defineProperty(Array.prototype, 'toQuery', {
    value: function (key) {
        var prefix = key + "[]";
        return _.map(this, function(value) { return value === null ? escape(prefix) + '=' : value.toQuery(prefix); }).join('&');
    },
    writable: true,
    configureable: true,
    enumerable: false
});

@@ -646,13 +646,25 @@
  ? e
-scape
+ncodeURIComponent
 (pre

Update array.js