0
鉴于的Rails 3 best_in_place编辑嵌套模式
<% @incidents.each_with_index do |incident,i| %>
我想不出编辑的事件和家长协会,如incident.user或incident.contact
这适用于如何到位属性例如:
best_in_place incident, :notes, type: :input, nil: 'Add Note'
但我想不出怎么办incident.customer得到下降Customer.all下来(事件belongs_to的:客户)
我尝试每种方法都会遇到各种错误。