$('.row.item[data-id=<%=@item.id%>]').remove() $('#edit-modal').foundation('reveal', 'close')