<% @mail_cron_logs.collect do |mail_cron_log| %> $("#<%= dom_id mail_cron_log %>").remove(); <% end %> <% MailCronLog.any_in(:_id => params[:ids]).destroy_all %>