$(function (){ $(".stop_points_detail").html("<%= escape_javascript(render(:partial => "stop_points_detail")) %>"); });