1. example如下: <%=render :partial => "networks/primary_agent", :locals => {:id => friend.id}%> 转载于:https://www.cnblogs.com/gary-tao/p/5330967.html