I’m getting values from the html using the following method:
javascript:
var list = "1,2,3,4";
$.post($(this).attr("action"), "my_list=" + list, null, "script");
html:
<%= f.submit "Save", :id => "save_bottom" %>
In my controller params[:my_list] has the value “1,2,3,4”. I can then iterate through it to get the values.
Is there a better/more efficient way to do this? Are there specific ruby functions that I should use?
Thanks for your help.
now in your controller: