I have js variable id
<a id="ajax" auction=<%= @product.id %> href="#" class="product active"><%= @product.name %></a>
<script>
var id = $(this).attr('auction');
</script>
I want to assign the id value to ruby variable
<% @v = 'JS VARIABLE' %>
Is it possible? How to Assign ?