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