jQuery is client side.  Ruby is server side.  jQuery (or any JavaScript) is
completely incapable of setting a Ruby (or any server-side language)
variable.  However, you can use jQuery's $.ajax() method to send an
asynchronous request to the server, passing along the variable value.  Check
the jQuery docs for details on the $.ajax() method.

Reply via email to