<% @untrashed_uuids.each do |uuid| %> $('[data-object-uuid=<%= uuid %>]').hide('slow', function() { $(this).remove(); }); <% end %>