item_<%=@item.id%>').data('sortby', '<%=@item.username%>') Sorter.sort '#items.sortable' $('#edit-modal').foundation('reveal', 'close')