Topic: Passing an array of values

I have an array from the browser (using javascript) of numbers such as: x = [1,2,3,4,5,6] and y=[2,4,6,8,10,12] that I would like to post to the server and recover in a controller method using something as simple as params[:x].  I tried $.params({x: [1,2,3,4,5,6]}) but this gives a long uninterpretable string.

Re: Passing an array of values

I answer my own question: $.post(url, {x : x_array, y :y_array}, null, "script") was the correct format.