Below is the way by which you can render partial with jQuery in your view.js.erb file :-
jQuery("#mydiv").html("<%= escape_javascript(render(:partial => 'my_partial', :locals => {:my_instance_var => @my_instance_var} ))%>");
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment