<%= render(:partial => "order_line", :collection => @pending_orders)%>参数partial指明了一个局部的模板,collection参数指定了使用的数据的集合,这里是pending_orders方法取出的order