You can use
url:refresh_category_path, remote: true
property for ajax request in your form and render new form in refresh.js.erb file with
$("#product").append("<%= escape_javascript(render(:partial => @product)) %>");
http://railscasts.com/episodes/136-jquery you can get more info from here.