Displaying 1 result from an estimated 1 matches for "top_link".
2012 Aug 07
4
how to do render partial on jquery ajax success method with rails 3
...url: "/org_pages",
data: ''org_id=''+ org_id,
type: "POST",
success: function(result){
jQuery("#image_center").html("<%=
escape_javascript(render(:partial => ''pages/top_link'')) %>");
},
error: function(){
alert(''Error occured'');
}
});
My problem is on the web page the output is showing this :
<%= render :partial => ''pages/top_link''...