$("#errors").html("<%= escape_javascript(render partial: 'gaku/shared/errors', locals: {target: target}) %>"); $("#errors").show(3);