I’m trying to figure out the best way to send the contents of a
controller correctly interpret it as an array of floats.
So if I have
var points = [1,2,3,4,5,6]
I need to send this to the controller so I can
points_rb = param[:points]
or something similar
I had a similar problem, so maybe this will help you:
I wanted to send value of a tag via AJAX request. I’m doing
this using link_to_remote procedure and :with option. In this :with
maybe you could place there some JS that will send your array. All
these things are in ActionView’s Prototype Helper. Unfortunately, you
won’t find the :with option in official Rails API. Dig through Rails
source code and PrototypeJS documentation, and maybe you will figure
out how to send your array.