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