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.
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.