$("#reports").html("<%= j render(@reports) %>"); $("form input[type='search']").val("<%= params[:query] %>"); $("#reports_pagination").html("<%= j will_paginate @reports %>");