Displaying 1 result from an estimated 1 matches for "update_items_path".
2008 Mar 02
2
check_box_tag remote_function
I have a collection of check_box_tags that look like the following:
<% for item in @items %>
<%= check_box_tag "item[item_ids][]", item.id, false, {:onchange =>
remote_function(:url => update_items_path, :with => "''items='' +
escape(value) "} %>
<%= item.name %>
<% end %>
My question is, how do I send all of the current checkbox values
(item[item_ids][]) in the onchange? Currently, I am only getting the
value of the changed checkbox (ie: items=2), but...